I'm trying to setup PSTN gateway for termination and i would like to use SER as a guard + to collect CDR's. but my consurn is the BYE messages i don't know how many failed BYE messages i'll get in realtime operation because i can't get correct cdr's without BYE.
Is there a way to use mediaproxy rtp timeout so when i don't receive BYE i the call will be terminated let's say in 30 sec. What kind of message does mediaproxy send after that idle time CANCEL?
And what is better way to do billing? Set cron to check balance on 5 min. or to use exec module and do mysql query after every BYE or CANCEL message? Using cron will make me lose maximum of 5 min. * number of PSTN lines and with query after every call i will lose only charge for active calls.
Regards
Nikola Stojanoski wrote:
I'm trying to setup PSTN gateway for termination and i would like to use SER as a guard + to collect CDR's. but my consurn is the BYE messages i don't know how many failed BYE messages i'll get in realtime operation because i can't get correct cdr's without BYE.
Is there a way to use mediaproxy rtp timeout so when i don't receive BYE i the call will be terminated let's say in 30 sec. What kind of message does mediaproxy send after that idle time CANCEL?
per default mediaproxy logs to syslog. You can also log to db, but I never used it.
regards klaus
And what is better way to do billing? Set cron to check balance on 5 min. or to use exec module and do mysql query after every BYE or CANCEL message? Using cron will make me lose maximum of 5 min. * number of PSTN lines and with query after every call i will lose only charge for active calls.
Regards _______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Thanks Klaus for your answer but what i wanted is to get the cdr's from accounting module from SER so is mediaproxy sending messages BYE or CANCEL to SER after that idle time or it's just closing the session and logs into it's own logfiles? It is going to be more easy if SER is getting some signaling from mediaproxy because if the mediaproxy is doing separate logging i will need to check 2 databases and make some hard calculations.
As i've seen on the newest verion of mediaproxy accounting is not included into the free package and i don't realy need codectype etc. i just want to have call duration so i can calculate price.
Regards
----- Original Message ----- From: "Klaus Darilion" klaus.mailinglists@pernau.at To: "Nikola Stojanoski" nikola@intrafon.com Cc: serusers@lists.iptel.org Sent: Wednesday, December 14, 2005 5:49 PM Subject: Re: [Serusers] PSTN guard
Nikola Stojanoski wrote:
I'm trying to setup PSTN gateway for termination and i would like to use SER as a guard + to collect CDR's. but my consurn is the BYE messages i don't know how many failed BYE messages i'll get in realtime operation because i can't get correct cdr's without BYE.
Is there a way to use mediaproxy rtp timeout so when i don't receive BYE i the call will be terminated let's say in 30 sec. What kind of message does mediaproxy send after that idle time CANCEL?
per default mediaproxy logs to syslog. You can also log to db, but I never used it.
regards klaus
And what is better way to do billing? Set cron to check balance on 5 min. or to use exec module and do mysql query after every BYE or CANCEL message? Using cron will make me lose maximum of 5 min. * number of PSTN lines and with query after every call i will lose only charge for active calls.
Regards _______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Nikola Stojanoski wrote:
Thanks Klaus for your answer but what i wanted is to get the cdr's from accounting module from SER so is mediaproxy sending messages BYE or CANCEL to SER after that idle time or it's just closing the session and
It only closes the session. (maybe there is a commercail version which also sends a BYE)
logs into it's own logfiles? It is going to be more easy if SER is getting some signaling from mediaproxy because if the mediaproxy is doing separate logging i will need to check 2 databases and make some hard calculations.
If the gateway is also under your control, just use the CDRs from the GW. Much easier und more accurate. If not, put Asterisk inbetween. It's not a nice solution but it works.
regards Klaus
As i've seen on the newest verion of mediaproxy accounting is not included into the free package and i don't realy need codectype etc. i just want to have call duration so i can calculate price.
Regards
----- Original Message ----- From: "Klaus Darilion" klaus.mailinglists@pernau.at To: "Nikola Stojanoski" nikola@intrafon.com Cc: serusers@lists.iptel.org Sent: Wednesday, December 14, 2005 5:49 PM Subject: Re: [Serusers] PSTN guard
Nikola Stojanoski wrote:
I'm trying to setup PSTN gateway for termination and i would like to use SER as a guard + to collect CDR's. but my consurn is the BYE messages i don't know how many failed BYE messages i'll get in realtime operation because i can't get correct cdr's without BYE.
Is there a way to use mediaproxy rtp timeout so when i don't receive BYE i the call will be terminated let's say in 30 sec. What kind of message does mediaproxy send after that idle time CANCEL?
per default mediaproxy logs to syslog. You can also log to db, but I never used it.
regards klaus
And what is better way to do billing? Set cron to check balance on 5 min. or to use exec module and do mysql query after every BYE or CANCEL message? Using cron will make me lose maximum of 5 min. * number of PSTN lines and with query after every call i will lose only charge for active calls.
Regards _______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers