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.