Hello,

On 3/28/12 4:23 PM, Ryan Gholam wrote:
hello,

Is there any billing application or modules to use with kamailio , for
example if i want to check the credits of the user on every passing
minute , and when he's out of credits i stop the call .
dialog is the module you can use in kamailio to track active calls and can be used to terminate them.

What you can do is to get the max duration of the call at setup (via sqlops to a database or http request to a billing engine) and set it in the dialog. You can update the dialog timeout at runtime, dialog from devel branch is more flexible in this regard:

http://kamailio.org/docs/modules/devel/modules_k/dialog.html

Siremis (http://siremis.asipto.com) includes a basic SQL-based billing engine, used in postpaid fashion -- it may help to build your own.

Cheers,
Daniel

--
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
http://www.asipto.com/index.php/kamailio-advanced-training/


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to