Приветствую!
Может кто знает, в чем причина?
Хочу переопределить контекст обработки переводов звонка, для своей обработки.
Прописываю в extensions.conf :
exten => s,n,Set(__TRANSFER_CONTEXT=transferContext)
exten => s,n,Set(__DYNAMIC_FEATURES=atxfer)
exten => s,n,NoOp(CONTEXT=${CONTEXT},TRANSFER_CONTEXT=${TRANSFER_CONTEXT},FEATURES=${DYNAMIC_FEATURES}
exten => s,n,Dial(SIP/${TRUNK}/${ARG2}${ARG1:0},${OUTRINGTIME},${DIALOPTIONS})
Кстати, пробовал и
exten => s,n,Set(TRANSFER_CONTEXT=transferContext)
В части globals переменные:
[globals]
DIALOPTIONS = mtT
QUEUEOPTIONS= tTHh
RINGTIME = 30
OUTRINGTIME = 120
TRUNK=mangosip
TRANSFER_CONTEXT=transferContext
Когда оператор пробует сделать перевод, получаю следующее:
[2012-08-16 18:12:31] DTMF[13124]: channel.c:2980 __ast_read: DTMF begin '#' received on SIP/109-00000005
[2012-08-16 18:12:31] DTMF[13124]: channel.c:2990 __ast_read: DTMF begin passthrough '#' on SIP/109-00000005
[2012-08-16 18:12:31] DTMF[13124]: channel.c:2908 __ast_read: DTMF end '#' received on SIP/109-00000005, duration 80 ms
[2012-08-16 18:12:31] DTMF[13124]: channel.c:2948 __ast_read: DTMF end accepted with begin '#' on SIP/109-00000005
[2012-08-16 18:12:31] DTMF[13124]: channel.c:2964 __ast_read: DTMF end passthrough '#' on SIP/109-00000005
-- Started music on hold, class 'default', on SIP/mangosip-00000006
-- <SIP/109-00000005> Playing 'pbx-transfer.alaw' (language 'ru')
[2012-08-16 18:12:32] DTMF[13124]: channel.c:2980 __ast_read: DTMF begin '7' received on SIP/109-00000005
[2012-08-16 18:12:32] DTMF[13124]: channel.c:2984 __ast_read: DTMF begin ignored '7' on SIP/109-00000005
[2012-08-16 18:12:32] DTMF[13124]: channel.c:2908 __ast_read: DTMF end '7' received on SIP/109-00000005, duration 100 ms
[2012-08-16 18:12:32] DTMF[13124]: channel.c:2964 __ast_read: DTMF end passthrough '7' on SIP/109-00000005
!!! [2012-08-16 18:12:32] WARNING[13124]: features.c:1439 builtin_atxfer: Did not read data.
-- Stopped music on hold on SIP/mangosip-00000006
-- <SIP/109-00000005> Playing 'beeperr.gsm' (language 'ru')
[2012-08-16 18:12:32] DTMF[13124]: channel.c:2980 __ast_read: DTMF begin '9' received on SIP/109-00000005
[2012-08-16 18:12:32] DTMF[13124]: channel.c:2984 __ast_read: DTMF begin ignored '9' on SIP/109-00000005
[2012-08-16 18:12:32] DTMF[13124]: channel.c:2908 __ast_read: DTMF end '9' received on SIP/109-00000005, duration 100 ms
[2012-08-16 18:12:32] DTMF[13124]: channel.c:2934 __ast_read: DTMF begin emulation of '9' with duration 100 queued on SIP/109-00000005
[2012-08-16 18:12:32] DTMF[13124]: channel.c:3057 __ast_read: DTMF end emulation of '9' queued on SIP/109-00000005
[2012-08-16 18:12:33] DTMF[13124]: channel.c:2980 __ast_read: DTMF begin '6' received on SIP/109-00000005
[2012-08-16 18:12:33] DTMF[13124]: channel.c:2990 __ast_read: DTMF begin passthrough '6' on SIP/109-00000005
[2012-08-16 18:12:33] DTMF[13124]: channel.c:2908 __ast_read: DTMF end '6' received on SIP/109-00000005, duration 80 ms
[2012-08-16 18:12:33] DTMF[13124]: channel.c:2948 __ast_read: DTMF end accepted with begin '6' on SIP/109-00000005
[2012-08-16 18:12:33] DTMF[13124]: channel.c:2964 __ast_read: DTMF end passthrough '6' on SIP/109-00000005
[2012-08-16 18:12:33] DTMF[13124]: channel.c:2980 __ast_read: DTMF begin '3' received on SIP/109-00000005
[2012-08-16 18:12:33] DTMF[13124]: channel.c:2990 __ast_read: DTMF begin passthrough '3' on SIP/109-00000005
[2012-08-16 18:12:33] DTMF[13124]: channel.c:2908 __ast_read: DTMF end '3' received on SIP/109-00000005, duration 100 ms
[2012-08-16 18:12:33] DTMF[13124]: channel.c:2948 __ast_read: DTMF end accepted with begin '3' on SIP/109-00000005
[2012-08-16 18:12:34] DTMF[13124]: channel.c:2980 __ast_read: DTMF begin '7' received on SIP/109-00000005
[2012-08-16 18:12:34] DTMF[13124]: channel.c:2990 __ast_read: DTMF begin passthrough '7' on SIP/109-00000005
[2012-08-16 18:12:34] DTMF[13124]: channel.c:2908 __ast_read: DTMF end '7' received on SIP/109-00000005, duration 80 ms
[2012-08-16 18:12:34] DTMF[13124]: channel.c:2948 __ast_read: DTMF end accepted with begin '7' on SIP/109-00000005
[2012-08-16 18:12:34] DTMF[13124]: channel.c:2964 __ast_read: DTMF end passthrough '7' on SIP/109-00000005
[2012-08-16 18:12:34] DTMF[13089]: channel.c:2980 __ast_read: DTMF begin '7' received on SIP/109-00000005
[2012-08-16 18:12:34] DTMF[13089]: channel.c:2984 __ast_read: DTMF begin ignored '7' on SIP/109-00000005
[2012-08-16 18:12:34] DTMF[13089]: channel.c:2908 __ast_read: DTMF end '7' received on SIP/109-00000005, duration 80 ms
[2012-08-16 18:12:34] DTMF[13089]: channel.c:2964 __ast_read: DTMF end passthrough '7' on SIP/109-00000005
[2012-08-16 18:12:34] DTMF[13124]: channel.c:2908 __ast_read: DTMF end '7' received on SIP/109-00000005, duration 80 ms
[2012-08-16 18:12:34] DTMF[13124]: channel.c:2934 __ast_read: DTMF begin emulation of '7' with duration 80 queued on SIP/109-00000005
[2012-08-16 18:12:34] DTMF[13124]: channel.c:3057 __ast_read: DTMF end emulation of '7' queued on SIP/109-00000005
[2012-08-16 18:12:34] DTMF[13089]: channel.c:2980 __ast_read: DTMF begin '9' received on SIP/109-00000005
[2012-08-16 18:12:34] DTMF[13089]: channel.c:2984 __ast_read: DTMF begin ignored '9' on SIP/109-00000005
[2012-08-16 18:12:34] DTMF[13089]: channel.c:2908 __ast_read: DTMF end '9' received on SIP/109-00000005, duration 100 ms
[2012-08-16 18:12:34] DTMF[13089]: channel.c:2964 __ast_read: DTMF end passthrough '9' on SIP/109-00000005
[2012-08-16 18:12:34] DTMF[13124]: channel.c:2908 __ast_read: DTMF end '9' received on SIP/109-00000005, duration 100 ms
[2012-08-16 18:12:34] DTMF[13124]: channel.c:2934 __ast_read: DTMF begin emulation of '9' with duration 100 queued on SIP/109-00000005
[2012-08-16 18:12:35] DTMF[13124]: channel.c:2980 __ast_read: DTMF begin '1' received on SIP/109-00000005
[2012-08-16 18:12:35] DTMF[13124]: channel.c:2984 __ast_read: DTMF begin ignored '1' on SIP/109-00000005
[2012-08-16 18:12:35] DTMF[13124]: channel.c:3013 __ast_read: DTMF end emulation of '9' queued on SIP/109-00000005
[2012-08-16 18:12:35] DTMF[13089]: channel.c:2908 __ast_read: DTMF end '1' received on SIP/109-00000005, duration 140 ms
[2012-08-16 18:12:35] DTMF[13089]: channel.c:2964 __ast_read: DTMF end passthrough '1' on SIP/109-00000005
[2012-08-16 18:12:35] DTMF[13124]: channel.c:2908 __ast_read: DTMF end '1' received on SIP/109-00000005, duration 140 ms
[2012-08-16 18:12:35] DTMF[13124]: channel.c:2934 __ast_read: DTMF begin emulation of '1' with duration 140 queued on SIP/109-00000005
[2012-08-16 18:12:35] DTMF[13124]: channel.c:3057 __ast_read: DTMF end emulation of '1' queued on SIP/109-00000005
[2012-08-16 18:12:35] DTMF[13089]: channel.c:2980 __ast_read: DTMF begin '7' received on SIP/109-00000005
[2012-08-16 18:12:35] DTMF[13089]: channel.c:2984 __ast_read: DTMF begin ignored '7' on SIP/109-00000005
[2012-08-16 18:12:35] DTMF[13089]: channel.c:2908 __ast_read: DTMF end '7' received on SIP/109-00000005, duration 80 ms
[2012-08-16 18:12:35] DTMF[13089]: channel.c:2964 __ast_read: DTMF end passthrough '7' on SIP/109-00000005
[2012-08-16 18:12:35] DTMF[13124]: channel.c:2908 __ast_read: DTMF end '7' received on SIP/109-00000005, duration 80 ms
[2012-08-16 18:12:35] DTMF[13124]: channel.c:2934 __ast_read: DTMF begin emulation of '7' with duration 80 queued on SIP/109-00000005
[2012-08-16 18:12:35] DTMF[13124]: channel.c:3057 __ast_read: DTMF end emulation of '7' queued on SIP/109-00000005
[2012-08-16 18:12:35] DTMF[13089]: channel.c:2980 __ast_read: DTMF begin '3' received on SIP/109-00000005
[2012-08-16 18:12:35] DTMF[13089]: channel.c:2984 __ast_read: DTMF begin ignored '3' on SIP/109-00000005
[2012-08-16 18:12:35] DTMF[13089]: channel.c:2908 __ast_read: DTMF end '3' received on SIP/109-00000005, duration 100 ms
[2012-08-16 18:12:35] DTMF[13089]: channel.c:2964 __ast_read: DTMF end passthrough '3' on SIP/109-00000005
[2012-08-16 18:12:35] DTMF[13124]: channel.c:2908 __ast_read: DTMF end '3' received on SIP/109-00000005, duration 100 ms
[2012-08-16 18:12:35] DTMF[13124]: channel.c:2934 __ast_read: DTMF begin emulation of '3' with duration 100 queued on SIP/109-00000005
[2012-08-16 18:12:36] DTMF[13124]: channel.c:3057 __ast_read: DTMF end emulation of '3' queued on SIP/109-00000005
[2012-08-16 18:12:36] DTMF[13089]: channel.c:2980 __ast_read: DTMF begin '5' received on SIP/109-00000005
[2012-08-16 18:12:36] DTMF[13089]: channel.c:2984 __ast_read: DTMF begin ignored '5' on SIP/109-00000005
[2012-08-16 18:12:36] DTMF[13089]: channel.c:2908 __ast_read: DTMF end '5' received on SIP/109-00000005, duration 80 ms
[2012-08-16 18:12:36] DTMF[13089]: channel.c:2964 __ast_read: DTMF end passthrough '5' on SIP/109-00000005
[2012-08-16 18:12:36] DTMF[13124]: channel.c:2908 __ast_read: DTMF end '5' received on SIP/109-00000005, duration 80 ms
[2012-08-16 18:12:36] DTMF[13124]: channel.c:2934 __ast_read: DTMF begin emulation of '5' with duration 80 queued on SIP/109-00000005
[2012-08-16 18:12:36] DTMF[13124]: channel.c:3057 __ast_read: DTMF end emulation of '5' queued on SIP/109-00000005
Если выше приведенные строки к extensions.conf закоментировать, сделать reload, то при переводе:
[2012-08-16 18:16:33] DTMF[13159]: channel.c:2980 __ast_read: DTMF begin '#' received on SIP/109-0000000b
[2012-08-16 18:16:33] DTMF[13159]: channel.c:2990 __ast_read: DTMF begin passthrough '#' on SIP/109-0000000b
[2012-08-16 18:16:33] DTMF[13159]: channel.c:2908 __ast_read: DTMF end '#' received on SIP/109-0000000b, duration 80 ms
[2012-08-16 18:16:33] DTMF[13159]: channel.c:2948 __ast_read: DTMF end accepted with begin '#' on SIP/109-0000000b
[2012-08-16 18:16:33] DTMF[13159]: channel.c:2964 __ast_read: DTMF end passthrough '#' on SIP/109-0000000b
-- Started music on hold, class 'default', on SIP/mangosip-0000000c
-- <SIP/109-0000000b> Playing 'pbx-transfer.alaw' (language 'ru')
[2012-08-16 18:16:34] DTMF[13159]: channel.c:2980 __ast_read: DTMF begin '7' received on SIP/109-0000000b
[2012-08-16 18:16:34] DTMF[13159]: channel.c:2984 __ast_read: DTMF begin ignored '7' on SIP/109-0000000b
[2012-08-16 18:16:34] DTMF[13159]: channel.c:2908 __ast_read: DTMF end '7' received on SIP/109-0000000b, duration 100 ms
[2012-08-16 18:16:34] DTMF[13159]: channel.c:2964 __ast_read: DTMF end passthrough '7' on SIP/109-0000000b
[2012-08-16 18:16:34] DTMF[13159]: channel.c:2980 __ast_read: DTMF begin '9' received on SIP/109-0000000b
[2012-08-16 18:16:34] DTMF[13159]: channel.c:2984 __ast_read: DTMF begin ignored '9' on SIP/109-0000000b
[2012-08-16 18:16:34] DTMF[13159]: channel.c:2908 __ast_read: DTMF end '9' received on SIP/109-0000000b, duration 100 ms
[2012-08-16 18:16:35] DTMF[13159]: channel.c:2980 __ast_read: DTMF begin '6' received on SIP/109-0000000b
[2012-08-16 18:16:35] DTMF[13159]: channel.c:2984 __ast_read: DTMF begin ignored '6' on SIP/109-0000000b
[2012-08-16 18:16:35] DTMF[13159]: channel.c:2908 __ast_read: DTMF end '6' received on SIP/109-0000000b, duration 80 ms
[2012-08-16 18:16:35] DTMF[13159]: channel.c:2964 __ast_read: DTMF end passthrough '6' on SIP/109-0000000b
[2012-08-16 18:16:35] DTMF[13159]: channel.c:2980 __ast_read: DTMF begin '3' received on SIP/109-0000000b
[2012-08-16 18:16:35] DTMF[13159]: channel.c:2984 __ast_read: DTMF begin ignored '3' on SIP/109-0000000b
[2012-08-16 18:16:35] DTMF[13159]: channel.c:2908 __ast_read: DTMF end '3' received on SIP/109-0000000b, duration 100 ms
[2012-08-16 18:16:35] DTMF[13159]: channel.c:2964 __ast_read: DTMF end passthrough '3' on SIP/109-0000000b
[2012-08-16 18:16:36] DTMF[13159]: channel.c:2980 __ast_read: DTMF begin '7' received on SIP/109-0000000b
[2012-08-16 18:16:36] DTMF[13159]: channel.c:2984 __ast_read: DTMF begin ignored '7' on SIP/109-0000000b
[2012-08-16 18:16:36] DTMF[13159]: channel.c:2908 __ast_read: DTMF end '7' received on SIP/109-0000000b, duration 100 ms
[2012-08-16 18:16:36] DTMF[13159]: channel.c:2964 __ast_read: DTMF end passthrough '7' on SIP/109-0000000b
[2012-08-16 18:16:36] DTMF[13159]: channel.c:2980 __ast_read: DTMF begin '7' received on SIP/109-0000000b
[2012-08-16 18:16:36] DTMF[13159]: channel.c:2984 __ast_read: DTMF begin ignored '7' on SIP/109-0000000b
[2012-08-16 18:16:36] DTMF[13159]: channel.c:2908 __ast_read: DTMF end '7' received on SIP/109-0000000b, duration 80 ms
[2012-08-16 18:16:36] DTMF[13159]: channel.c:2964 __ast_read: DTMF end passthrough '7' on SIP/109-0000000b
[2012-08-16 18:16:37] DTMF[13159]: channel.c:2980 __ast_read: DTMF begin '9' received on SIP/109-0000000b
[2012-08-16 18:16:37] DTMF[13159]: channel.c:2984 __ast_read: DTMF begin ignored '9' on SIP/109-0000000b
[2012-08-16 18:16:37] DTMF[13159]: channel.c:2908 __ast_read: DTMF end '9' received on SIP/109-0000000b, duration 80 ms
[2012-08-16 18:16:37] DTMF[13159]: channel.c:2964 __ast_read: DTMF end passthrough '9' on SIP/109-0000000b
[2012-08-16 18:16:37] DTMF[13159]: channel.c:2980 __ast_read: DTMF begin '1' received on SIP/109-0000000b
[2012-08-16 18:16:37] DTMF[13159]: channel.c:2984 __ast_read: DTMF begin ignored '1' on SIP/109-0000000b
[2012-08-16 18:16:37] DTMF[13159]: channel.c:2908 __ast_read: DTMF end '1' received on SIP/109-0000000b, duration 140 ms
[2012-08-16 18:16:37] DTMF[13159]: channel.c:2964 __ast_read: DTMF end passthrough '1' on SIP/109-0000000b
[2012-08-16 18:16:37] DTMF[13159]: channel.c:2980 __ast_read: DTMF begin '7' received on SIP/109-0000000b
[2012-08-16 18:16:37] DTMF[13159]: channel.c:2984 __ast_read: DTMF begin ignored '7' on SIP/109-0000000b
[2012-08-16 18:16:38] DTMF[13159]: channel.c:2908 __ast_read: DTMF end '7' received on SIP/109-0000000b, duration 80 ms
[2012-08-16 18:16:38] DTMF[13159]: channel.c:2964 __ast_read: DTMF end passthrough '7' on SIP/109-0000000b
[2012-08-16 18:16:38] DTMF[13159]: channel.c:2980 __ast_read: DTMF begin '3' received on SIP/109-0000000b
[2012-08-16 18:16:38] DTMF[13159]: channel.c:2984 __ast_read: DTMF begin ignored '3' on SIP/109-0000000b
[2012-08-16 18:16:38] DTMF[13159]: channel.c:2908 __ast_read: DTMF end '3' received on SIP/109-0000000b, duration 120 ms
[2012-08-16 18:16:38] DTMF[13159]: channel.c:2964 __ast_read: DTMF end passthrough '3' on SIP/109-0000000b
[2012-08-16 18:16:38] DTMF[13159]: channel.c:2980 __ast_read: DTMF begin '5' received on SIP/109-0000000b
[2012-08-16 18:16:38] DTMF[13159]: channel.c:2984 __ast_read: DTMF begin ignored '5' on SIP/109-0000000b
[2012-08-16 18:16:38] DTMF[13159]: channel.c:2908 __ast_read: DTMF end '5' received on SIP/109-0000000b, duration 80 ms
[2012-08-16 18:16:38] DTMF[13159]: channel.c:2964 __ast_read: DTMF end passthrough '5' on SIP/109-0000000b
-- Executing [79637791735@mydefault:1] Macro("Local/79637791735@mydefault-eee5;2", "dialout,79637791735") in new stack
Перевод происходит успешно.
Главное отличие строка в выхлопе:
[2012-08-16 18:12:32] WARNING[13124]: features.c:1439 builtin_atxfer: Did not read data.
Которой нет, если конекст TRANSFER_CONTEXT не определять.
Google ничего внятного не сказал, все файлы звуковые на сервере присутствуют.
ЧЯДНТ?
На всякий случай:
*CLI> features show
Builtin Feature Default Current
--------------- ------- -------
Pickup *8 *8
Blind Transfer # *2
Attended Transfer #
One Touch Monitor
Disconnect Call * *
Park Call
One Touch MixMonitor
Dynamic Feature Default Current
--------------- ------- -------
(none)
Call parking (Parking lot: default)
------------
Parking extension : 700
Parking context : parkedcalls
Parked call extensions: 701-750
*CLI> dialplan show transferContext
[ Context 'transferContext' created by 'pbx_config' ]
's' => 1. Log(NOTICE, ${CALLERID(all)} enter to TRANSFER_CONTEXT) [pbx_config]
2. Log(NOTICE, ${CALLERID(all)} dial to ${EXTEN}) [pbx_config]
3. Goto(mydefault,${EXTEN},1) [pbx_config]
-= 1 extension (3 priorities) in 1 context. =-