[OpenSIPS-Users] UDP workers 100% CPU usage + utimer_ticker: utimer

2019-11-27 Thread ahmed qadeer
Dear Team, We are facing issue on opensips 2.4.6 as CPU usage is high and average load goes from 80 to 100. Related information: opensips -V version: opensips 2.4.6 (x86_64/linux) flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT

Re: [OpenSIPS-Users] Extract data from AVP

2019-11-27 Thread Ben Newlin
Well, you could improve it by combining the two substitutions into one: $var(toto) = $(avp(aline){re.subst,/.*:(.*)@.*/\1/g}); Beyond that if this is something you do often you can use the dialplan module [1] to store the regex as a rule and apply it anywhere you want. It may have been

[OpenSIPS-Users] confusion about the reply route and the failure route

2019-11-27 Thread sxtang
Hi: * I'm a little confused about the reply route and the failure route. * =Both can handle 404/408 responses in invite session. Both default action is to relay back the SIP reply. If I omit two routes in scripts(that meas not arm the reply route by using the

Re: [OpenSIPS-Users] Too Many Hops on GCP. (Răzvan Crainea)

2019-11-27 Thread egemen ulus
Hi, I think there is no any missing part in REGISTER part as you see below; if ( !(is_method("REGISTER") ) ) { if (is_from_local()) { # authenticate if from local subscriber # authenticate all initial non-REGISTER request

Re: [OpenSIPS-Users] Extract data from AVP

2019-11-27 Thread Mickael Hubert
Thanks Ben, yes I tried this: $var(toto) = $(avp(aline){re.subst,/.*:(.*)/\1/g}); # delete a=channel: xlog("line in the SDP body is $(var(toto){re.subst,/(.*)@.*/\1/g})\n"); xlog("line in the SDP body is $(var(toto){re.subst,/.*@(.*)/\1/g})\n"); It works like a charm, maybe there is a better way

Re: [OpenSIPS-Users] Extract data from AVP

2019-11-27 Thread Ben Newlin
Have you tried using the substitution transformation? https://www.opensips.org/Documentation/Script-Tran-2-4#toc82 Ben Newlin From: Users on behalf of Mickael Hubert Reply-To: OpenSIPS users mailling list Date: Wednesday, November 27, 2019 at 11:11 AM To: OpenSIPS users mailling list

[OpenSIPS-Users] Extract data from AVP

2019-11-27 Thread Mickael Hubert
Hi all, I want to extract the channel ID from a line in SDP (a=channel:d87c363c1b5b4f13@speechrecog) I can extract this line, but I don't know how can I have only the ID (d87c363c1b5b4f13) Do you have a way for me please ? thanks in advance SDP example: *** m=application 1544 TCP/MRCPv2

Re: [OpenSIPS-Users] Set AVP variables from Python script ?

2019-11-27 Thread Vlad Patrascu
Hi Alexandro, Unfortunately, you cannot do this in Python, but as you've noticed you can use Lua or Perl. Starting from OpenSIPS 3.1 though, it will be possible to call OpenSIPS core script functions from Python, so 'pv_printf()' would facilitate writing AVPs from Python. Regards, Vlad