Re: [SR-Users] Changing Domain in To URI

2013-04-05 Thread qmail
Mersi mult Daniel! It worked but unfortunately it didn't fix the issue. As I mentioned previously the original setup is like this: Asterisk -> Kamailio gateway -> carrier. All calls go through just fine The new setup we are trying is: Asterisk -> Kamailio load balancer ( dispatch module ) -> K

Re: [SR-Users] Changing Domain in To URI

2013-04-05 Thread qmail
Let me also explain a bit what I'm trying to fix through this method. We have an Asterisk box that forwards call through kamailio to one of our carriers. That works great. The calls are being forwarded with a To of: 5551112...@kamail1.domain.com towards our carrier We also added another ka

[SR-Users] Changing Domain in To URI

2013-04-05 Thread qmail
Sorry if I repeat myself - I just subscribed properly to the list: if you don't need to change it back for replies and next requests, try: $td = "xyz.com"; IIRC, that is available on 3.2.x. If not, either you upgrade or use replace functions from textops. Cheers, Daniel Thank you for rep

[SR-Users] Changing Domain in To URI

2013-04-05 Thread qmail
Hello, As it happens we run Kamailio 3.2.0 on Debian Lenny which for some reason does not support uac_replace_to()! Anyhoo, we are trying to change the domain part in the To URI. What is the best way to do it ? Thank you! ___ SIP Express Rout

[SR-Users] Try backup route

2011-04-23 Thread qmail
I'm using Kamailio 3.1 I have a custom routing statement called MYROUTE which is placed like this: route {  ...  route (MYROUTE);  route (RELAY);} Inside MYROUTE I do some custom SQL checking that basically selects the least cost provider for the ongoing call. The MYROUTE routine sets the $rU, $rd

[SR-Users] Try backup route

2011-04-21 Thread qmail
I'm using Kamailio 3.1 I have a custom routing statement called MYROUTE which is placed like this: route {  ...  route (MYROUTE);  route (RELAY);} Inside MYROUTE I do some custom SQL checking that basically selects the least cost provider for the ongoing call. The MYROUTE routine sets the $rU, $rd