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

2017-01-06 Thread xaled
Hi Bogdan, can you give any hints on how to get the Coordinates values and not the whole xml body from the regex subst? Sorry for being not clever enough to figure it out myself. Thanks Hi Bogdan, $var(reg) = "/gml:Coordinates>(.*)<\/gml:Coordinates/\1/"; xlog("Position is

Re: [OpenSIPS-Users] 503 translated to 500 between opensips and homer

2017-01-06 Thread Richard Robson
hmm, both our suppliers translate an unavailable number (Q.850;cause=41) as a 503. I Guess Im going to have to live with that. Did you see the other email this morning regarding opensips crashing? I unhelpfully called the  email

Re: [OpenSIPS-Users] 503 translated to 500 between opensips and homer

2017-01-06 Thread Bogdan-Andrei Iancu
Hi Richard, See rfc3261, chapter 6 "Choosing the best response", Page 111 : A proxy which receives a 503 (Service Unavailable) response SHOULD NOT forward it upstream unless it can determine that any subsequent requests it might proxy will also generate a 503.

Re: [OpenSIPS-Users] 503 translated to 500 between opensips and homer

2017-01-06 Thread Bogdan-Andrei Iancu
Hi Richard, Any incoming 503 reply is converted by OpenSIPS to a 500 reply (as per RFC3261). Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 06.01.2017 16:22, Richard Robson wrote: Hi, we are getting 503 messages back but when this is

Re: [OpenSIPS-Users] opensips 2.1 call_center queue position

2017-01-06 Thread Jonathan Hunter
Hi Bogdan, Happy new year, I hope you are well? Did you see my reply below,? The count works now but its not routing the call. Many thanks Jon From: Jonathan Hunter Sent: 23 December 2016 15:52 To: Bogdan-Andrei Iancu; OpenSIPS

[OpenSIPS-Users] 503 translated to 500 between opensips and homer

2017-01-06 Thread Richard Robson
Hi, we are getting 503 messages back but when this is stored on Homer as a 500. I'm not sure if its Opensips's sipcapture module or Homer doing the translation This is the packet captured in sngrep in the sip box 2017/01/06 14:13:59.210301

Re: [OpenSIPS-Users] Topology hiding and Route header

2017-01-06 Thread Adrien Martin
Hello, Thank you for the clarification, yes it was about a pre-loaded Route header. Regards, -- Adrien Martin On 06/01/2017 14:01, Răzvan Crainea wrote: > Hi, Adrien! > > If you are talking about a pre-loaded Route header (received from the client) > for an initial INVITE, then the

Re: [OpenSIPS-Users] Topology hiding and Route header

2017-01-06 Thread Răzvan Crainea
Hi, Adrien! If you are talking about a pre-loaded Route header (received from the client) for an initial INVITE, then the topology_hiding() module does not remove it and you have to remove it yourself. Best regards, Răzvan Crainea OpenSIPS Solutions www.opensips-solutions.com On 01/06/2017

[OpenSIPS-Users] Topology hiding and Route header

2017-01-06 Thread Adrien Martin
Hello, I'm using the module topology_hiding with Opensips 2.2 but I'm not sure to understand properly the documentation. Is the header Route supposed to be removed ? (No problem removing and restoring Record-Route) In my tests Route header was not removed unless I added remove_hf("Route")

Re: [OpenSIPS-Users] opensips Crashing v2.2.2

2017-01-06 Thread Richard Robson
I've some more back traces. this could be a resource problem. The back story is we want to check for channel limits and Rate limits for all calls. Channel limit hits should failover to the next gateway and rate limits should delat for up to 2 seconds before failing over to the next gateway.

[OpenSIPS-Users] opensipsp

2017-01-06 Thread Richard Robson
Hi, we are getting a crash in opensips. V2.2.2 bt all: #0 0x00425de2 in context_put_int (type=CONTEXT_GLOBAL, ctx=0x0, pos=4, data=1) at context.c:173 No locals. #1 0x7f1c121642cc in dlg_onreply (t=0x7f1c1d86e938, type=out>, param=) at dlg_handlers.c:490 rpl =