Re: [SR-Users] Rewrite From domain

2017-01-02 Thread Gonzalo Gasca Meza
2nd try. Thanks On Fri, Dec 30, 2016 at 1:28 PM, Gonzalo Gasca Meza wrote: > Hi Igor, > Please look for "Masking Twilio call from:" > > > On Sun, Dec 25, 2016 at 12:47 PM, Igor Olhovskiy > wrote: > >> According to your Pastebin, I couldn’t find in log strings “Masking call >> from”. So, I assum

Re: [SR-Users] Rewrite From domain

2016-12-30 Thread Gonzalo Gasca Meza
Hi Igor, Please look for "Masking Twilio call from:" On Sun, Dec 25, 2016 at 12:47 PM, Igor Olhovskiy wrote: > According to your Pastebin, I couldn’t find in log strings “Masking call > from”. So, I assume, this code is not executed. > > Regards, Igor > > On 23 дек. 2016 г., 10:51 +0200, Gonzal

Re: [SR-Users] Rewrite From domain

2016-12-25 Thread Igor Olhovskiy
According to your Pastebin, I couldn’t find in log strings “Masking call from”. So, I assume, this code is not executed. Regards, Igor On 23 дек. 2016 г., 10:51 +0200, Gonzalo Gasca Meza , wrote: > Hi Daniel, > I added xlog and $mb here is the debug: > I still cant figure out how to overwrite t

Re: [SR-Users] Rewrite From domain

2016-12-23 Thread Gonzalo Gasca Meza
Hi Daniel, I added xlog and $mb here is the debug: I still cant figure out how to overwrite the From field. http://pastebin.com/vMruA0tP Call flow: SP1 -> SIP call --> 5061 Kamailio --> DNS resolution -> Remote client, I dont see pstn.parzee.io I see sip.sp1.com DOESNT WORK # Manage outgoing

Re: [SR-Users] Rewrite From domain

2016-12-21 Thread Daniel-Constantin Mierla
Hello, for the case when it doesn't work, do you see the xlog message printed? Cheers, Daniel On 21/12/2016 08:37, Gonzalo Gasca Meza wrote: > > Hi Daniel, > > Thanks for the advise, I'm using the following configuration, > > # Manage outgoing branches > > branch_route[MANAGE_BRANCH]{ > > >

Re: [SR-Users] Rewrite From domain

2016-12-20 Thread Gonzalo Gasca Meza
Hi Daniel, Thanks for the advise, I'm using the following configuration, # Manage outgoing branches branch_route[MANAGE_BRANCH] { if($fd=~"sip\.sp1\.com") { xlog("L_INFO","|Masking SP1 call from: $fu"); $fd = "pstn.parzee.io"; } xdbg("new branc

Re: [SR-Users] Rewrite From domain

2016-12-13 Thread Daniel-Constantin Mierla
Hello, as alternative to assigning to $fd, you can use uac_replace_from() exported by uac module. The best place to do updates to headers for outgoing traffic is in a branch_route block. Cheers, Daniel On 13/12/2016 12:05, Gonzalo Gasca Meza wrote: > > Hi all, > > I'm using Kamailio to forward

[SR-Users] Rewrite From domain

2016-12-13 Thread Gonzalo Gasca Meza
Hi all, I'm using Kamailio to forward calls between 2 Service Providers and I need to rewrite the From header "domain" URI. Example: From: "+188" to From: "+188" http://sip.sp2.com>*> *Call flow:* Phone A --- > SP1 ---> sip > (kamailio) SP2 --(LOCATION)-> Phone B When Ph