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