Hi, Anyone knows how to handle 487 Request Terminated on callee side when it recieves a "CANCEL" ? It triggers the failure_route logic bloc and I would like to avoid this.
ser.sfg
route [3] { # Local call, voip-voip, if (uri =~"^sip:7[0-9][0-9]@.*") { rewritehost("neotelecoms.fr"); if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; }; t_on_failure("1"); t_relay(); break;
failure_route[1] { if (method == CANCEL) { break; }; revert_uri(); rewritehostport("192.168.10.122:5060"); prefix("7"); append_branch(); t_relay(); break;
Christian de BALORRE Ingénieur Systèmes & Réseaux Neotelecoms - MFN France 7-9, rue Petit 92582 Clichy Cedex
Tel 01 49 97 07 35
Christian de Balorre wrote:
Hi, Anyone knows how to handle 487 Request Terminated on callee side when it recieves a "CANCEL" ? It triggers the failure_route logic bloc and I would like to avoid this.
Use "if(t_check_status("487")) { break; }" at the beginning of your failure-route.
Andy