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(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers