tridcatij
@tridcatij

Как ограничить время разговора в Freeswitch при команде originate?

Добрый день! Подскажите как ограничить время разговора при вызове команды originate, скажем, 10 минутами?
Пробовал добавлять call_timeout, timeout_sec, originate_timeout - похоже, всё не то.

originate {origination_caller_id_number=1000}sofia/default/1000@123.123.123.123 &bridge({origination_caller_id_number=2000}sofia/default/2000@321.321.321.321)
  • Вопрос задан
  • 973 просмотра
Пригласить эксперта
Ответы на вопрос 2
tridcatij
@tridcatij Автор вопроса
Возможно кому-нибудь пригодится.
originate {ignore_early_media=true,hangup_after_bridge=true,execute_on_answer='sched_hangup +30'}sofia/default/100@123.123.123.123 &bridge(sofia/default/2000@456.456.456.456)
Ответ написан
Комментировать
@Wexter
https://wiki.freeswitch.org/wiki/Mod_commands#originate
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 see: 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, playback (remove mod_native_file), and many others.
Note: Use single quotes to pass arguments with spaces, e.g. '&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.
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы