Re: [OpenSIPS-Users] Dynamic Routing module issue with srip

2016-05-03 Thread Michele Pinassi
Hi Bogdan, yes i'm sure (checked via tcpdump). How i can strip the '0' in the To (alto che in R-URI) before sending SIP INVITE outside through the gateway ? Thanks, Michele Il 03/05/2016 14:29, Bogdan-Andrei Iancu ha scritto: > Hi Michele, > > Sorry for my question, but are you sure that $var(ca

Re: [OpenSIPS-Users] Dynamic Routing module issue with srip

2016-05-03 Thread Bogdan-Andrei Iancu
Hi Michele, Sorry for my question, but are you sure that $var(carrier) points to "toip" carrier ? Note that the module changes only the username in RURI, it does not change TO hdr . Best regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 02.05

Re: [OpenSIPS-Users] Dynamic Routing module issue with srip

2016-05-02 Thread Michele Pinassi
Thanks Bogdan for your prompt reply but seems that don't work as expected: i need to strip leading '0' from called R-URI and To ! Just to help, i try to describe better my context: for any external calls, i use route[pstn]: route[pstn] { # Default outbound carrier $var(carrier) = "pstn";

Re: [OpenSIPS-Users] Dynamic Routing module issue with srip

2016-04-29 Thread Bogdan-Andrei Iancu
Hi Michele, the per-gw ops are done in all the routing scenarios (per prefix, per carrier, etc). Are you sure your call is routed via that GW ? try to print in cfg the GW ID to see it the right GW is used. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-soluti

[OpenSIPS-Users] Dynamic Routing module issue with srip

2016-04-29 Thread Michele Pinassi
Hi all, on my OpenSIPS 1.11.6 i use dymanic module routing to magare multiple routes. I need to strip a number for particular gateways and, following manual, i set to '1' the 'strip' field in dr_gateways table. But, using function "route_to_carrier" to manage carrier routing, i get no number stri

Re: [OpenSIPS-Users] Dynamic routing module handling Re-invite

2015-09-17 Thread Răzvan Crainea
Hi, Ping! Only the initial INVITE should be routed based on drouting. Sequential requests, such as RE-INVITE should be handled according to the Route/Record-Route mechanism. Best regards, Răzvan Crainea OpenSIPS Solutions www.opensips-solutions.com On 09/16/2015 04:42 PM, Ping Han wrote: H

[OpenSIPS-Users] Dynamic routing module handling Re-invite

2015-09-16 Thread Ping Han
Hi, I am using dynamic routing module to route the calls to a "carrier", which is configured to have two gateways (each has 50% weight). The expect behavior is that the one call is routed to gateway 1 and the next call is routed to gateway 2. I have a particular scenario, which is that each call

Re: [OpenSIPS-Users] Dynamic Routing module and weights

2012-07-13 Thread Ali Pey
Thank you Bogdan. On Fri, Jul 13, 2012 at 1:47 PM, Bogdan-Andrei Iancu wrote: > ** > Hi Ali, > > The DR weights are like weights in DNS records - the value itself is not > so important, but ratio between the weights of elements. Like 25-25-50 is > the same as 1-1-2. > > Their are used to do kind

Re: [OpenSIPS-Users] Dynamic Routing module and weights

2012-07-13 Thread Bogdan-Andrei Iancu
Hi Ali, The DR weights are like weights in DNS records - the value itself is not so important, but ratio between the weights of elements. Like 25-25-50 is the same as 1-1-2. Their are used to do kind of dispersion of calls over a pool of destinations, where maybe some can handle higher traff

[OpenSIPS-Users] Dynamic Routing module and weights

2012-07-13 Thread Ali Pey
Hello, Are the weights values for trunks and carriers a percentage? What are the valid values? Do they need to add up to 100? How do they relate a real world scenario? What are the best practices? Sorry for the too many questions, but I think it will be useful in future for people trying to use

Re: [OpenSIPS-Users] Dynamic Routing Module

2009-10-19 Thread Indiver
Hi Bodgan, Thanks for your quick response. I changed my script and drouting is working now. Bogdan-Andrei Iancu wrote: > > Hi Indiver, > > looking at the logs I can say your script is not right - the call does > not hit do_routing() in the script, but rather goes to > lookup(location)Thi

Re: [OpenSIPS-Users] Dynamic Routing Module

2009-10-19 Thread Bogdan-Andrei Iancu
Hi Indiver, looking at the logs I can say your script is not right - the call does not hit do_routing() in the script, but rather goes to lookup(location)This is why you do get a 404. So, try to place xlog() in the script and see what is the path the execution takes through your script ->

Re: [OpenSIPS-Users] Dynamic Routing Module

2009-10-19 Thread Indiver
Hi Bodgan, Sorry for the mistake. I meant that in the above when i dialed the local number 1005 not the 1000 Bogdan-Andrei Iancu wrote: > > Hi Indiver, > > what exactly is not working? > > Can you post the output logs (during INVITE) with debug=6 ? Post also > the incoming INVITE request. >

Re: [OpenSIPS-Users] Dynamic Routing Module

2009-10-19 Thread Bogdan-Andrei Iancu
Hi Indiver, what exactly is not working? Can you post the output logs (during INVITE) with debug=6 ? Post also the incoming INVITE request. Regards, Bogdan Indiver wrote: > Hi Every body, > > I want to implement prefix based dynamic routing. I followed the following > procedure. > > step 1: E

[OpenSIPS-Users] Dynamic Routing Module

2009-10-19 Thread Indiver
Hi Every body, I want to implement prefix based dynamic routing. I followed the following procedure. step 1: Enetered gateways, gateway lists, rules,groups in opensips-cp as follows dr_gateways table: +--+--++---++---+-+ | gwid | type | ad