<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">

                                                                <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-16">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
<META HTTP-EQUIV="EXPIRESABSOLUTE" CONTENT="Tue, 01 Jun 1999 12:00:00 GMT">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="PRIVATE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<TITLE></TITLE>

<META content="MSHTML 6.00.2900.2838" name=GENERATOR></HEAD>
                                                        <BODY >
                                                                <DIV><!-- Converted from text/plain format -->
<P><FONT size=2>Hi,<BR><BR>Thanks for your reply.<BR>But I didn't understand 
what to do. I already have that configuration in the ser.cfg.<BR>What should I 
add to it so that BYE messages would allways go through SER 
?<BR><BR>Thanks,<BR>ilker<BR><BR>-----Original Message-----<BR>From: 
serusers-bounces@lists.iptel.org [<A 
href="mailto:serusers-bounces@lists.iptel.org">mailto:serusers-bounces@iptel.org</A>] 
On Behalf Of Michal Matyska<BR>Sent: Friday, May 12, 2006 1:32 PM<BR>To: 
serusers@lists.iptel.org<BR>Subject: Re: [Serusers] How to use record route to change 
path of BYE messages<BR><BR>On Fri, May 12, 2006 at 10:38:51AM +0300, &#304;lker 
Aktuna (Ko&#231;.net) wrote:<BR>&gt; Hi everyone,<BR>&gt;&nbsp;<BR>&gt; I am still 
trying to find a solution to my problem with BYe messages that are not going 
through SER.<BR>&gt; Maybe someone with enough knowledge about route recording 
could help me with the configuration:<BR>&gt;&nbsp;<BR>&gt; My main problem with 
BYE messages is that they are not going through SER; the client sends it 
directly to my rtp proxy. as the RTP is established with it.<BR>&gt; I need them 
to go through SER. How can I achieve this ?<BR>&gt;&nbsp;<BR>&gt; I don't know 
how to use route recording, could you explain what<BR>&gt; following config 
block does ? (this is in the default configuration<BR>&gt; but doesn't make BYE 
messages to go through SER)<BR>&gt;&nbsp;<BR><BR>It does (you can check by 
ethereal, ngrep 
etc.),<BR><BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(!method=="REGISTER") 
{<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
record_route();<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR><BR>but as it has another Route header pointing to the RTP proxy it leaves 
SER&nbsp; within the next block which is entered when loose_route() function has 
found any reasonable target in the Route headers to forward the request to 
....<BR><BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(loose_route()) 
{<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# mark routing logic in 
request<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
append_hf("P-hint: rr-enforced\r\n");<BR><BR>so you can add your logic either 
here or into route[1] block, which might be called from other places as well (be 
aware)<BR><BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
route(1);<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
break;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&gt;&nbsp;<BR><BR>And you'll get all the subsequent dialog request and 
target refresh requests (not only BYE) from both parties, which basically means 
the To and From could be swapped (e.g. BYE is sent by the proxy, net the 
client).<BR><BR>&gt; thanks,<BR>&gt; ilker<BR>&gt;<BR>Hope Google will index 
this to help more people :-) 
Michal<BR><BR>_______________________________________________<BR>Serusers 
mailing list<BR>serusers@lists.iptel.org<BR><A 
href="http://lists.iptel.org/mailman/listinfo/serusers">http://mail.iptel.org/mailman/listinfo/serusers</A><BR></FONT></P>
<!--445D5241795C-->
<br><br><a href="http://387555.sigclick.mailinfo.com/sigclick/03010604/01044804/070E4D03/10911414.jpg"><img src="http://387555.signature1.mailinfo.com/confirm2.6/03010604/01044804/070E4D03/10911414.jpg" border="0" nosend="1"></a><!--445D5241795C//--></DIV>
                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
                                                                        <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">_____________________________________________________________________________________________________________________________________________</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa,&nbsp; icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz&nbsp; ve&nbsp; tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz.&nbsp; Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. </DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential&nbsp; information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however,&nbsp; sender&nbsp; cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">_____________________________________________________________________________________________________________________________________________</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana" ALIGN="justify">
</DIV>
</DIV>
</DIV></BODY></HTML>