You can use the dialog module to make that happen, Hans. Take a look at
http://www.kamailio.org/docs/modules/1.5.x/dialog.html
The dialog module is used to track the state of open dialogs in Kamailio
and the module includes the option to impose a timeout. You do this by
first setting a timeout value in your module parameters section:
modparam("dialog", "default_timeout", 43200)
Now just enable bi-directional BYEs in any routes you want to time out:
$dlg_ctx(timeout_bye) = 1;
Hope this helps.
On 03/02/2011 03:54 PM, Hans Goossens wrote:
Hi,
I'm wondering if there is a easy way to limit the call duration in
Kamailio ? I would like to automaticaly end the call when the max.
duration (for example 12 hours) is reached.
In the feature overview of Kamailio 1.5 I found: "option to send BYE
when dialog expires" but i'm can't figure out how to get this working
(if it's still implemented at all in the current version).
Thanks in advance,
Kind regards
Hans
_______________________________________________
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
--
Joe Hart
Voice Systems Integrator
Evariste Systems LLC
1170 Peachtree Street
12th Floor, Suite 1200
Atlanta, GA 30309
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web : http://www.evaristesys.com/
_______________________________________________
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