Re: [OpenSIPS-Users] How to use old "opensipsctl avp add" with opensips-cli?
Create your own table in the db. Then specify that as DB table in the module parameters (will avoid hassle when you have to migrate) Op wo 18 mei 2022 om 08:22 schreef Bela H : > Hello, > > I want to set up a call forwarding and followed the instructions from the > "Building telephony systems with OpenSIPS". However, this is a little bit > outdated, the old opensipsctl was replaced by opensips-cli. How can I add > an avp data into a usr_preferences table from opensips-cli? > This was the old format: *opensipsctl avp add A_number callfwd 0 C_number* > > Cheers, > Bela > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] How to use old "opensipsctl avp add" with opensips-cli?
Hi Bela, I think you can use (opensips-cli): database add avp command Regards, Jehanzaib On Wed, May 18, 2022 at 6:20 PM Bela H wrote: > Hello, > > I want to set up a call forwarding and followed the instructions from the > "Building telephony systems with OpenSIPS". However, this is a little bit > outdated, the old opensipsctl was replaced by opensips-cli. How can I add > an avp data into a usr_preferences table from opensips-cli? > This was the old format: *opensipsctl avp add A_number callfwd 0 C_number* > > Cheers, > Bela > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] How to use old "opensipsctl avp add" with opensips-cli?
Thanks Bogdan again! I am using that function but somehow didn't work with avp_db_load("$rU",$avp(callfwd)). With uuid it is all good! Cheers, Bela From: Bogdan-Andrei Iancu Sent: Wednesday, 6 April 2022 21:48 To: Bela H ; OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] How to use old "opensipsctl avp add" with opensips-cli? Hi Bela, If you should put the A number in UUID or user+domain columns depends 100% on how you use the avp_db_load() from script, mainly what is that first param - an uuid or user. See https://opensips.org/html/docs/modules/3.2.x/avpops.html#func_avp_db_load, the "source" param Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS eBootcamp 23rd May - 3rd June 2022 https://opensips.org/training/OpenSIPS_eBootcamp_2022/ On 4/6/22 11:48 AM, Bela H wrote: Hi Bogdan, Great thanks for your quick answer. I got that workaround as well, however that would have been my next question what you already answered: using the A number in uuid field instead of username Cheers, Bela From: Bogdan-Andrei Iancu<mailto:bog...@opensips.org> Sent: Wednesday, 6 April 2022 18:25 To: OpenSIPS users mailling list<mailto:users@lists.opensips.org>; Bela H<mailto:hob...@hotmail.com> Subject: Re: [OpenSIPS-Users] How to use old "opensipsctl avp add" with opensips-cli? Hi Bela, The opensips-cli does not offer anymore the pure DB oriented ops (like the opensipsctl did). The actually opensipsctl avp add A_number callfwd 0 C_number translates into the query: INSERT INTO usr_preferences ( uuid, username, domain, attribute, type, value, last_modified) VALUES ('A_number','','','callfwd', 0,'C_number',NOW()); Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS eBootcamp 23rd May - 3rd June 2022 https://opensips.org/training/OpenSIPS_eBootcamp_2022/ On 4/5/22 11:31 PM, Bela H wrote: Hello, I want to set up a call forwarding and followed the instructions from the "Building telephony systems with OpenSIPS". However, this is a little bit outdated, the old opensipsctl was replaced by opensips-cli. How can I add an avp data into a usr_preferences table from opensips-cli? This was the old format: opensipsctl avp add A_number callfwd 0 C_number Cheers, Bela ___ Users mailing list Users@lists.opensips.org<mailto:Users@lists.opensips.org> http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] How to use old "opensipsctl avp add" with opensips-cli?
Hi Bela, If you should put the A number in UUID or user+domain columns depends 100% on how you use the avp_db_load() from script, mainly what is that first param - an uuid or user. See https://opensips.org/html/docs/modules/3.2.x/avpops.html#func_avp_db_load, the "source" param Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS eBootcamp 23rd May - 3rd June 2022 https://opensips.org/training/OpenSIPS_eBootcamp_2022/ On 4/6/22 11:48 AM, Bela H wrote: Hi Bogdan, Great thanks for your quick answer. I got that workaround as well, however that would have been my next question what you already answered: using the A number in uuid field instead of username Cheers, Bela *From: *Bogdan-Andrei Iancu <mailto:bog...@opensips.org> *Sent: *Wednesday, 6 April 2022 18:25 *To: *OpenSIPS users mailling list <mailto:users@lists.opensips.org>; Bela H <mailto:hob...@hotmail.com> *Subject: *Re: [OpenSIPS-Users] How to use old "opensipsctl avp add" with opensips-cli? Hi Bela, The opensips-cli does not offer anymore the pure DB oriented ops (like the opensipsctl did). The actually /opensipsctl avp add A_number callfwd 0 C_number/ translates into the query: INSERT INTO usr_preferences ( uuid, username, domain, attribute, type, value, last_modified) VALUES ('A_number','','','callfwd', 0,'C_number',NOW()); Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com <https://www.opensips-solutions.com> OpenSIPS eBootcamp 23rd May - 3rd June 2022 https://opensips.org/training/OpenSIPS_eBootcamp_2022/ <https://opensips.org/training/OpenSIPS_eBootcamp_2022/> On 4/5/22 11:31 PM, Bela H wrote: Hello, I want to set up a call forwarding and followed the instructions from the "Building telephony systems with OpenSIPS". However, this is a little bit outdated, the old opensipsctl was replaced by opensips-cli. How can I add an avp data into a usr_preferences table from opensips-cli? This was the old format: /opensipsctl avp add A_number callfwd 0 C_number/ Cheers, Bela ___ Users mailing list Users@lists.opensips.org <mailto:Users@lists.opensips.org> http://lists.opensips.org/cgi-bin/mailman/listinfo/users <http://lists.opensips.org/cgi-bin/mailman/listinfo/users> ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] How to use old "opensipsctl avp add" with opensips-cli?
Hi Bogdan, Great thanks for your quick answer. I got that workaround as well, however that would have been my next question what you already answered: using the A number in uuid field instead of username Cheers, Bela From: Bogdan-Andrei Iancu<mailto:bog...@opensips.org> Sent: Wednesday, 6 April 2022 18:25 To: OpenSIPS users mailling list<mailto:users@lists.opensips.org>; Bela H<mailto:hob...@hotmail.com> Subject: Re: [OpenSIPS-Users] How to use old "opensipsctl avp add" with opensips-cli? Hi Bela, The opensips-cli does not offer anymore the pure DB oriented ops (like the opensipsctl did). The actually opensipsctl avp add A_number callfwd 0 C_number translates into the query: INSERT INTO usr_preferences ( uuid, username, domain, attribute, type, value, last_modified) VALUES ('A_number','','','callfwd', 0,'C_number',NOW()); Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS eBootcamp 23rd May - 3rd June 2022 https://opensips.org/training/OpenSIPS_eBootcamp_2022/ On 4/5/22 11:31 PM, Bela H wrote: Hello, I want to set up a call forwarding and followed the instructions from the "Building telephony systems with OpenSIPS". However, this is a little bit outdated, the old opensipsctl was replaced by opensips-cli. How can I add an avp data into a usr_preferences table from opensips-cli? This was the old format: opensipsctl avp add A_number callfwd 0 C_number Cheers, Bela ___ Users mailing list Users@lists.opensips.org<mailto:Users@lists.opensips.org> http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] How to use old "opensipsctl avp add" with opensips-cli?
Hi Bela, The opensips-cli does not offer anymore the pure DB oriented ops (like the opensipsctl did). The actually /opensipsctl avp add A_number callfwd 0 C_number/ translates into the query: INSERT INTO usr_preferences ( uuid, username, domain, attribute, type, value, last_modified) VALUES ('A_number','','','callfwd', 0,'C_number',NOW()); Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS eBootcamp 23rd May - 3rd June 2022 https://opensips.org/training/OpenSIPS_eBootcamp_2022/ On 4/5/22 11:31 PM, Bela H wrote: Hello, I want to set up a call forwarding and followed the instructions from the "Building telephony systems with OpenSIPS". However, this is a little bit outdated, the old opensipsctl was replaced by opensips-cli. How can I add an avp data into a usr_preferences table from opensips-cli? This was the old format: /opensipsctl avp add A_number callfwd 0 C_number/ Cheers, Bela ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users