<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>R: [Serusers] How to intercept reply messages</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Thanks for the answer.</FONT>
<BR><FONT SIZE=2>Now I am able to intercept the reply but I am not still able to stop these messages.</FONT>
<BR><FONT SIZE=2>Cn I change the type of the reply? For example I could substitute a "302 moved Temporarily" with a "403 Forbidden" in order to avoid the call divert. </FONT></P>
<P><FONT SIZE=2>Daniele</FONT>
</P>
<P><FONT SIZE=2>-----Messaggio originale-----</FONT>
<BR><FONT SIZE=2>Da: Klaus Darilion [<A HREF="mailto:klaus.mailinglists@pernau.at">mailto:klaus.mailinglists@pernau.at</A>]</FONT>
<BR><FONT SIZE=2>Inviato: mercoledì 16 giugno 2004 17.29</FONT>
<BR><FONT SIZE=2>A: Zappasodi Daniele</FONT>
<BR><FONT SIZE=2>Cc: serusers@lists.iptel.org</FONT>
<BR><FONT SIZE=2>Oggetto: Re: [Serusers] How to intercept reply messages</FONT>
</P>
<BR>
<P><FONT SIZE=2>you have to set up a reply route:</FONT>
</P>
<BR>
<P><FONT SIZE=2>route{</FONT>
<BR><FONT SIZE=2> ....</FONT>
<BR><FONT SIZE=2> t_on_reply("3");</FONT>
<BR><FONT SIZE=2> ....</FONT>
<BR><FONT SIZE=2>};</FONT>
</P>
<P><FONT SIZE=2>onreply_route[3]{</FONT>
<BR> <FONT SIZE=2>if ( (status=~"200" || status=~"183") ) {</FONT>
<BR> <FONT SIZE=2>force_rtp_proxy();</FONT>
<BR> <FONT SIZE=2>append_hf("P-RTP-Proxy: YES\r\n");</FONT>
<BR> <FONT SIZE=2>};</FONT>
<BR> <FONT SIZE=2>log(1, "leaving onreply_route(1)\n");</FONT>
<BR><FONT SIZE=2>}</FONT>
</P>
<BR>
<P><FONT SIZE=2>regards,</FONT>
<BR><FONT SIZE=2>klaus</FONT>
</P>
<BR>
<P><FONT SIZE=2>Zappasodi Daniele wrote:</FONT>
</P>
<P><FONT SIZE=2>> Hi all,</FONT>
<BR><FONT SIZE=2>> I need to intercept the reply messages ("302 Moved Temporarily", "200 </FONT>
<BR><FONT SIZE=2>> Accepted", "405 Method not allow" etc. ) and execute different actions </FONT>
<BR><FONT SIZE=2>> for different status codes (for example I could block all the "Moved </FONT>
<BR><FONT SIZE=2>> Temporally" messages or, in the Failure_route block, I could route the </FONT>
<BR><FONT SIZE=2>> calls to different destinations for each different failure reason : </FONT>
<BR><FONT SIZE=2>> Busy, no response, not available ...). </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> How can I do this thing with the ser.cfg file? </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I have tried with the "method" operand and with the "search" function </FONT>
<BR><FONT SIZE=2>> but I'm not able to intercept the reply messages with these functions.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> ------------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> _______________________________________________</FONT>
<BR><FONT SIZE=2>> Serusers mailing list</FONT>
<BR><FONT SIZE=2>> serusers@lists.iptel.org</FONT>
<BR><FONT SIZE=2>> <A HREF="http://lists.iptel.org/mailman/listinfo/serusers" TARGET="_blank">http://lists.iptel.org/mailman/listinfo/serusers</A></FONT>
</P>
</BODY>
</HTML>