Thanks for the answer.
Now I am able to intercept the reply but I am not still able to stop these
messages.
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.
Daniele
-----Messaggio originale-----
Da: Klaus Darilion [mailto:klaus.mailinglists@pernau.at]
Inviato: mercoledì 16 giugno 2004 17.29
A: Zappasodi Daniele
Cc: serusers(a)lists.iptel.org
Oggetto: Re: [Serusers] How to intercept reply messages
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