[Spce-user] Limit call duration

Ivan Milivojevic edesibe at gmail.com
Wed Jan 8 13:40:35 EST 2014


Hi Joel,

AFAIR you have default timer in sems which will drop the call after 6h.

sbc:
    calltimer_enable: 'yes'
    calltimer_max: 21600

On the other hand, i was playing with another approach. From dialog module
you can use timeout_avp for the same effect.

# kamailio.cfg
modparam("dialog","timeout_avp", "$avp(s:timeout)") ### you can specify
this avp in proxy.cfg or put some value here

# proxy.cfg
# in order to send bye to specific dialog put this line before dlg_manage
$dlg_ctx(timeout_bye) = 1;

 # set dialog for calls from subscriber
                        #$dlg_ctx(timeout_bye) = 1;
                        dlg_manage();
                        set_dlg_profile("total");
                        xlog("L_INFO", "Dialog set total - [% logreq
-%]\n");
                        set_dlg_profile("user","$avp(s:caller_uuid)");
                        set_dlg_profile("userout","$avp(s:caller_uuid)");

set_dlg_profile("account","$avp(s:caller_account_id)");

set_dlg_profile("accountout","$avp(s:caller_account_id)");


## for processing BYE from proxy
event_route[tm:local-request]
{
        if (is_method("BYE"))
        {
                xlog("L_INFO", "Event route processing dialog BYEs - [%
logreq -%]\n");
                acc_db_request("200 Dlg","acc");
                exit;
        }
}

Regards,
Ivan


On Wed, Jan 8, 2014 at 5:44 PM, Joel Smith | VOZELIA <joel at vozelia.com>wrote:

> Hi everybody,
>
> Is it possible to set a global call duration limit?
>
> Thanks in advanced.
>
> Best regards,
> Joel.
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20140108/eaf0c226/attachment-0001.html>


More information about the Spce-user mailing list