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

2013-04-06 Thread Daniel-Constantin Mierla
Hello, On 4/6/13 1:29 AM, qm...@polarismail.com wrote: 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: As

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 Daniel-Constantin Mierla
Changes are not immediately visible, this is the internal design from the time of SER back in 2001 -- I made a FAQ entry with more details: - http://www.kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers_or In short, you have to use msg_apply_changes() function after changing h

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

2013-04-05 Thread Vitaliy Aleksandrov
http://kamailio.org/docs/modules/3.2.x/modules_k/textops.html#id2495808 I use this subst("/^To:.*$/To: $var(new_to)\r/i") where $var(new_to) is a new value of the "To" header and it works fine on kamailio-3.2.4 Sorry if I repeat myself - I just subscribed properly to the list: if you don't n

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

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

2013-04-05 Thread Daniel-Constantin Mierla
Hello, On 4/4/13 2:32 PM, qm...@polarismail.com wrote: 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 ? if you don't need to ch

[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