Thanks man fixed J 

 

Please can you send me the link that I can do my queries on J as I am always 
using google ,or it’s a google search 

 

 

Thanks for help , Appreciated 

 

Regards



 

From: [email protected] 
[mailto:[email protected]] On Behalf Of Laszlo
Sent: Wednesday, June 19, 2013 5:07 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] uac_replace_to problem

 

Cool!

If you checked the link what I have sent, then you can easily see the logic how 
it can be implemented.

-Laszlo

 

2013/6/19 M.Khaled W Chehab <[email protected]>

Hi Laszlo 

 

I am searching since yesterday,as I inform you that I use uac_restore_to() and 
I set iuac_replace_to   in different places  and in different shapes

, 

Today afternoon I ask this question in the users list since most of google seah 
result links marked as read J

At all thanks 

Sure I will keep searching ,,,

regards

 

 

 

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of Laszlo
Sent: Wednesday, June 19, 2013 4:50 PM


To: OpenSIPS users mailling list

Subject: Re: [OpenSIPS-Users] uac_replace_to problem

 

Yes, but why don't you try to search for the answer first? This problem was 
discussed several times before.

By doing searching, everybody can see that you make some steps to resolve the 
problem by yourself, not just asking for the "solution".

A quick search for the problem will show this result too:

http://lists.opensips.org/pipermail/users/2010-June/013200.html

Took 40 seconds to find.....

-Laszlo

 

 

2013/6/19 M.Khaled W Chehab <[email protected]>

Please can you show me what do you mean by coding it ,what do you mean branch 
route  for example is it route (6) I am using , you can find my config below 

 

while i am using uac_replace_to in failover route branch i can find that TO 
header is not changed(sip user part ) but appended an new raw  as I want it to 
be To: "971552448304" <sip: [email protected]>

 

SIP to address: 
sip:[email protected]:[email protected]

SIP to address User Part: 835822971552448304

SIP to address Host Part: xx.xx.xx.55sip

SIP to address Host Port: [email protected]

 

 

Thanks in advance 

 

regards

 

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of Flavio Goncalves
Sent: Wednesday, June 19, 2013 3:13 PM
To: OpenSIPS users mailling list
Cc: [email protected]
Subject: Re: [OpenSIPS-Users] uac_replace_to problem

 

Hi Khaleb, 

 

Set uac_replace_to and uac_replace_from in a branch_route. 

 

Flavio E. Goncalves

 

 

2013/6/19 M.Khaled W Chehab <[email protected]>

Hi,

 

I am running opensips 1.8.3 with  do_routing module 

A dial_rule prefix has 3 trunk gateways ( gw1,gw2,gw3)

 

After do_routing(,)

I am setting the $rU and fixing  the To Tag header using uac_replace_to( and 
the call go to gw1 with correct TO tag as I set it ,

 

but when calls fails on gw1 ,then  I set the $rU in route[6] to go to second in 
route and it goes with bad TO header, since it goes with the same To header in 
the 1st invite 

That target gw1 

1-how to fix the To header in the second invite to gw2

 

 

loadmodule "uac.so"

modparam("uac","restore_mode","auto")

 

uac_replace_to("$avp(dst)","sip:$var(prefix)$avp(dst)@$td");

                                       t_on_failure("1");

 

on failure_route[1] {

.

if (!t_check_status("487")) {

                             #xlog("------------route6-------\n");

                             $avp(failure_count) = $avp(failure_count) + 1;  
#480|486|603          

                                       route(6);

                                                 

                    } 

 

Route[6]{

.

.

.

$rU = $var(prefix) + $avp(dst);

uac_replace_to("sip:$var(prefix)$avp(dst)@$td");

 

}

 

Regards

 


_______________________________________________
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

 


_______________________________________________
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