Hi Bogdan,

Thank you for your prompt reply, the issue we are trying to resolve here is: 
How to replace a previously created TO URI header with a new URI?
 
Example: we have 3 IPs added to our SIP server and they are prioritised as 
below:
IP one (1.1.1.1) – Priority 01- has a prefix 02#
IP two (2.2.2.2) – Priority 02- has a prefix 07
IP three (3.3.3.3) – Priority 03- has no prefix
 
I want to terminate a call to 61415777075number.
 
Then using uac_replace_to function we are able to change it 
as02#[email protected]:5060
Now this call is failed to terminate it through IP 1.1.1.1 and we need to 
change it [email protected]:5060 (in order to try next IP as 07 is prefix 
for second ip) but while we are trying to do this using same uac replace : SIP 
is changing it to:
02#[email protected]:5060sip:[email protected]:5060
 
What is happening above is: SIP is appending both RUIs in one.
But we want this to [email protected]:5060.
 
We already tried RURI but it didn’t gave us our expected result; we are able to 
change RURI any number of times but the IP example 1.1.1.1 is not getting the 
prefix 02 in TO header of INVITe packet due to which gateway is unable to 
connect the call.

Your assistance to resolve this issue will be appreciated. 

Cheers
Anup 

> On 10 Dec 2013, at 4:51 am, Bogdan-Andrei Iancu <[email protected]> wrote:
> 
> Hello,
> 
> Using a proper script logic you can get to replacing the TO/FROM hdr only 
> once per branch - keep the new value into a variable (like AVP) so you can 
> change it as many times you need -> before seding the call out, do the actual 
> replace.
> 
> If you need to do the change per branch, you need to put the uac_replace_xxx 
> in the branch route !
> 
> Regards,
>  Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>> On 09.12.2013 13:57, AMPTEL PTY LTD | RuvixTel wrote:
>> Hi all
>> 
>> Just wondering, if anyone able to assist us with below:
>> 
>> We are using Opensips 1.6 and we               like to know: how can we 
>> replace URI Header more than once per call?
>> 
>> uac_replace_to function is there but when we try this second time: instead 
>> of replacing it. It just appended two headers.
>> 
>> What we are trying to achieve here               is call Fail Over function? 
>> When one IP is unable to terminate a call it will try next IP from the 
>> priority list.
>> 
>> Your assistance will be highly appreciated.
>> 
>> If this issue has been discussed earlier please direct me to the thread 
>> please.
>> 
>> 
>> --
>> Best Regards +
>> Anup 
>> 
>> ________________________
>> 
>> Ph:  +61 413 777 075 (Anup)
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to