[OpenSIPS-Users] Codecs Order

2017-01-05 Thread Alain Bieuzent
Hi all, Is there a way to know the order of the codecs? For exemple in this SDP : m=audio 13406 RTP/AVP 8 0 101 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 How i know that the prefered codec is PCMA ? Regards, Alain __

Re: [OpenSIPS-Users] Codecs Order

2017-01-05 Thread Aqs Younas
media line(m) shows codec preference in order. m=audio 13406 RTP/AVP 8 0 101 8 for PCMA 0 for PCMU On 5 January 2017 at 15:19, Alain Bieuzent wrote: > Hi all, > > > > Is there a way to know the order of the codecs? > > > > For exemple in this SDP : > > m=audio 13406 RTP/AVP 8 0 101 > > a=rtpmap:

Re: [OpenSIPS-Users] How to parse XML Body?

2017-01-05 Thread Bogdan-Andrei Iancu
Hi, What version of OpenSIPS are you using ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 04.01.2017 21:19, xaled wrote: Hi, What is the best way to parse xml body in an INVITE request? I want to access geographic location information gml

Re: [OpenSIPS-Users] Codecs Order

2017-01-05 Thread Alain Bieuzent
Ok, but how can i extract the value of first codec, Actually i’m using codec_exist function, but this one only retrun TRUE or FALSE, but in case of true, i want know if it’s the first codec or no. Regards De : Users au nom de Aqs Younas Répondre à : OpenSIPS users mailling list Date :

Re: [OpenSIPS-Users] How to parse XML Body?

2017-01-05 Thread xaled
Hi Bogdan; opensips-2.2.2 Thanks. From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Donnerstag, 5. Januar 2017 11:39 To: OpenSIPS users mailling list ; xaled Subject: Re: [OpenSIPS-Users] How to parse XML Body? Hi, What version of OpenSIPS are you using ? Regards, Bo

Re: [OpenSIPS-Users] How to parse XML Body?

2017-01-05 Thread Bogdan-Andrei Iancu
You can use the $(rb[n]) to access a specific body part. see: http://www.opensips.org/Documentation/Script-CoreVar-2-2#toc65 Once you get the XML body, you can use some regexp in order to extract the needed info from the the XML (unfortunately thers is no way to parse XML at script level). See

Re: [OpenSIPS-Users] How to parse XML Body?

2017-01-05 Thread xaled
Hi Bogdan, that is enough for me! Thanks. From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Donnerstag, 5. Januar 2017 12:19 To: OpenSIPS users mailling list ; xaled Subject: Re: [OpenSIPS-Users] How to parse XML Body? You can use the $(rb[n]) to access a specific body

Re: [OpenSIPS-Users] How to parse XML Body?

2017-01-05 Thread xaled
Hi Bogdan, Well - almost enough ;) $var(reg) = "/gml:Coordinates>(.*)(.*)mailto:users-boun...@lists.opensips.org] On Behalf Of xaled Sent: Donnerstag, 5. Januar 2017 12:22 To: 'OpenSIPS users mailling list' Subject: Re: [OpenSIPS-Users] How to parse XML Body? Hi Bogdan, that is eno

[OpenSIPS-Users] CRITICAL:core:timer_ticker: timer handler

2017-01-05 Thread Flavio Goncalves
Hi, I'm getting some errors like below (2 simultaneous calls). No stress test. pkmem is ok, shmem is ok. CRITICAL:core:timer_ticker: timer handler lasted (503 us) for more than timer tick (100 us) -> potential timer shifting. Anyone with the same problem? Flavio E. Goncalves __

Re: [OpenSIPS-Users] How to parse XML Body?

2017-01-05 Thread Bogdan-Andrei Iancu
Try $var(reg) = "/gml:Coordinates>(.*)<\/gml:Coordinates/\1/"; Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 05.01.2017 13:38, xaled wrote: Hi Bogdan, Well - almost enough ;) $var(reg) = "/gml:Coordinates>(.*)2017-01-05T12:28:34.923153+01:00 ivr01

[OpenSIPS-Users] ERROR:drouting:populate_dr_bls: Something went wrong in add_rule_to_list

2017-01-05 Thread Flavio Goncalves
Hi, I'm getting some errors on drouting and I got some routes sent to wrong gateways (some gateways being skipped). It seems a fail to insert in the blacklist, but never saw this message before, opensips 1.11. I don't know if the problems are correlated. Att, Flavio E. Goncalves V.Office Redes e

Re: [OpenSIPS-Users] How to parse XML Body?

2017-01-05 Thread xaled
Hi Bogdan, $var(reg) = "/gml:Coordinates>(.*)<\/gml:Coordinates/\1/"; xlog("Position is $(rb[1]{re.subst,$var(reg)})\n"); DBG:core:subst_run:matched shows the needed XML element, but not the value. The xlog output shows the whole XML body without gml:Coordinates. 2017-01-05T13:23:23

[OpenSIPS-Users] transaction module and Auto 100 reply

2017-01-05 Thread Richard Robson
Hi, I've just notices that our opensips (2.2.2) is not sending a 100 back automatically on an INVITE Some calls are ok, others are not. This is probably because I'm doing a fair bit of processing before the t_relay is called. Am I better turning off the Auto 100 reply and sending the 100 ma

Re: [OpenSIPS-Users] transaction module and Auto 100 reply

2017-01-05 Thread Liviu Chircu
Hi Richard, Yes, that's one of the problems "auto_100trying" is meant to solve, besides avoiding duplicate 100 Trying replies in some scripts. Regards, Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 05.01.2017 15:45, Richard Robson wrote: Hi, I've just notices that o

Re: [OpenSIPS-Users] Codecs Order

2017-01-05 Thread Răzvan Crainea
Hi, Alain! You could use the SDP transformations combine with regular expresions. I am thinking at something like: if ($(rb{sdp.line,m}) =~ "AVP\s*8") xlog("PCMA is first codec!\n"); Hope this is useful :) Best regards, Răzvan Crainea OpenSIPS Solutions www.opensips-solutions.com On 01

Re: [OpenSIPS-Users] CRITICAL:core:timer_ticker: timer handler

2017-01-05 Thread Răzvan Crainea
Hi, Flavio! Is it the latest OpenSIPS version? How many children are you using? Can you send over the output of "opensipsctl ps"? Best regards, Răzvan Crainea OpenSIPS Solutions www.opensips-solutions.com On 01/05/2017 01:59 PM, Flavio Goncalves wrote: Hi, I'm getting some errors like belo

Re: [OpenSIPS-Users] ERROR:drouting:populate_dr_bls: Something went wrong in add_rule_to_list

2017-01-05 Thread Răzvan Crainea
Hi, Flavio? Are you seeing the errors in the logs? Can you send them to us to check? Best regards, Răzvan Crainea OpenSIPS Solutions www.opensips-solutions.com On 01/05/2017 02:12 PM, Flavio Goncalves wrote: Hi, I'm getting some errors on drouting and I got some routes sent to wrong gateway

[OpenSIPS-Users] OpenSIPS at FOSDEM 2017

2017-01-05 Thread Liviu Chircu
Every year,FOSDEM is a good opportunity to connect with our community and acquaint them with the exciting work going into the newestOpenSIPS versions. And there will be no exception this year! What is this year on the plate? */"OpenSIPS - an even