Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

Настроить TRANSFER_CONTEXT

0

Приветствую! Может кто знает, в чем причина?

Хочу переопределить контекст обработки переводов звонка, для своей обработки. Прописываю в 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. =-
удалить закрыть спам изменить тег редактировать

спросил 2012-08-23 18:18:21 +0400

SIlverJoe Gravatar SIlverJoe
26 3 1 8

обновил 2012-08-23 18:54:33 +0400

1 Ответ

1
  • dialplan show transferContext

  • зачем DYNAMIC_FEATURES=atxfer ?

  • покажите лог звонка начиная с команды Dial

ссылка удалить спам редактировать

ответил 2012-08-23 18:28:02 +0400

komrad123 Gravatar komrad123
3810 5 3 44

Comments

dialplan show transferContext добавил в основной вопрос

SIlverJoe ( 2012-08-23 18:59:14 +0400 )редактировать
1
        's' =&gt;            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]

и как тут должно заматчится то что вы вводите ??? s на _X. поменяйте если доку читать лень.

komrad123 ( 2012-08-23 19:10:15 +0400 )редактировать

Одна голова хорошо, две лучше :) Спасибо заработался, и эту s влепил.

Доку читать не лень ;)

SIlverJoe ( 2012-08-23 19:42:10 +0400 )редактировать

Ваш ответ

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[скрыть предварительный просмотр]

Закладки и информация

Добавить закладку

подписаться на rss ленту новостей

Статистика

Задан: 2012-08-23 18:18:21 +0400

Просмотрен: 4,432 раз

Обновлен: Aug 23 '12

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.