Re: [OpenSIPS-Users] opensips 3.2 and latest github rtpengine
Hello, Alberto. You can modify it by using an optional parameter in rtpengine_offer (sdp_var - https://opensips.org/html/docs/modules/3.2.x/rtpengine#func_rtpengine_offer ). Logic: You can write new sdp body to the variable instead of rewrite of existing SDP. After that you can modify "s" parameter in this variable. Next - you delete existing SDP (remove_body_part()) and add new SDP with content from variable (add_body_part()). Best regards, Artiom Druz чт, 24 мар. 2022 г., 04:34 Alberto : > Hi, > > I'm trying to change the session name, the s= line, while using rtpengine. > > If I remove rtpengine and do replace_body_all("^s=.*$", "s=abczzz"); it > works just fine and I see the new session name in the second leg of the > call. > > But when rtpengine_offer is called, the original sdp body is used instead > of the modified body. > I tried to do replace_body_all before and after rtpengine_offer, but it > doesn't work, the second leg always has the original session name. > > Any advice? > Thanks > ___ > 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] mid_registrar multi domains
Hello, Andrei. You can do that by taking $tU (user from "To" header) and using some transformation function. In your example can be used s.select function. ( https://www.opensips.org/Documentation/Script-Tran-3-2#toc7) Best regards, Artiom Druz ср, 23 мар. 2022 г., 21:11 Andrei G. : > Hey guys, > > I successfully tested opensips with mid_registrar for one domain > > Is it possible to use opensips in front of 2 asterisk boxes and redirect > registrations based on a prefix username, not domain prefix? > > Something like > asterisk1-user@mid-registrar.domain - where opensips manage registration > for user@asterisk1 > asterisk2-user@mid-registrar.domain - where opensips manage registration > for user@asterisk2 > > Regards > Andrei G. > > ___ > 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] mysql_db installation fails ...
Found the "problem" Forgot the -module in modulename ... Problem solved... From: Users On Behalf Of Stefan Carlsson Sent: Wednesday, 23 March, 2022 20:00 To: users@lists.opensips.org Subject: [OpenSIPS-Users] mysql_db installation fails ... Hi ! A fresh install of opensips 3.2.5 (x86_64/linux) , now I try to install mysql_db module, but fails. Tried to install via yum, got this yum install opensips-mysql Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftpmirror.infania.net * centos-sclo-rh: ftpmirror.infania.net * centos-sclo-sclo: ftpmirror.infania.net * epel: mirrors.glesys.net * extras: ftpmirror.infania.net * remi-php74: mirror.netsite.dk * remi-safe: mirror.netsite.dk * updates: ftpmirror.infania.net Resolving Dependencies --> Running transaction check ---> Package opensips-mysql.x86_64 0:1.10.5-4.el7 will be installed --> Processing Dependency: opensips(x86-64) = 1.10.5-4.el7 for package: opensips-mysql-1.10.5-4.el7.x86_64 --> Finished Dependency Resolution Error: Package: opensips-mysql-1.10.5-4.el7.x86_64 (epel) Requires: opensips(x86-64) = 1.10.5-4.el7 Installed: opensips-3.2.5-1.el7.x86_64 (@opensips) opensips(x86-64) = 3.2.5-1.el7 Available: opensips-1.10.5-4.el7.x86_64 (epel) opensips(x86-64) = 1.10.5-4.el7 Available: opensips-3.2.0-1.el7.x86_64 (opensips) opensips(x86-64) = 3.2.0-1.el7 Available: opensips-3.2.2-1.el7.x86_64 (opensips) opensips(x86-64) = 3.2.2-1.el7 Available: opensips-3.2.3-1.el7.x86_64 (opensips) opensips(x86-64) = 3.2.3-1.el7 Available: opensips-3.2.4-1.el7.x86_64 (opensips) opensips(x86-64) = 3.2.4-1.el7 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest Any ideas Regards / Mvh Stefan ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Opensips 3 module names...
Hi Where can I find the modules names so I can install the via yum. Is it in the form: opensips-[modulename]-module Need the proto modules It seems to be changed a bit after rel.2 Kind Regards Stefan ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] opensips 3.2 and latest github rtpengine
Hi, I'm trying to change the session name, the s= line, while using rtpengine. If I remove rtpengine and do replace_body_all("^s=.*$", "s=abczzz"); it works just fine and I see the new session name in the second leg of the call. But when rtpengine_offer is called, the original sdp body is used instead of the modified body. I tried to do replace_body_all before and after rtpengine_offer, but it doesn't work, the second leg always has the original session name. Any advice? Thanks ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] OpenSIPS timers
Hello all, I'm working on tuning an opensips server. I get this pesky: WARNING:core:utimer_ticker: utimer task already scheduled I was trying to get rid of them by playing with the tm timer_partitions parameter and the timer_workers core param. By increasing any of them doesn't increase performance. By increasing both of them, it actually decreases performance. The server is not at limit, the load on the UDP workers is around 50-60 with some spikes. I have around 3500+ cps sipp traffic. My understanding is that by increasing the number of timer_partitions, we will have more procs walking in parallel over the timer structures. If we have on timer structure, we have one proc walking over it. How is this working for two timer structures? What is the difference between the first and the second timer structure? Should we expect less work for each proc? For now, to reduce the occurrence of the warning log, I increased the timer interval for tm-utimer from 100ms to 200ms. This should be ok as the timer has the TIMER_FLAG_DELAY_ON_DELAY flag set. Thanks, Ovidiu -- VoIP Embedded, Inc. http://www.voipembedded.com ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] mysql_db installation fails ...
Hi ! A fresh install of opensips 3.2.5 (x86_64/linux) , now I try to install mysql_db module, but fails. Tried to install via yum, got this yum install opensips-mysql Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftpmirror.infania.net * centos-sclo-rh: ftpmirror.infania.net * centos-sclo-sclo: ftpmirror.infania.net * epel: mirrors.glesys.net * extras: ftpmirror.infania.net * remi-php74: mirror.netsite.dk * remi-safe: mirror.netsite.dk * updates: ftpmirror.infania.net Resolving Dependencies --> Running transaction check ---> Package opensips-mysql.x86_64 0:1.10.5-4.el7 will be installed --> Processing Dependency: opensips(x86-64) = 1.10.5-4.el7 for package: opensips-mysql-1.10.5-4.el7.x86_64 --> Finished Dependency Resolution Error: Package: opensips-mysql-1.10.5-4.el7.x86_64 (epel) Requires: opensips(x86-64) = 1.10.5-4.el7 Installed: opensips-3.2.5-1.el7.x86_64 (@opensips) opensips(x86-64) = 3.2.5-1.el7 Available: opensips-1.10.5-4.el7.x86_64 (epel) opensips(x86-64) = 1.10.5-4.el7 Available: opensips-3.2.0-1.el7.x86_64 (opensips) opensips(x86-64) = 3.2.0-1.el7 Available: opensips-3.2.2-1.el7.x86_64 (opensips) opensips(x86-64) = 3.2.2-1.el7 Available: opensips-3.2.3-1.el7.x86_64 (opensips) opensips(x86-64) = 3.2.3-1.el7 Available: opensips-3.2.4-1.el7.x86_64 (opensips) opensips(x86-64) = 3.2.4-1.el7 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest Any ideas Regards / Mvh Stefan ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] mid_registrar multi domains
Hey guys, I successfully tested opensips with mid_registrar for one domain Is it possible to use opensips in front of 2 asterisk boxes and redirect registrations based on a prefix username, not domain prefix? Something like asterisk1-user@mid-registrar.domain - where opensips manage registration for user@asterisk1 asterisk2-user@mid-registrar.domain - where opensips manage registration for user@asterisk2 Regards Andrei G. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] rtp_relay module implementation help .
Hi, Sasmita! There is no auto-switching mode, you will have to do it manually. You need to monitor rtpengine through external scripts, and when it breaks, run the opensips-cli rtp_relay_update command. Best regards, Răzvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com On 3/23/22 13:40, Sasmita Panda wrote: Hi All , I was going through the doc and did a simple POC on rtp_relay module and the media server is rtpengine . My config file looks like below . loadmodule "dialog.so" loadmodule "rtp_relay.so" loadmodule "rtpengine.so" modparam("rtpengine", "rtpengine_sock", "udp:20.0.x.x:22000=3") modparam("rtpengine", "rtpengine_sock", "udp:20.0.x.y:22000=0") route{ . if (is_method("INVITE")){ $rtp_relay = "replace-origin replace-session-connection"; $rtp_relay_peer = "replace-origin replace-session-connection"; #rtp_relay_engage("rtpproxy"); rtp_relay_engage("rtpengine"); .. } } While running this if rtpengine becomes unreachable through which media session is established , then opensips automatically wont switch the same call to another rtpengine node . I have to run opensips-cli command to switch the rtpengine . /usr/local/bin/opensips-cli -x mi rtp_relay_update engine=rtpengine set=0 node=udp:20.0.x.x:22000 new_node=udp:20.0.x.y:22000 Automatic switching possible or not? If possible then how ? What should I do for the automatic switching of rtpengine nodes ? Media high availability is only possible if opensips will automatically switch the defective rtp node to the running one . Please do suggest . */Thanks & Regards/* /Sasmita Panda/ /Senior Network Testing and Software Engineer/ /3CLogic , ph:07827611765/ ___ 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] Upgrade OpenSIPS version 2.3 to 3.2
Hi, Sumit! You need to gradually migrate the DB from 2.3 to 2.4, then 3.0, etc. You don't need to install opensips for that, all you need is the database schema. Best regards, Răzvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com On 3/23/22 16:00, Sumit Birla wrote: Hi all, A couple of questions about upgrading an old instance on OpenSIPS: Is it possible to update OpenSIPS database from version 2.3 to 3.2 in one shot? Or do I have to go through the steps: 2.3 -> 2.4 -> 3.0 -> 3.1 -> 3.2 If I install version 3.2, will it have the capability to migrate the database through the various versions, or do I need to install corresponding versions of OpenSIPS? Thanks. ___ 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
[OpenSIPS-Users] Upgrade OpenSIPS version 2.3 to 3.2
Hi all, A couple of questions about upgrading an old instance on OpenSIPS: Is it possible to update OpenSIPS database from version 2.3 to 3.2 in one shot? Or do I have to go through the steps: 2.3 -> 2.4 -> 3.0 -> 3.1 -> 3.2 If I install version 3.2, will it have the capability to migrate the database through the various versions, or do I need to install corresponding versions of OpenSIPS? Thanks. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] rtp_relay module implementation help .
Hi All , I was going through the doc and did a simple POC on rtp_relay module and the media server is rtpengine . My config file looks like below . loadmodule "dialog.so" loadmodule "rtp_relay.so" loadmodule "rtpengine.so" modparam("rtpengine", "rtpengine_sock", "udp:20.0.x.x:22000=3") modparam("rtpengine", "rtpengine_sock", "udp:20.0.x.y:22000=0") route{ . if (is_method("INVITE")){ $rtp_relay = "replace-origin replace-session-connection"; $rtp_relay_peer = "replace-origin replace-session-connection"; #rtp_relay_engage("rtpproxy"); rtp_relay_engage("rtpengine"); .. } } While running this if rtpengine becomes unreachable through which media session is established , then opensips automatically wont switch the same call to another rtpengine node . I have to run opensips-cli command to switch the rtpengine . /usr/local/bin/opensips-cli -x mi rtp_relay_update engine=rtpengine set=0 node=udp:20.0.x.x:22000 new_node=udp:20.0.x.y:22000 Automatic switching possible or not? If possible then how ? What should I do for the automatic switching of rtpengine nodes ? Media high availability is only possible if opensips will automatically switch the defective rtp node to the running one . Please do suggest . *Thanks & Regards* *Sasmita Panda* *Senior Network Testing and Software Engineer* *3CLogic , ph:07827611765* ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Python functions
Hi, 3.2 Sorry for not mentioning it earlier On Wed, 23 Mar 2022, 08:22 Răzvan Crainea, wrote: > What OpenSIPS version are you using? > > Răzvan Crainea > OpenSIPS Core Developer > http://www.opensips-solutions.com > > On 3/22/22 01:41, Alberto wrote: > > Hi lads and ladies, > > I'm working on a python script called via python_exec, but I can't see > > any function to do debug logs, except LM_ERR. > > > > I tried > > msg.call_function('log', str("test")) > > or > > msg.call_function('xlog', str("test")) > > > > but I always get this error: > > ERROR:python:opensips_LM_ERR: 37, SystemError, > of 'OpenSIPS.msg' objects> returned a result with an error set > > > > How should this be done? > > > > Thanks > > > > ___ > > 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 > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] inject_dtmf
I spoke with sipwise yesterday and according to them, the problem is that I send the dtmf too early (immediately in reply route after rtpengine_answer). I will try this evening with setting up a call and then injecting the dtmf with curl or something. This leads me to the follow up question : how can I send a command from the script after a certain time ? I thought about timer-route, but there you don't have the call id. Op wo 23 mrt. 2022 om 09:20 schreef Răzvan Crainea : > Hi, Johan! > > Can you post opensips logs of rtpengine module? Are there any errors. > Also, what version of OpenSIPS are you using? > > Best regards, > > Răzvan Crainea > OpenSIPS Core Developer > http://www.opensips-solutions.com > > On 3/22/22 13:34, Johan De Clercq wrote: > > Hi, > > > > for one reason or another I don't get this working. > > What I do > > 1. when the invite is send, i call rtpengine_offer with inject_DTMF flag. > > 2. in the onreply route, I call rtpengine_answer with inject_DTMF. Then > > I call rtpengine_playdtmf("0"). > > > > The dtmf is NEVER send out. > > > > What do I do wrong here ? > > Is there somebody with experience on this ? > > > > wkr, > > > > ___ > > 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 > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] SQL Cacher full caching auto reload specific key
Your assumption is correct - for full caching mode, only the entire table can be reloaded. If you want to reload per record, you should be using on demand caching. Best regards, Răzvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com On 3/21/22 17:47, Mehdi Shirazi wrote: Hi I use SQL Cacher in full caching mode. when the database changes I want to automatically reload that specific key. What is your suggestions for this? With Mariadb trigger I cannot use system commands to reload that specific key. Only way is using pooling method of changed records and use sql_cacher_reload ? Regards Shirazi ___ 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] Python functions
What OpenSIPS version are you using? Răzvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com On 3/22/22 01:41, Alberto wrote: Hi lads and ladies, I'm working on a python script called via python_exec, but I can't see any function to do debug logs, except LM_ERR. I tried msg.call_function('log', str("test")) or msg.call_function('xlog', str("test")) but I always get this error: ERROR:python:opensips_LM_ERR: 37, SystemError, of 'OpenSIPS.msg' objects> returned a result with an error set How should this be done? Thanks ___ 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] inject_dtmf
Hi, Johan! Can you post opensips logs of rtpengine module? Are there any errors. Also, what version of OpenSIPS are you using? Best regards, Răzvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com On 3/22/22 13:34, Johan De Clercq wrote: Hi, for one reason or another I don't get this working. What I do 1. when the invite is send, i call rtpengine_offer with inject_DTMF flag. 2. in the onreply route, I call rtpengine_answer with inject_DTMF. Then I call rtpengine_playdtmf("0"). The dtmf is NEVER send out. What do I do wrong here ? Is there somebody with experience on this ? wkr, ___ 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