Scenario 1 happens when call is routed to voipswitch and call is hanged by the calledparty. (If calling party hangs then no issues. I.e. when BYE is first sent by voipswitch then accounting doesnt happen.)
Scenario 2 happens when call is made by PAP2 and PAP2 hangs the call.
-----Original Message----- From: Dan [mailto:fiedler.dan@gmail.com] Sent: Tuesday, September 04, 2007 4:00 PM To: 'Iñaki Baz Castillo'; 'users@openser.org' Subject: RE: [OpenSER-Users] Opnser rejecting BYE packet
Yes I do get the message: "BYE not in loose_route" when I have added the XLOG line as mentioned by you.
Regards Dan
-----Original Message----- From: users-bounces@openser.org [mailto:users-bounces@openser.org] On Behalf Of Iñaki Baz Castillo Sent: Tuesday, September 04, 2007 2:55 PM To: users@openser.org Subject: Re: [OpenSER-Users] Opnser rejecting BYE packet
El Tuesday 04 September 2007 10:49:54 Dan escribió:
# ----------------------------------------------------------------- # Loose Route Section #
-----------------------------------------------------------------
if (loose_route()) {
if (has_totag() && (method=="INVITE" || method=="ACK")) { if (nat_uac_test("19")) { setflag(6); force_rport(); fix_nated_contact(); }; force_rtp_proxy("l"); }; route(1); exit; };
Try adding here this log:
xlog("L_INFO", "$rm not in loose_route \n");
And test if it appears in the BYE you receive.
if (!uri==myself) { route(5); route(1); exit; };