[OpenSIPS-Users] How to customize response on fr_inv_timer
Hamid Hashmi
hamid2kviii at hotmail.com
Thu Feb 12 07:30:27 CET 2015
Its my mistake :p fr_inv_timer timeout sends CANCEL to Callee NOT to Caller. But my call terminated due to response 487 came from Callee. I just droped the response 487 in onreply_route and its working for me. Is it a good practice ?RegardsHamid R. Hashmi
Date: Wed, 11 Feb 2015 22:19:21 +0200
From: bogdan at opensips.org
To: users at lists.opensips.org; hamid2kviii at hotmail.com
Subject: Re: [OpenSIPS-Users] How to customize response on fr_inv_timer
Hi Hamid,
If you catch the 408 reply in failure route and create a new
branch (to divert to another GW), there will be nothing sent back
to UAC (caller) to inform about this timeout event.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 10.02.2015 10:17, Hamid Hashmi wrote:
Hello,
On fr_ivr_timer timeout opensips1.11 sends CANCEL to Caller
and I handle the timout in failure route by 408 sip response.
May I change method CANCEL to some other response that can
indicate a caller (UAC) that call is now diverting to another
gateway so that Caller can wait more.
failure_route[1]{
.
.
.
if (t_check_status("408")) {
.
.
.
if (
t_local_replied("last") ) {
# timeout with replies received
-> fr_inv_timer
xlog("L_NOTICE",
"[$pr:$fU@$si:$sp]: Timeout on RING timer for '$rm' from
'$fu' to '$ru' after '$avp(5)' seconds \n");
route(failover);
}
}
.
.
.
}
Call failoverd to route[failover] but CANCELED due to
fr_ivr_timer timout because it send CANCEL to Caller.
Any solution ?
Regards
Hamid R. Hashmi
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150212/bca0cf70/attachment-0001.htm>
More information about the Users
mailing list