VIDEOCHAT  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

Мистика с выходом в город.

Проблемы Asterisk без вэб-оболочек и их решения

Модераторы: april22, Zavr2008

Ответить
OBW
Сообщения: 8
Зарегистрирован: 08 апр 2013, 10:44

Мистика с выходом в город.

Сообщение OBW »

Есть телефон который находится в контексте "mtd-base":

Выход в город в нём описан следующим образом:

Код: Выделить всё

 _[09][2-7]XXXXX => {                       //Городские через Rostelecom
    Answer();
    &cidchange(${CALLERID(num)});   //Меняем CallerID на 4942628300 если простой телефон, или на городской, соответствующий привязанному
    &wrapdial(DAHDI/i2/${EXTEN:1},${GLOBAL(INTDIALTIME)},0,${EXTEN});
    &dialstatspeak(${DIALSTATUS});
    Hangup();
 };
Если снимаем трубку и набираем 0333333, вызов проходит нормально.
Если снимаем трубку и набираем 9333333, набор прерывается на 5-й введённой цифре 93333 с ошибкой неверно набран номер.
Причем набрать номер через 9-ку на телефоне при опущенной трубке и нажать вызов, вызов проходит нормально.

Пересмотрел контекст - нету правил, пересекающихся с _9xxxxxx.
Что это может быть, с чего начать разбирательства?

Вот контексты, относящиеся к делу:

Код: Выделить всё

[ Context 'mtd-base' created by 'pbx_config' ]
  Include =>        'mtd-internal'                                [pbx_config]
  Include =>        'mtd-pbxinv'                                  [pbx_config]

[ Context 'mtd-internal' created by 'pbx_config' ]
  '*12*' =>         1. Answer()                                   [pbx_ael]
                    2. Wait(1)                                    [pbx_ael]
                    3. Playback(/var/lib/asterisk/sounds/en/this-is-yr-wakeup-call) [pbx_ael]
                    4. Wait(1)                                    [pbx_ael]
                    5. Hangup()                                   [pbx_ael]
  '*99*' =>         1. Answer()                                   [pbx_ael]
                    2. Hangup()                                   [pbx_ael]
  '100' =>          1. Answer()                                   [pbx_ael]
                    2. MSet(rep=$[4])                             [pbx_ael]
                    3. MSet(format=$[QdhAR])                      [pbx_ael]
                    4. MSet(musdur=$[10])                         [pbx_ael]
                    5. GotoIf($[${rep} > 0]?6:9)                  [pbx_ael]
                    6. Gosub(SayTime,~~s~~,1(${format},${musdur})) [pbx_ael]
                    7. MSet(rep=$[ ${rep} - 1])                   [pbx_ael]
                    8. Goto(5)                                    [pbx_ael]
                    9. NoOp(Finish while_mtd-internal_596)        [pbx_ael]
  '102' =>          1. Answer()                                   [pbx_ael]
                    2. Read(AGENT_NUMBER,agent-user)              [pbx_ael]
                    3. VMAuthenticate(${AGENT_NUMBER}@motordetal) [pbx_ael]
                    4. Set(queue-announce-success=1)              [pbx_ael]
                    5. Goto(queues-manip,I${AGENT_NUMBER},1)      [pbx_ael]
  '103' =>          1. Answer()                                   [pbx_ael]
                    2. Read(AGENT_NUMBER,agent-user)              [pbx_ael]
                    3. Set(queue-announce-success=1)              [pbx_ael]
                    4. Goto(queues-manip,O${AGENT_NUMBER},1)      [pbx_ael]
  '105' =>          1. Answer()                                   [pbx_ael]
                    2. MusicOnHold()                              [pbx_ael]
  '111' =>          1. Answer()                                   [pbx_ael]
                    2. Playback(demo-echotest)                    [pbx_ael]
                    3. Echo()                                     [pbx_ael]
                    4. Hangup()                                   [pbx_ael]
  '112' =>          1. Gosub(queue,~~s~~,1(${EXTEN}))             [pbx_ael]
  '115' =>          1. Gosub(wrapdial,~~s~~,1(IAX2/confbridge-out/${EXTEN},${GLOBAL(INTDIALTIME)},0,${EXTEN})) [pbx_ael]
                    2. Hangup()                                   [pbx_ael]
  '1189' =>         1. Answer()                                   [pbx_ael]
                    2. Voicemail(8741@motordetal,s)               [pbx_ael]
                    3. Hangup()                                   [pbx_ael]
  '3881' =>         1. VoiceMailMain(${CALLERID(num)}@motordetal,s) [pbx_ael]
  '555' =>          1. Answer()                                   [pbx_ael]
                    2. Goto(extension_process,s,begin)            [pbx_ael]
  '699' =>          1. GotoIf($[${user} = all]?2:4)               [pbx_ael]
                    2. MeetMeAdmin(${room},${cmd})                [pbx_ael]
                    3. Goto(5)                                    [pbx_ael]
                    4. MeetMeAdmin(${room},${cmd},${user})        [pbx_ael]
                    5. NoOp(Finish if_mtd-internal_599)           [pbx_ael]
  '8000' =>         1. Answer()                                   [pbx_ael]
                    2. Background(vm-enter-num-to-call)           [pbx_ael]
                    3. WaitExten(13)                              [pbx_ael]
                    4. Dial(local/${EXTEN}@mtd-long,${timeout},Ttm(ring)) [pbx_ael]
                    5. Hangup()                                   [pbx_ael]
  '8899' =>         1. Goto(ivr-support,s,begin)                  [pbx_ael]
  'sw_600_' =>      10. Goto(sw_600_.,10)                         [pbx_ael]
  'sw_600_1' =>     10. Gosub(wovoicemail,~~s~~,1(SIP,${~~EXTEN~~})) [pbx_ael]
                    11. Goto(_1XXX,5)                             [pbx_ael]
  'sw_600_3' =>     10. Gosub(voicemail,~~s~~,1(SIP,${~~EXTEN~~})) [pbx_ael]
                    11. Goto(_1XXX,5)                             [pbx_ael]
  'sw_600_7' =>     10. Gosub(queue,~~s~~,1(${~~EXTEN~~}))        [pbx_ael]
                    11. Goto(_1XXX,5)                             [pbx_ael]
  'sw_601_' =>      10. Goto(sw_601_.,10)                         [pbx_ael]
  'sw_601_1' =>     10. Gosub(wovoicemail,~~s~~,1(SIP,${~~EXTEN~~})) [pbx_ael]
                    11. Goto(_4XXX,5)                             [pbx_ael]
  'sw_601_3' =>     10. Gosub(voicemail,~~s~~,1(SIP,${~~EXTEN~~})) [pbx_ael]
                    11. Goto(_4XXX,5)                             [pbx_ael]
  'sw_601_7' =>     10. Gosub(queue,~~s~~,1(${~~EXTEN~~}))        [pbx_ael]
                    11. Goto(_4XXX,5)                             [pbx_ael]
  '_*11*XXXXXXXXXXXX' => 1. Answer()                                   [pbx_ael]
                    2. Set(year=${EXTEN:6:2})                     [pbx_ael]
                    3. Set(month=${EXTEN:8:2})                    [pbx_ael]
                    4. Set(day=${EXTEN:10:2})                     [pbx_ael]
                    5. Set(hours=${EXTEN:12:2})                   [pbx_ael]
                    6. Set(minutes=${EXTEN:14:2})                 [pbx_ael]
                    7. NoOp(Wake-up call scheduled for ${CALLERID(num)} at ${hours}:${minutes} on ${day}-${month}-${year}.) [pbx_ael]
                    8. System(echo -e "Channel: SIP/${CALLERID(num)}\\nContext: mtd-internal\\nExtension: *12*\\nMaxRetries: 3\\nRetryTime: 60\\nWaitTime: 30" > /tmp/${UNIQUEID}.call) [pbx_ael]
                    9. System(touch -t ${year}${month}${day}${hours}${minutes} /tmp/${UNIQUEID}.call) [pbx_ael]
                    10. System(mv /tmp/${UNIQUEID}.call /var/spool/asterisk/outgoing/) [pbx_ael]
                    11. Playback(/var/lib/asterisk/sounds/en/rqsted-wakeup-for) [pbx_ael]
                    12. SayNumber(${hours})                       [pbx_ael]
                    13. SayNumber(${minutes})                     [pbx_ael]
                    14. Hangup()                                  [pbx_ael]
  '_1XXX' =>        1. MSet(~~EXTEN~~=${EXTEN})                   [pbx_ael]
                    2. Gosub(cidchange_local,~~s~~,1(${CALLERID(num)})) [pbx_ael]
                    3. Gosub(CheckUser,~~s~~,1(${~~EXTEN~~}))     [pbx_ael]
                    4. Goto(sw_600_${usertype},10)                [pbx_ael]
                    5. NoOp(Finish switch_mtd-internal_600)       [pbx_ael]
  '_2[123][0123456789]X' => 1. Answer()                                   [pbx_ael]
                    2. Gosub(motor-abonents,~~s~~,1(${EXTEN},${GLOBAL(INTDIALTIME)})) [pbx_ael]
                    3. Gosub(dialstatspeak,~~s~~,1(${DIALSTATUS})) [pbx_ael]
                    4. Hangup()                                   [pbx_ael]
  '_30XX' =>        1. MYSQL(Connect connid localhost asterisk cnfhibqgjvjoybr asterisk) [pbx_ael]
                    2. MYSQL(Query resultid ${connid} SELECT shortnum,longnum,defaultpeer FROM fastdial WHERE shortnum='${EXTEN}') [pbx_ael]
                    3. MYSQL(Fetch fetchid ${resultid} shortnum longnum defaultpeer) [pbx_ael]
                    4. MYSQL(Clear,${resultid})                   [pbx_ael]
                    5. MYSQL(Disconnect ${connid})                [pbx_ael]
                    6. GotoIf($[${defaultpeer}=default]?7:10)     [pbx_ael]
                    7. Answer()                                   [pbx_ael]
                    8. Dial(local/0${longnum}@mtd-long,${timeout},Ttm(ring)) [pbx_ael]
                    9. Goto(17)                                   [pbx_ael]
                    10. MYSQL(Connect connid localhost asterisk cnfhibqgjvjoybr asterisk) [pbx_ael]
                    11. MYSQL(Query resultid ${connid} SELECT dev FROM peers WHERE peer='${defaultpeer}') [pbx_ael]
                    12. MYSQL(Fetch fetchid ${resultid} dev)      [pbx_ael]
                    13. MYSQL(Clear,${resultid})                  [pbx_ael]
                    14. MYSQL(Disconnect ${connid})               [pbx_ael]
                    15. Answer()                                  [pbx_ael]
                    16. Dial(${dev}/${defaultpeer}/${longnum},${timeout},Ttm(ring)) [pbx_ael]
                    17. NoOp(Finish if_mtd-internal_602)          [pbx_ael]
                    18. Hangup()                                  [pbx_ael]
  '_4XXX' =>        1. MSet(~~EXTEN~~=${EXTEN})                   [pbx_ael]
                    2. Gosub(cidchange_local,~~s~~,1(${CALLERID(num)})) [pbx_ael]
                    3. Gosub(CheckUser,~~s~~,1(${~~EXTEN~~}))     [pbx_ael]
                    4. Goto(sw_601_${usertype},10)                [pbx_ael]
                    5. NoOp(Finish switch_mtd-internal_601)       [pbx_ael]
  '_500X' =>        1. Answer()                                   [pbx_ael]
                    2. Dial(OOH323/IPOFFICE/${EXTEN},${timeout},Ttm(ring)) [pbx_ael]
                    3. Hangup()                                   [pbx_ael]
  '_69[0-8]' =>     1. Answer()                                   [pbx_ael]
                    2. Set(CHANNEL(musicclass)=silence)           [pbx_ael]
                    3. GotoIf($["${CALLERID(num)}"=""]?4:5)       [pbx_ael]
                    4. Set(CALLERID(num)=${CONNECTEDLINE(number)}) [pbx_ael]
                    5. NoOp(Finish if_mtd-internal_598)           [pbx_ael]
                    6. MeetMe(${EXTEN})                           [pbx_ael]
                    7. Hangup()                                   [pbx_ael]
  '_6[0-7]X' =>     1. Answer()                                   [pbx_ael]
                    2. Set(CHANNEL(musicclass)=silence)           [pbx_ael]
                    3. Set(CHANNEL(language)=ru)                  [pbx_ael]
                    4. GotoIf($["${CALLERID(num)}"=""]?5:6)       [pbx_ael]
                    5. Set(CALLERID(num)=${CONNECTEDLINE(number)}) [pbx_ael]
                    6. NoOp(Finish if_mtd-internal_597)           [pbx_ael]
                    7. MeetMe(${EXTEN})                           [pbx_ael]
                    8. Hangup()                                   [pbx_ael]
  '_799Z.' =>       1. Dial(SIP/globustel/${EXTEN:3},${timeout},Ttm(ring)) [pbx_ael]
  '_7[12345678]XX' => 1. Dial(SIP/fmtn/${EXTEN},${timeout},rTt)     [pbx_ael]
                    2. Return()                                   [pbx_ael]
  '_8182' =>        1. Answer()                                   [pbx_ael]
                    2. Dial(SIP/8308,${GLOBAL(INTDIALTIME)},rTt)  [pbx_ael]
  '_8381' =>        1. Answer()                                   [pbx_ael]
                    2. Dial(SIP/8644,${GLOBAL(INTDIALTIME)},rTt)  [pbx_ael]
  '_8400' =>        1. Answer()                                   [pbx_ael]
                    2. Dial(SIP/8630,${GLOBAL(INTDIALTIME)},rTt)  [pbx_ael]
  '_8519' =>        1. Answer()                                   [pbx_ael]
                    2. Dial(SIP/8893,${GLOBAL(INTDIALTIME)},rTt)  [pbx_ael]
  '_8811' =>        1. Answer()                                   [pbx_ael]
                    2. Dial(SIP/8630,${GLOBAL(INTDIALTIME)},rTt)  [pbx_ael]
  '_8[123456789]XX' => 1. Gosub(cidchange_local,~~s~~,1(${CALLERID(num)})) [pbx_ael]
                    2. AGI(migrated_numbers.php,${EXTEN})         [pbx_ael]
                    3. GotoIf($[${NUMMIGRATED} = 1]?4:10)         [pbx_ael]
                    4. GotoIf($[${FMTN} = 0]?5:7)                 [pbx_ael]
                    5. Gosub(wrapdial,~~s~~,1(SIP/${EXTEN},${GLOBAL(INTDIALTIME)},0,${EXTEN})) [pbx_ael]
                    6. Goto(8)                                    [pbx_ael]
                    7. Gosub(wrapdial,~~s~~,1(SIP/${EXTEN}&local/${EXTEN}@fmtn-outgoing,${GLOBAL(INTDIALTIME)},0,${EXTEN})) [pbx_ael]
                    8. NoOp(Finish if_if_mtd-internal_603_604)    [pbx_ael]
                    9. Goto(11)                                   [pbx_ael]
                    10. Dial(SIP/fmtn/097${EXTEN:1},${timeout},rTt) [pbx_ael]
                    11. NoOp(Finish if_mtd-internal_603)          [pbx_ael]
                    12. Gosub(dialstatspeak,~~s~~,1(${DIALSTATUS})) [pbx_ael]
                    13. Hangup()                                  [pbx_ael]
  '_sw_600_.' =>    10. Gosub(speakmessage,~~s~~,1(_NUMBERNOTEXIST)) [pbx_ael]
                    11. Goto(_1XXX,5)                             [pbx_ael]
  '_sw_601_.' =>    10. Gosub(speakmessage,~~s~~,1(_NUMBERNOTEXIST)) [pbx_ael]
                    11. Goto(_4XXX,5)                             [pbx_ael]
  '_[09][2-7]XXXXX' => 1. NoOp(Через 9 или 0)                [pbx_ael]
                    2. Answer()                                   [pbx_ael]
                    3. Gosub(cidchange,~~s~~,1(${CALLERID(num)})) [pbx_ael]
                    4. Gosub(wrapdial,~~s~~,1(DAHDI/i2/${EXTEN:1},${GLOBAL(INTDIALTIME)},0,${EXTEN})) [pbx_ael]
                    5. Gosub(dialstatspeak,~~s~~,1(${DIALSTATUS})) [pbx_ael]
                    6. Hangup()                                   [pbx_ael]
  '_[2-7]XXXXX' =>  1. Answer()                                   [pbx_ael]
                    2. Gosub(cidchange,~~s~~,1(${CALLERID(num)})) [pbx_ael]
                    3. Gosub(wrapdial,~~s~~,1(DAHDI/i2/${EXTEN},${GLOBAL(INTDIALTIME)},0,${EXTEN})) [pbx_ael]
                    4. Gosub(dialstatspeak,~~s~~,1(${DIALSTATUS})) [pbx_ael]
                    5. Hangup()                                   [pbx_ael]

[ Context 'mtd-pbxinv' created by 'pbx_config' ]
  '_X!' =>          1. Answer()                                   [pbx_ael]
                    2. Gosub(speakmessage,~~s~~,1(_NUMBERNOTEXIST)) [pbx_ael]
                    3. Hangup()                                   [pbx_ael]

[ Context 'default' created by 'pbx_config' ]

-= 504 extensions (1344 priorities) in 62 contexts. =-
Executing last minute cleanups


awsswa
Сообщения: 2390
Зарегистрирован: 09 июн 2012, 10:52
Откуда: Россия, Пермь skype: yarick_perm

Re: Мистика с выходом в город.

Сообщение awsswa »

Если снимаем трубку и набираем 9333333, набор прерывается на 5-й введённой цифре 93333 с ошибкой неверно набран номер.
а вообще это сообщение только на телефоне или приходит от сервера ?
можно ответ о не правильно набраном номере от сервера увидать ?
платный суппорт по мере возможностей
OBW
Сообщения: 8
Зарегистрирован: 08 апр 2013, 10:44

Re: Мистика с выходом в город.

Сообщение OBW »

Да, конечно. Вот лог (набирали 9628841):

Код: Выделить всё

[Dec 11 11:46:09] VERBOSE[32534] pbx.c:     -- Executing [96288@mtd-base:1] Answer("SIP/8592-00000d06", "") in new stack
[Dec 11 11:46:09] VERBOSE[32534] pbx.c:     -- Executing [96288@mtd-base:2] Gosub("SIP/8592-00000d06", "speakmessage,~~s~~,1(_NUMBERNOTEXIST)") in new stack
[Dec 11 11:46:09] VERBOSE[32534] pbx.c:     -- Executing [~~s~~@speakmessage:1] MSet("SIP/8592-00000d06", "LOCAL(msg)=_NUMBERNOTEXIST") in new stack
[Dec 11 11:46:09] VERBOSE[32534] pbx.c:     -- Executing [~~s~~@speakmessage:2] MSet("SIP/8592-00000d06", "LOCAL(~~EXTEN~~)=~~s~~") in new stack
[Dec 11 11:46:09] VERBOSE[32534] pbx.c:     -- Executing [~~s~~@speakmessage:3] MSet("SIP/8592-00000d06", "LOCAL(~~EXTEN~~)=~~s~~") in new stack
[Dec 11 11:46:09] VERBOSE[32534] pbx.c:     -- Executing [~~s~~@speakmessage:4] Goto("SIP/8592-00000d06", "sw_238__NUMBERNOTEXIST,10") in new stack
[Dec 11 11:46:09] VERBOSE[32534] pbx.c:     -- Goto (speakmessage,sw_238__NUMBERNOTEXIST,10)
[Dec 11 11:46:09] VERBOSE[32534] pbx.c:     -- Executing [sw_238__NUMBERNOTEXIST@speakmessage:10] Playback("SIP/8592-00000d06", "pbx-invalid") in new stack
[Dec 11 11:46:09] VERBOSE[32534] file.c:     -- <SIP/8592-00000d06> Playing 'pbx-invalid.alaw' (language 'ru')
[Dec 11 11:46:12] VERBOSE[32534] pbx.c:   == Spawn extension (speakmessage, sw_238__NUMBERNOTEXIST, 10) exited non-zero on 'SIP/8592-00000d06'
[Dec 11 11:46:12] VERBOSE[32534] pbx.c:     -- Executing [h@speakmessage:1] Goto("SIP/8592-00000d06", "9991") in new stack
[Dec 11 11:46:12] VERBOSE[32534] pbx.c:     -- Goto (speakmessage,h,9991)
[Dec 11 11:46:12] VERBOSE[32534] pbx.c:     -- Executing [h@speakmessage:9991] Set("SIP/8592-00000d06", "~~parentcxt~~=mtd-base") in new stack
[Dec 11 11:46:12] VERBOSE[32534] pbx.c:     -- Executing [h@speakmessage:9992] GotoIf("SIP/8592-00000d06", "0?9996") in new stack
[Dec 11 11:46:12] VERBOSE[32534] pbx.c:     -- Executing [h@speakmessage:9993] GotoIf("SIP/8592-00000d06", "0?9994:9996") in new stack
[Dec 11 11:46:12] VERBOSE[32534] pbx.c:     -- Goto (speakmessage,h,9996)
[Dec 11 11:46:12] VERBOSE[32534] pbx.c:     -- Executing [h@speakmessage:9996] NoOp("SIP/8592-00000d06", "") in new stack
awsswa
Сообщения: 2390
Зарегистрирован: 09 июн 2012, 10:52
Откуда: Россия, Пермь skype: yarick_perm

Re: Мистика с выходом в город.

Сообщение awsswa »

а это 9333333 локальный номер или должен уйти наружу ?
просто по логам он ищет локальный - не находит и ругается
платный суппорт по мере возможностей
OBW
Сообщения: 8
Зарегистрирован: 08 апр 2013, 10:44

Re: Мистика с выходом в город.

Сообщение OBW »

Номер 9333333 должен уйти наружу. Варианты с 9 и с 0 описаны одной конструкцией:

Код: Выделить всё

_[09][2-7]XXXXX => {                       //Городские через Rostelecom
    Answer();
    &cidchange(${CALLERID(num)});   //Меняем CallerID на 4942628300 если простой телефон, или на городской, соответствующий привязанному
    &wrapdial(DAHDI/i2/${EXTEN:1},${GLOBAL(INTDIALTIME)},0,${EXTEN});
    &dialstatspeak(${DIALSTATUS});
    Hangup();
};
0333333 - выходит
9333333 - не выходит.
И в описываемом контексте шаблонов , начинающихся с 9 больше нет.
Аватара пользователя
zzuz
Сообщения: 1658
Зарегистрирован: 21 сен 2010, 13:33
Контактная информация:

Re: Мистика с выходом в город.

Сообщение zzuz »

Проверять

Код: Выделить всё

CLI> dialplan show 9333333@mtd-base
Линия24 - Системы Массового Телефонного Обслуживания
OBW
Сообщения: 8
Зарегистрирован: 08 апр 2013, 10:44

Re: Мистика с выходом в город.

Сообщение OBW »

Код: Выделить всё

[asterisk@asterisk ~]# /usr/sbin/asterisk -rvvvvvx 'dialplan show 0333333@mtd-base'
Asterisk 10.4.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
  == Binding sipusers to mysql/general/sipusers
  == Binding sippeers to mysql/general/sipusers
  == Binding meetme to mysql/general/conference
[ Included context 'mtd-internal' created by 'pbx_config' ]
  '_[09][2-7]XXXXX' => 1. NoOp(Через 9 или 0)                [pbx_ael]
                    2. Answer()                                   [pbx_ael]
                    3. Gosub(cidchange,~~s~~,1(${CALLERID(num)})) [pbx_ael]
                    4. Gosub(wrapdial,~~s~~,1(DAHDI/i2/${EXTEN:1},${GLOBAL(INTDIALTIME)},0,${EXTEN})) [pbx_ael]
                    5. Gosub(dialstatspeak,~~s~~,1(${DIALSTATUS})) [pbx_ael]
                    6. Hangup()                                   [pbx_ael]

[ Included context 'mtd-pbxinv' created by 'pbx_config' ]
  '_X!' =>          1. Answer()                                   [pbx_ael]
                    2. Gosub(speakmessage,~~s~~,1(_NUMBERNOTEXIST)) [pbx_ael]
                    3. Hangup()                                   [pbx_ael]

-= 2 extensions (9 priorities) in 2 contexts. =-
Executing last minute cleanups
[asterisk@asterisk ~]# /usr/sbin/asterisk -rvvvvvx 'dialplan show 9333333@mtd-base'
Asterisk 10.4.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
  == Binding sipusers to mysql/general/sipusers
  == Binding sippeers to mysql/general/sipusers
  == Binding meetme to mysql/general/conference
[ Included context 'mtd-internal' created by 'pbx_config' ]
  '_[09][2-7]XXXXX' => 1. NoOp(Через 9 или 0)                [pbx_ael]
                    2. Answer()                                   [pbx_ael]
                    3. Gosub(cidchange,~~s~~,1(${CALLERID(num)})) [pbx_ael]
                    4. Gosub(wrapdial,~~s~~,1(DAHDI/i2/${EXTEN:1},${GLOBAL(INTDIALTIME)},0,${EXTEN})) [pbx_ael]
                    5. Gosub(dialstatspeak,~~s~~,1(${DIALSTATUS})) [pbx_ael]
                    6. Hangup()                                   [pbx_ael]

[ Included context 'mtd-pbxinv' created by 'pbx_config' ]
  '_X!' =>          1. Answer()                                   [pbx_ael]
                    2. Gosub(speakmessage,~~s~~,1(_NUMBERNOTEXIST)) [pbx_ael]
                    3. Hangup()                                   [pbx_ael]

-= 2 extensions (9 priorities) in 2 contexts. =-
Executing last minute cleanups

ded
Сообщения: 15626
Зарегистрирован: 26 авг 2010, 19:00

Re: Мистика с выходом в город.

Сообщение ded »

-_[09][2-7]XXXXX описан шаблон семизначного номера.
В логе же видна обработка пятизначного номера,
- Executing [96288@mtd-base:1]
Это значит сработал шаблон вида 9ХХХХ диалплана на ИП-телефоне, который отдал в Астериск пять цифр не дожилаясь шестой и седьмой цифры.
OBW
Сообщения: 8
Зарегистрирован: 08 апр 2013, 10:44

Re: Мистика с выходом в город.

Сообщение OBW »

Блин. То, что косяк может быть в телефоне я не подумал. Привык со времён аналоговых линий, что телефоны - тупые железяки.
Спасибо! Завтра проверю.
Ответить
© 2008 — 2025 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH