<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>You could turn on the debugging to see how ex. the avpairs are changed... 
</DIV>
<DIV>&nbsp;</DIV>
<DIV>My first guess would be to re-verify that you really are using domains in 
usrloc (parameter) and avp_pushto (ruri and not ruri/username). Besides that I 
cannot see anything obvious.&nbsp;&nbsp; I have basically the same setup running 
fine.</DIV>
<DIV>&nbsp;&nbsp;&nbsp; If I interpret the code correctly, lookup() will use the 
received field as dst (printed when doing a serctl ul show), if not,&nbsp;it 
will use&nbsp;ruri. The save command will set the received field to 
either&nbsp;the contact ip:port or the avpair set by modparam("registrar", 
"received_avp",def:42)</DIV>
<DIV>&nbsp;</DIV>
<DIV>g-)</DIV>
<DIV>&nbsp;</DIV>
<DIV>---- Original Message ----<BR>From: Java Rockx<BR>To: serusers<BR>Sent: 
Monday, June 20, 2005 10:59 PM<BR>Subject: [Serusers] avp_pushto() + 
append_branch() not working<BR><BR>&gt; Hi All.<BR>&gt; <BR>&gt; I just need a 
sanity check regarding avp_pushto() for serial forking.<BR>&gt; Someone please 
correct me if I'm wrong here. <BR>&gt; <BR>&gt; When processing an INVITE 
message which results in a 486 Busy status<BR>&gt; my failure_route[] gets 
invoked. <BR>&gt; <BR>&gt; In the failure route I use avp_pushto() to load the 
next leg of the<BR>&gt; call in to the $ruri and then call append_branch() 
and<BR>&gt; lookup(location) prior to t_relay()ing the message.&nbsp; <BR>&gt; 
<BR>&gt; Using ngrep I do see the R-URI being changed to the value used in 
the<BR>&gt; avp_pushto() call, but the IP address that the INVITE is then sent 
to<BR>&gt; is the same as the IP address of the SIP router, which I 
cannot<BR>&gt; understand because I do call lookup("location") before 
t_relay()&nbsp;&nbsp; <BR>&gt; <BR>&gt; In otherwords, if my sip router, 
sip.mycompany.com has an IP of<BR>&gt; 71.72.73.74 and I use avp_pushto() to set 
the R-URI to<BR>&gt; 1001_at_sip.mycompany.com, lookup(location) does return 
TRUE, but<BR>&gt; ngrep still shows the INVITE leaving the SIP router and going 
to<BR>&gt; 71.72.73.74 (ie, itself) rather than the IP address in 
usrloc.&nbsp;&nbsp;&nbsp; <BR>&gt; <BR>&gt; Is there anything obvious that I'm 
not doing that would cause<BR>&gt; lookup(location) to return TRUE, but not 
change the R-URI<BR>&gt; accordingly?&nbsp; <BR>&gt; <BR>&gt; Regards,<BR>&gt; 
Paul<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; 
_______________________________________________<BR>&gt; Serusers mailing 
list<BR>&gt; serusers@lists.iptel.org<BR>&gt; 
http://lists.iptel.org/mailman/listinfo/serusers</DIV></BODY></HTML>