[Serusers] t_on_failure also when CANCEL?

Adrian Georgescu ag at ag-projects.com
Wed Nov 26 22:39:46 CET 2003


I have a problem CANCELING requests when using t_on_failure. Example:

I forward the call to the PSTN gateway. Then I CANCEL the request. I am 
using a second PSTN gateway for backup and I call the function 
t_on_failure before t_relay:

         t_on_failure("2");
         if (!t_relay()) {
                 sl_reply_error();
         };

As a result of the CANCEL request, a 487 code is received and 
t_on_failure redirects the requests to the second PSTN gateway. This is 
not what I expect after sending a CANCEL. The manual says all responses 
 > 300 are considered failures but an intended CANCEL is not a failure, 
is it?

Do I miss something in the configuration to stop this from happening?

Regards,
Adrian Georgescu
ag at ag-projects.com
http://ag-projects.com
Tel: +31-23-5458104
IP phone:  sip:ag at ag-projects.com
------------------------------------------------
DNS, ENUM & IP telephony http://managed-dns.org/




More information about the sr-users mailing list