T
T
tridcatij2017-12-21 14:38:43
FreeSWITCH
tridcatij, 2017-12-21 14:38:43

How to limit talk time in Freeswitch with originate command?

Good afternoon! Tell me how to limit the conversation time when calling the originate command, say, 10 minutes?
I tried to add call_timeout, timeout_sec, originate_timeout - it seems that everything is not right.

originate {origination_caller_id_number=1000}sofia/default/[email protected] &bridge({origination_caller_id_number=2000}sofia/default/[email protected])

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
tridcatij, 2018-07-06
@tridcatij

Perhaps someone will come in handy.

originate {ignore_early_media=true,hangup_after_bridge=true,execute_on_answer='sched_hangup +30'}sofia/default/[email protected] &bridge(sofia/default/[email protected])

W
Wexter, 2017-12-21
@Wexter

https://wiki.freeswitch.org/wiki/Mod_commands#originate

originate
a new call.
Usage: originate <call_url> <exten>|&<application_name>(<app_args>)
[dialplan] [context] [cid_name] [cid_num] [timeout_sec]
Parameters:
<call_url> URL you are calling.
For more info on sofia SIP URL syntax: FreeSwitch Endpoint Sofia
Destination, one of:
<exten> Destination number to enter dialplan with
&<application_name>(<app_args>)
"&" indicates what follows is an application name, not an exten
(<app_args>) is optional (not all applications require parameters, eg park)
Here is a list of valid application names that can be used here:
park, bridge, javascript/lua/perl,
Note: Use single quotes to pass arguments with spaces, eg '&lua(test.lua arg1 arg2)'
Note: There is no space between & and the application name
<dialplan> Defaults to 'XML' if not specified.
<context> Defaults to 'default' if not specified.
<cid_name> CallerID name.
<cid_num> CallerID number.
<timeout_sec> Timeout in seconds.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question