Re: [SR-Users] Limit call duration

2011-03-07 Thread Hans Goossens

Hello Joe,

Thanks for your response. Setting "$dlg_ctx(timeout_bye) = 1" did the trick.

One more question: after the session is ended, the following line is 
printed:


WARNING: dialog [dlg_req_within.c:173]: inconsitent dlg timer data on dlg 
0xb368c954 [1975:901494976] with clid '1-8910@172.16.14.71' and tags 
'1-INV-UAC' 'as5bc41620'


Is this normal ?

Kind regards
Hans

-Original Message- 
From: Joe Hart

Sent: Wednesday, March 02, 2011 10:20 PM
To: sr-users@lists.sip-router.org
Subject: Re: [SR-Users] Limit call duration

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 



___
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


Re: [SR-Users] Limit call duration

2011-03-02 Thread Joe Hart
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