[Serusers] How to intercept reply messages

Klaus Darilion klaus.mailinglists at pernau.at
Wed Jun 16 17:29:09 CEST 2004


you have to set up a reply route:


route{
     ....
     t_on_reply("3");
     ....
};

onreply_route[3]{
	if ( (status=~"200" || status=~"183") ) {
		force_rtp_proxy();
		append_hf("P-RTP-Proxy: YES\r\n");
	};
	log(1, "leaving onreply_route(1)\n");
}


regards,
klaus


Zappasodi Daniele wrote:

> Hi all,
> I need to intercept the reply messages ("302 Moved Temporarily", "200 
> Accepted",  "405 Method not allow" etc. ) and execute different actions 
> for different status codes (for example I could block all the "Moved 
> Temporally" messages or, in the Failure_route block, I could route the 
> calls to different destinations for each different failure reason : 
> Busy, no response, not available ...).  
> 
> How can I do this thing with the ser.cfg file?   
> 
> I have tried with the "method" operand and with the "search" function 
> but I'm not able to intercept the reply messages with these functions.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list