<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3395" name=GENERATOR>
<STYLE>BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="FONT-SIZE: 10pt; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>Hi,everyone<BR>        <BR>        For voice communication I 
use a SIP+RTP proxy together with SER.<BR>        For PSTN calls SER routes the INVITE 
messages to the RTP proxy.<BR>        <BR>        Everything works fine there, but when the 
call is ended by one client (which is connected to SER) or the PSTN user, the 
BYE message arrive to SER but dont forward it. If our RTP proxy does not see the 
message coming from SER, call doesn't end.<BR>        <BR>        That's why I need all of the 
BYE messages to go through SER.<BR>        How can I do that ?<BR></FONT></DIV>
<DIV><FONT face=Verdana size=2>In the documents they said that the bye message 
loose route if&nbsp;there are ";lr" and If the message should be<BR>loose routed 
then SER should simply relay the message to the next destination as specified in 
the top-most<BR>Record-Route header field .but i&nbsp;have a try 
and&nbsp;nothing happened!</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>that is my config block:</DIV>
<DIV><BR>&nbsp; # ------------------ module loading 
----------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;loadmodule "/usr/local/lib/ser/modules/sl.so"<BR>&nbsp;loadmodule 
"/usr/local/lib/ser/modules/tm.so"<BR>&nbsp;loadmodule 
"/usr/local/lib/ser/modules/rr.so"<BR><BR>&nbsp;# 
-------------------------&nbsp; request routing logic -------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;# main routing logic</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;route<BR>&nbsp;{&nbsp; record_route();<BR>&nbsp;&nbsp;&nbsp; 
if(message=="BYE")</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loose_route();</DIV>
<DIV>&nbsp;&nbsp;&nbsp;};<BR>&nbsp;</DIV>
<DIV>&nbsp;my ser is 1.2.3.4:5060<BR>&nbsp;this is my sip message:</DIV>
<DIV>&nbsp;BYE sip:0000123@19.68.150.20:31562 SIP/2.0^M<BR>&nbsp;Via: 
SIP/2.0/UDP 
23.43.53.4:5060;branch=z9hG4bK5a69ae91;rport^M<BR>&nbsp;Record-Route: 
&lt;sip:1.2.3.4:5060;ftag=28118cbe-30554463;lr&gt;^M<BR>&nbsp;Record-Route: 
&lt;sip:12.45.32.61:5060;r2=on;lr;ftag=28118cbe-30554463&gt;^M<BR>&nbsp;From: 
&lt;sip:123456@1.2.3.4:5060;user=phone&gt;;tag=as7232fbd6^M<BR>&nbsp;To: 
"beurself212" 
&lt;sip:0000123@19.68.150.20:31562&gt;;tag=28118cbe-30554463^M<BR>&nbsp;Call-ID: 
<A 
href="mailto:76ad6e55-86f19c97-MzA1NTQ0NjM@192.168.50.50^M">76ad6e55-86f19c97-MzA1NTQ0NjM@192.168.50.50^M</A><BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;Thanks,<BR>Jimmy</FONT></DIV>
<DIV align=left><FONT face=Verdana color=#c0c0c0 size=2>2008-09-12 
</FONT></DIV><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>

<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN>ÇñÀÚ</SPAN> 
</FONT></DIV></FONT></BODY></HTML>