Hi again list,
I'm trying to get acc module to work so that I can write a billing script for SER (which I'll probably stick on CPAN just like what I've done for Asterisk::LCR).
Thanks to Olivier Taylors' help now the module works (well, at least SER starts). But I see no trace of my BYE messages. Which is strange since I do record route (well, I think I do).
I have pasted my ser.cfg on http://pastebin.ca/38650
Can you see what's going wrong? I would really like to avoid using Asterisk *just* to be able to bill stuff.
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.
Regards, Paul
On 1/26/06, Jean-Michel Hiver jhiver@ykoz.net wrote:
Hi again list,
I'm trying to get acc module to work so that I can write a billing script for SER (which I'll probably stick on CPAN just like what I've done for Asterisk::LCR).
Thanks to Olivier Taylors' help now the module works (well, at least SER starts). But I see no trace of my BYE messages. Which is strange since I do record route (well, I think I do).
I have pasted my ser.cfg on http://pastebin.ca/38650
Can you see what's going wrong? I would really like to avoid using Asterisk *just* to be able to bill stuff.
-- 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
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
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.