как написано тут
| Цитата: |
| i: Вызывается, при попытке вызова неизвестного екстеншена. |
уменя есть
| Код: |
| [phones] ; Calls from own VoIP clients ----------------------------------------- exten => i,1,Playback(incorect-number) same => n,HangUp() |
пытаюсь звонить на несуществующий номер и получаю
| Цитата: |
| [Dec 28 16:12:27] NOTICE[19850]: chan_sip.c:23988 handle_request_invite: Call from '1103' (192.168.2.194:5060) to extension '1155' rejected because extension not found in context 'phones'. |
почему не срабатывает екстенш?
Последний раз редактировалось: Nick_F (Сб Дек 28, 2013 20:42)
i - используется для голосового меню IVR - когда выбор не правильный - у вас есть меню выбора ?
Не встречал разделения их на IVR и не IVR. тот же h срабатывает при завершении любого разговора.
А как тогда ловить звонки на неправильные екстеншены?
| Код: |
| exten => _.,1,Playback(incorect-number) |
Пример смотрите в книге по Астериску.
_________________
Gentoo Linux || Asterisk 11.2-cert3
Решения телефонии на базе Asterisk || http://it-need.ru
| Цитата: |
| If the number you have dialed is invalid in the current context, then what action Asterisk takes depends on which of two situations it is in: 1. If this is a new, incoming connection, then Asterisk will return an appropriate "invalid number" signal to the caller. How this signal is sent depends on the channel type; if it is a Zap channel, you'd hear a congestion tone. For VOIP channels, Asterisk would send an appropriate control signal to the caller, and their telephone equipment will indicate the invalid number in whatever way they do it: they might display the message "invalid number" on a screen, or make some particular sound. Note that in this situtation — a new, incoming connection — no Dialplan commands have yet been executed. You have no scripting control over the behavior of Asterisk in how it handles an invalid number; Asterisk does not jump to the i extension in this situation. 2. If, on the other hand, this is an established connection — Asterisk has jumped to an extension, started executing commands (e.g. playing a recorded message giving the user a set of IVR menu options), and has "run out of" commands, and so is waiting for the user to dial something (e.g. to select a menu option), then dialing an invalid number will cause Asterisk to jump to the i extension, if it exists. If the i extension is not defined in that context, Asterisk will hang up. |
т.е. новые соединения на неправильный номер средствами диалплана не обработать.
| Nick_F @ Сб Дек 28, 2013 23:42 писал(а): |
| т.е. новые соединения на неправильный номер средствами диалплана не обработать. |
Что за глупости.
_________________
Gentoo Linux || Asterisk 11.2-cert3
Решения телефонии на базе Asterisk || http://it-need.ru
у меня 2 контекста, pbx и pbx_real
из pbx _. идет goto в pbx_real и i отрабатывает как нужно.
| adt2k @ Вт Дек 31, 2013 10:18 писал(а): |
| и какое решение? |
Решено, всмысле что я понял почему не работал екстент 'i' так как я думал.
| Цитата: |
| 1. If this is a new, incoming connection, then Asterisk will return an appropriate "invalid number" signal to the caller. How this signal is sent depends on the channel type; if it is a Zap channel, you'd hear a congestion tone. For VOIP channels, Asterisk would send an appropriate control signal to the caller, and their telephone equipment will indicate the invalid number in whatever way they do it: they might display the message "invalid number" on a screen, or make some particular sound. Note that in this situtation — a new, incoming connection — no Dialplan commands have yet been executed. You have no scripting control over the behavior of Asterisk in how it handles an invalid number; Asterisk does not jump to the i extension in this situation. |
я же предложил решение. оно как раз обходит то, что написано.
я в смысле, что понял почему у меня не работало.
Спасибо.