Re: [SR-Users] issue with rewrite to domain in failure route

2018-09-17 Thread Yuriy Gorlichenko
tesys.com>: >>>>>> >>>>>>> That is not a safe way to change the To header, since proxies aren't >>>>>>> supposed to modify the To or From headers. >>>>>>> >>>>>>> The proper approach conceal

Re: [SR-Users] issue with rewrite to domain in failure route

2018-09-17 Thread Sergiu Pojoga
the To or From headers. >>>>>> >>>>>> The proper approach conceals the fact that modifications have taken >>>>>> place from the caller: >>>>>> >>>>>> >>>>>> https://kamailio.org/docs/modules/5.1.x/modul

Re: [SR-Users] issue with rewrite to domain in failure route

2018-09-17 Thread Federico Cabiddu
;>>>>> >>>>>> >>>>>> https://kamailio.org/docs/modules/5.1.x/modules/uac.html#uac.f.uac_replace_to >>>>>> >>>>>> -- >>>>>> Sent from mobile. Apologies for brevity and errors. >&

Re: [SR-Users] issue with rewrite to domain in failure route

2018-09-17 Thread Yuriy Gorlichenko
;>> >>>>> >>>>> https://kamailio.org/docs/modules/5.1.x/modules/uac.html#uac.f.uac_replace_to >>>>> >>>>> -- >>>>> Sent from mobile. Apologies for brevity and errors. >>>>> >>>>> -Original Message

Re: [SR-Users] issue with rewrite to domain in failure route

2018-09-17 Thread Sergiu Pojoga
the caller: >>>> >>>> >>>> https://kamailio.org/docs/modules/5.1.x/modules/uac.html#uac.f.uac_replace_to >>>> >>>> -- >>>> Sent from mobile. Apologies for brevity and errors. >>>> >>>> -Original Message- >>

Re: [SR-Users] issue with rewrite to domain in failure route

2018-09-17 Thread Yuriy Gorlichenko
ogies for brevity and errors. >>> >>> -----Original Message- >>> From: Mojtaba >>> To: "Kamailio (SER) - Users Mailing List" >>> Sent: Mon, 17 Sep 2018 5:23 AM >>> Subject: Re: [SR-Users] issue with rewrite to domain in failure ro

Re: [SR-Users] issue with rewrite to domain in failure route

2018-09-17 Thread Sergiu Pojoga
gt; https://kamailio.org/docs/modules/5.1.x/modules/uac.html#uac.f.uac_replace_to >> >> -- >> Sent from mobile. Apologies for brevity and errors. >> >> -Original Message- >> From: Mojtaba >> To: "Kamailio (SER) - Users Mailing List" >>

Re: [SR-Users] issue with rewrite to domain in failure route

2018-09-17 Thread Yuriy Gorlichenko
; > Sent: Mon, 17 Sep 2018 5:23 AM > Subject: Re: [SR-Users] issue with rewrite to domain in failure route > > The $td is read-only variable, and yoou could not change it's value. > If you want to change domain in To header, You should use testops > module in kamialio and replace

Re: [SR-Users] issue with rewrite to domain in failure route

2018-09-17 Thread Alex Balashov
Sent from mobile. Apologies for brevity and errors. -Original Message- From: Mojtaba To: "Kamailio (SER) - Users Mailing List" Sent: Mon, 17 Sep 2018 5:23 AM Subject: Re: [SR-Users] issue with rewrite to domain in failure route The $td is read-only variable, and yoou could not ch

Re: [SR-Users] issue with rewrite to domain in failure route

2018-09-17 Thread Yuriy Gorlichenko
But I rewrites succesfully with request_route Flow. Im rewriting it with out any issues пн, 17 сент. 2018 г., 12:23 Mojtaba : > The $td is read-only variable, and yoou could not change it's value. > If you want to change domain in To header, You should use testops > module in kamialio and replace

Re: [SR-Users] issue with rewrite to domain in failure route

2018-09-17 Thread Mojtaba
The $td is read-only variable, and yoou could not change it's value. If you want to change domain in To header, You should use testops module in kamialio and replace domain in To header. for example: subst('/^To:(.*)sip:[^@]*@[a-zA-Z0-9.]+(.*)$/t:\1$avp(sip_address)\2/ig') With Regards.Mojtaba On

[SR-Users] issue with rewrite to domain in failure route

2018-09-17 Thread Yuriy Gorlichenko
Hi I'm building some system with failover trunk but my providers requires to set their doamin in domain part of To Header so when I rewrite it at the my failure_route $td = FAILOVER_PROVIDER my To filed looks like To: what i tried: Move this change to BRANCH_ROUTE: here tried as $td = as uac_re