[Serusers] Where are my BYE messages gone?
Jean-Michel Hiver
jhiver at ykoz.net
Thu Jan 26 23:14:51 CET 2006
Paul Hazlett a écrit :
>Jean-Michel,
>
>You will need to modify line 74 to [EXCLUDE] the BYE condition.
>
>Then add this at line 62
>
>if (method=="BYE")
> setflag(1);
>
>
>The reason is that BYE messages can be loose_routed(), so I'm assuming
>that your BYE messages are never hitting line 74 because they are
>hitting line 67.
>
>
I see. I haven't done exactly what you said... instead of doing:
# -----------------------------------------------------------------
# Loose Route Section
# -----------------------------------------------------------------
if (loose_route()) {
route(1);
break;
};
# -----------------------------------------------------------------
# Sets the acc accounting flag 4 billing
# -----------------------------------------------------------------
if( (method=="INVITE") || (method=="ACK") || (method=="BYE")) {
setflag(1);
};
I swapped the two sections and now have:
# -----------------------------------------------------------------
# Sets the acc accounting flag 4 billing
# -----------------------------------------------------------------
if( (method=="INVITE") || (method=="ACK") || (method=="BYE")) {
setflag(1);
};
# -----------------------------------------------------------------
# Loose Route Section
# -----------------------------------------------------------------
if (loose_route()) {
route(1);
break;
};
And well, it seems that it works :)
Thanks for your precious advice!
Cheers,
Jean-Michel.
--
Jean-Michel Hiver - http://ykoz.net/
Découvrez la Réunion des Technologies IP & Telecom
TEL: +262 (0)262 55 03 98 - RCS 434 273 330 SAINT PIERRE
More information about the sr-users
mailing list