Hi Sebastian,
I use a Perl script which runs my queries and disconnects any calls for
users that have run out of credit. The script then sleeps for a time and
loops back to the beginning of the script. Nothing clever!
I don't set a timer at the start of each call because there may be multiple
simultaneous calls using the same credit and I don't reduce the credit until
the call ends.
Regards
Stuart
-----Original Message-----
From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org] On
Behalf Of Sebastian Kühner
Sent: 11 July 2005 14:45
To: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Session-Timers for Prepaid
Hi Stuart,
I'm with the same problem at this moment. I have a billing system on my
server with asterisk (credit, rates, call-cost, ...) and it works fine with
ser, too (with some TRIGGERS in the postgres database). I'm also able to
send "BYE" messages to the caller/callee to terminate the call... but I
still have to make it manually.
You wrote that have a process which runs periodically... how did you make
that? You wrote your own C-program? It would be nice to have a good command
line-timer in which you can put the sipsak command lines for every call...
Thanks
Sebastian
----- Original Message -----
From: "Stuart Kirkwood - Jubilee Consultancy Limited"
<stuart(a)jubileeconsultancy.com>
To: "'Jan Janak'" <jan(a)iptel.org>
Cc: <serusers(a)lists.iptel.org>
Sent: Friday, July 08, 2005 5:24 PM
Subject: RE: [Serusers] Session-Timers for Prepaid
Hi Jan,
My solution for disconnecting calls where the customer has run out of
credit
is to use SER to generate a BYE to the gateway. I use
exec_dset and
exec_msg
from ser.cfg to store in a MySQL table some fields
from the INVITE and ACK
messages that setup the call. Then I have a process which runs
periodically
on my server that queries the table to find calls that
need to be
disconnected and generates, using the SER fifo, a BYE message to the Cisco
gateway which disconnects the call. Not very elegant solution but it
appears to work and I don't have to handle the media stream. I could also
send a BYE to the phone but I don't do that at the moment.
Please could you tell us about how you are solving this problem in
production systems? I expect you have a more elegant and professional
solution.
Regards
Stuart
-----Original Message-----
From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org] On
Behalf Of Jan Janak
Sent: 08 July 2005 19:28
To: Daryl Sanders
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Session-Timers for Prepaid
I tried this a long time ago with a Cisco gateway. It worked, SER
did not let re-INVITEs through and the gateway terminated the call. We
are not using it anywhere in production.
Jan.
On 02-07-2005 06:48, Daryl Sanders wrote:
I know there was some discussion in the recently
about using
session-timers as a method for doing prepaid. I'm just wondering if
anyone has actually played around with this, and what your experiences
were? My PSTN Gateways support session-timers, so I was thinking about
trying this.
- Daryl
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers