How can make SER flags status 404 for accounting and send a stop accouting record to the radius server?
Am currently doing accounting for calls going to PSTN network and it's working fine if the call is not completed and if I get an error like status 404 then no stop accounting record is sent to the radius server.
I would like to force SER to send stop accouting flag to radius server.
Can I do this on SER 0.8.14
if (!lookup("location")) {
setflag(1); # doesn't seem to be needed, problably because sl_send_reply # acc_rad_request("stop"); sl_send_reply("404", "Not Found"); break;
Thanks.
Mohamed
--------------------------------- Post your free ad now! Yahoo! Canada Personals
I have been stuggling with this accounting issue for over two weeks now. I want force SER send a stop accounting flag to the radius server when it get a status 404.
I tried to use rad_acc_request("stop"); in my ser.cfg but I get the following error when start ser. "unknown command, missing loadmodule?"
Please help, I have been pulling my hair for the past two week.
if any one has a cheap solution that can send stop accounting record on incomplete call. let me know.
thanks Mohamed.
Mohamed Omar amatek2004@yahoo.ca wrote: unknown command, missing loadmodule?
How can make SER flags status 404 for accounting and send a stop accouting record to the radius server?
Am currently doing accounting for calls going to PSTN network and it's working fine if the call is not completed and if I get an error like status 404 then no stop accounting record is sent to the radius server.
I would like to force SER to send stop accouting flag to radius server.
Can I do this on SER 0.8.14
if (!lookup("location")) {
setflag(1); # doesn't seem to be needed, problably because sl_send_reply # acc_rad_request("stop"); sl_send_reply("404", "Not Found"); break;
Thanks.
Mohamed
--------------------------------- Post your free ad now! Yahoo! Canada Personals _______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
--------------------------------- Post your free ad now! Yahoo! Canada Personals
I have been stuggling with this accounting issue for over two weeks now. I want force SER send a stop accounting flag to the radius server when it get a status 404.
I tried to use rad_acc_request("stop"); in my ser.cfg but I get the following error when start ser. "unknown command, missing loadmodule?"
Please help, I have been pulling my hair for the past two week.
if any one has a cheap solution that can send stop accounting record on incomplete call. let me know.
thanks Mohamed.
Mohamed Omar amatek2004@yahoo.ca wrote: unknown command, missing loadmodule?
How can make SER flags status 404 for accounting and send a stop accouting record to the radius server?
Am currently doing accounting for calls going to PSTN network and it's working fine if the call is not completed and if I get an error like status 404 then no stop accounting record is sent to the radius server.
I would like to force SER to send stop accouting flag to radius server.
Can I do this on SER 0.8.14
if (!lookup("location")) {
setflag(1); # doesn't seem to be needed, problably because sl_send_reply # acc_rad_request("stop"); sl_send_reply("404", "Not Found"); break;
Thanks.
Mohamed
--------------------------------- Post your free ad now! Yahoo! Canada Personals _______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
--------------------------------- Post your free ad now! Yahoo! Canada Personals
Hi Mohammed!
If there is no call at all (404) why do you want to generate CRDs? If you would send a stop record - then there would be no "start" record for this call.
If you really want to account failed transcations, use the "failed_transactions" parameter from the acc module (README). This will produce only a "start" record - no stop record. But this is no problem, as the status colum in this case is 404 and you only will bill records with status 200.
regards, klaus
PS: This question should be asked in the serusers mailinglist, not serdev.
Mohamed Omar wrote:
How can make SER flags status 404 for accounting and send a stop accouting record to the radius server?
Am currently doing accounting for calls going to PSTN network and it's working fine if the call is not completed and if I get an error like status 404 then no stop accounting record is sent to the radius server.
I would like to force SER to send stop accouting flag to radius server.
Can I do this on SER 0.8.14
/*if (!lookup("location")) {
/*/ setflag(1); // # doesn't seem to be needed, problably because sl_send_reply // # acc_rad_request("stop"); // sl_send_reply("404", "Not Found"); // break; /*
Thanks.
Mohamed
Post your free ad now! *Yahoo! Canada Personals* http://ca.personals.yahoo.com/
Serdev mailing list serdev@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serdev