[Freeswitch-users] Limiting call length

Avi Marcus avi at avimarcus.net
Wed Jul 4 05:37:56 UTC 2018


I'm not sure how it works with originate -- but there's two versions as per the
docs
<https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools:+sched+hangup>.
There's sched_hangup and calling it as an api. If you call it as an API,
then you need to put the ${uuid} in, which I don't know if that's available
in an originate unless you specify it.

What do the logs say when the time expires?

I have an api_on_answer in my bridge string, to only cut off the b leg:

<action application="export"
data="nolocal:api_on_answer=sched_transfer +999 ${uuid}
cutoff_incall"/>


-Avi Marcus
BestFone


On Wed, Jul 4, 2018 at 1:12 AM Rick Jarvis <rick at magicmail.mooo.com> wrote:

> Hey all
>
> Looking for a way to limit all calls to a maximum of 10 minutes, when
> originating a call using the event socket.
>
> I’ve tried using sched_hangup like this:
>
> originate
> {origination_caller_id_number=01234567890,execute_on_answer=sched_hangup
> +600 alloted_timeout}sofia/. . . .
>
> But no dice…
>
> R
> _________________________________________________________________________
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180704/24b06bab/attachment.html>


More information about the FreeSWITCH-users mailing list