Всем добрый вечер!
Ситуация такая:
Есть Asterisk Now(Version 6.12.65-26)
Задача: после того, как оператор взял трубку, был вызов внешнего скрипта
пробывал что-то делать в файле extensions_custom.conf
ставил по разному
смог настроить только, что скрипт срабатывает при входящем вызове, но чтоб при поднятии трубки оператором нет (
Пробывал и через AGI и System и Macros(
Можете на примере показать, что нужно сделать?
в гугле обыскал все что мог(http://forums.asterisk.org/viewtopic.php?p=136759)
но толку никакого
хоть укажите где копать ((((
[from-internal-custom]
exten => 4240,1,System(/opt/call ${CALLERID(NAME)})
В данном случае при звонке на номер 4240 скрипту передается номер вызывающего, а скрипт уже производит необходимые манипуляции(Строка 2). Данные настройки вносятся в файл extention_custom.conf. В скобки модно написать какой скрипт нужно запускать и тогда будет Вам счастье.
http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial
U(x): Executes, via gosub, routine x on the called channel. This is similar to M above, but a gosub rather than a macro. The subroutine can set ${GOSUBRESULT}_ to the following: ABORT: Hang up both legs CONGESTION: Signal congestion to the caller BUSY: Signal busy to the caller CONTINUE: Hangup the called party but continue execution at the next priority in the dialplan for the caller GOTO: Transfer the execution to context^exten^pri
http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial
M(x): Executes the macro (x) upon connect of the call (i.e. when the called party answers). See also U. IMPORTANT - The CDR 'billsecs' field is set to zero if the callee answers the call, but hangs up whilst the macro is still running (if the callee answers and the macro finishes, 'billsecs' contains the correct value). The macro can set ${MACRO_RESULT} to the following:
ABORT: Hang up both legs
CONGESTION: Signal congestion to the caller
BUSY: Signal busy to the caller
CONTINUE: Hangup the called party but continue execution at the next priority in the dialplan for the caller
GOTO: Transfer the execution to context^exten^pri
Задан: Apr 8 '16
Просмотрен: 1,122 раз
Обновлен: Apr 21 '16
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.
Дайте рабочий пример?
я с Dial смотрел, но где мне его править? в extension.conf, там и так много уже не моих настроек
Koshak01 (Apr 8 '16)edit