If Kamailio founds out that the topmost Router header is itself, then it
will remove it and use the nexxt Route header or the Request-URI.
If Kamailio fails to recognize that the Route header is itself, then it
will forward the request to the address in the Route header (loop).
(considering that you use the default config file with loose_route()).
thus, make sure that the URI in the Route header is recognized by
Kamailio as itself. (it should be if you use record_route() function).
Set debug=4 and grep for "myself" when the loose_route() function is
called. Then you will see if Kamailio matches the topmost Route URI.
regards
Klaus
On 24.10.2011 14:55, Claudio Furrer wrote:
Hello,
How does sip-router process this BYE?
BYE sip:321456@<sip-router_ip>:7080 SIP/2.0
Via: SIP/2.0/UDP<remote_uac_ip>:5060;branch=z9hG4bK7fb4c2325A0617FF
From:<sip:445566@mydomain.com:5060>;tag=19C8FD8-72B75A25
To: "321456"<sip:321456@<sip-router_ip>:7080>;tag=as28777464
Route:<sip:<sip-router_ip>;lr=on>
CSeq: 1 BYE
Call-ID: 2b9512ef7ea290f07c54db1808e32211@<asterisk_ip>:7080
Contact:<sip:445566@<remote_uac_ip>:5060>
User-Agent: UAc
Max-Forwards: 70
Content-Length: 0
Does it routes the BYE, reading first the RURI or the Route header field?
What if<sip-router_ip>:7080 is not itself (myself variable), because currently
the proxy is listening at different port (5060)?
Note: proxy working in stateful mode.
Regards,
Claudio
pd: I've read section "16.4 Route Information Preprocessing" of rfc but
it's
not clear for me in this case.
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users