Source DID App. Dest.
926XXXXXXX 13042 Dial 08495XXXXXXX#
Есть входящий звонок на транк 13042 по временному признаку все звонки переадресовываются на номер 08495XXXXXXX, но звонок почему то идет не по маршруту outsidegorod
а по маршруту outsidemobile
Стоит FreePBX Distr
Вот настройки маршрута
По приоритету все звонки на номера 08495XXXXXXX,08499XXXXXXX и 08800XXXXXXX должны уходить через маршрут outsidegorod а уходит через outsidemobile.
Помогите правильно настроить исходящию маршрутизацию, как правильно настроить чтобы все звонки на 08495XXXXXXX,08499XXXXXXX и 08800XXXXXXX уходили через маршрут outside_gorod (желательно это сделать через админку FreePBX) ?
Заранее благодарен.
asterisk -rx "dialplan show 084951625693@from-internal"
[ Included context 'outrt-1' created by 'pbx_config' ]
'_08495XXXXXXX' => 1. Macro(user-callerid,LIMIT,) [pbx_config]
2. Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})}) [pbx_config]
3. Set(_NODEST=) [pbx_config]
4. Gosub(sub-record-check,s,1(out,${EXTEN},)) [pbx_config]
5. Macro(dialout-trunk,1,${EXTEN:1},) [pbx_config]
6. Macro(outisbusy,) [pbx_config]
[ Included context 'outrt-2' created by 'pbx_config' ]
'_0.' => 1. Macro(user-callerid,LIMIT,) [pbx_config]
2. Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})}) [pbx_config]
3. Set(_NODEST=) [pbx_config]
4. Gosub(sub-record-check,s,1(out,${EXTEN},)) [pbx_config]
5. Macro(dialout-trunk,2,${EXTEN:1},) [pbx_config]
6. Macro(outisbusy,) [pbx_config]
[ Included context 'bad-number' created by 'pbx_config' ]
'_X.' => 1. ResetCDR() [pbx_config]
2. NoCDR() [pbx_config]
3. Progress() [pbx_config]
4. Wait(1) [pbx_config]
5. Progress() [pbx_config]
6. Playback(silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer) [pbx_config]
7. Wait(1) [pbx_config]
8. Congestion(20) [pbx_config]
9. Hangup() [pbx_config]
-= 3 extensions (21 priorities) in 3 contexts. =-
вот лог вх.звонка и пере адресации
-- Executing [13042@from-trunk-sip-westcall:1] Set("SIP/westcall-0000faa6", "GROUP()=OUT_3") in new stack
-- Executing [13042@from-trunk-sip-westcall:2] Goto("SIP/westcall-0000faa6", "from-trunk,13042,1") in new stack
-- Goto (from-trunk,13042,1)
-- Executing [13042@from-trunk:1] Set("SIP/westcall-0000faa6", "__FROM_DID=13042") in new stack
-- Executing [13042@from-trunk:2] Gosub("SIP/westcall-0000faa6", "app-blacklist-check,s,1()") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/westcall-0000faa6", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/westcall-0000faa6", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/westcall-0000faa6", "") in new stack
-- Executing [13042@from-trunk:3] Set("SIP/westcall-0000faa6", "CDR(did)=13042") in new stack
-- Executing [13042@from-trunk:4] ExecIf("SIP/westcall-0000faa6", "0 ?Set(CALLERID(name)=925371XXXX)") in new stack
-- Executing [13042@from-trunk:5] Set("SIP/westcall-0000faa6", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [13042@from-trunk:6] Set("SIP/westcall-0000faa6", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [13042@from-trunk:7] Goto("SIP/westcall-0000faa6", "ext-miscdests,1,1") in new stack
-- Goto (ext-miscdests,1,1)
-- Executing [1@ext-miscdests:1] NoOp("SIP/westcall-0000faa6", "MiscDest: im-callcentr") in new stack
-- Executing [1@ext-miscdests:2] Goto("SIP/westcall-0000faa6", "from-internal,08495734XXXX#,1") in new stack
-- Goto (from-internal,08495734XXXX#,1)
-- Executing [08495734XXXX#@from-internal:1] Macro("SIP/westcall-0000faa6", "user-callerid,LIMIT,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/westcall-0000faa6", "AMPUSER=925371XXXX") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/westcall-0000faa6", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/westcall-0000faa6", "1?Set(REALCALLERIDNUM=925371XXXX)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/westcall-0000faa6", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/westcall-0000faa6", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/westcall-0000faa6", "1?report") in new stack
-- Goto (macro-user-callerid,s,13)
-- Executing [s@macro-user-callerid:13] GotoIf("SIP/westcall-0000faa6", "1?continue") in new stack
-- Goto (macro-user-callerid,s,26)
-- Executing [s@macro-user-callerid:26] Set("SIP/westcall-0000faa6", "CALLERID(number)=925371XXXX") in new stack
-- Executing [s@macro-user-callerid:27] Set("SIP/westcall-0000faa6", "CALLERID(name)=925371XXXX") in new stack
-- Executing [s@macro-user-callerid:28] Set("SIP/westcall-0000faa6", "CHANNEL(language)=ru") in new stack
-- Executing [08495734XXXX#@from-internal:2] Set("SIP/westcall-0000faa6", "MOHCLASS=default") in new stack
-- Executing [08495734XXXX#@from-internal:3] Set("SIP/westcall-0000faa6", "_NODEST=") in new stack
-- Executing [08495734XXXX#@from-internal:4] Gosub("SIP/westcall-0000faa6", "sub-record-check,s,1(out,08495734XXXX#,)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("SIP/westcall-0000faa6", "1?check") in new stack
-- Goto (sub-record-check,s,6)
-- Executing [s@sub-record-check:6] Set("SIP/westcall-0000faa6", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:7] GotoIf("SIP/westcall-0000faa6", "1?next") in new stack
-- Goto (sub-record-check,s,10)
-- Executing [s@sub-record-check:10] ExecIf("SIP/westcall-0000faa6", "0?Return()") in new stack
-- Executing [s@sub-record-check:11] GotoIf("SIP/westcall-0000faa6", "0?out,1") in new stack
-- Executing [s@sub-record-check:12] Set("SIP/westcall-0000faa6", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:13] ExecIf("SIP/westcall-0000faa6", "0?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/westcall-0000faa6", "NOW=1359571127") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/westcall-0000faa6", "__DAY=30") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/westcall-0000faa6", "__MONTH=01") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/westcall-0000faa6", "__YEAR=2013") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/westcall-0000faa6", "__TIMESTR=20130130-223847") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/westcall-0000faa6", "__FROMEXTEN=925371XXXX") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/westcall-0000faa6", "__CALLFILENAME=out-08495734XXXX#-925371XXXX-20130130-223847-1359571127.64219") in new stack
-- Executing [s@sub-record-check:21] Goto("SIP/westcall-0000faa6", "out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] ExecIf("SIP/westcall-0000faa6", "1?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [out@sub-record-check:2] GosubIf("SIP/westcall-0000faa6", "0?record,1(exten,08495734XXXX#,925371XXXX)") in new stack
-- Executing [out@sub-record-check:3] Return("SIP/westcall-0000faa6", "") in new stack
-- Executing [08495734XXXX#@from-internal:5] Macro("SIP/westcall-0000faa6", "dialout-trunk,2,8495734XXXX#,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/westcall-0000faa6", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/westcall-0000faa6", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/westcall-0000faa6", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/westcall-0000faa6", "DIAL_NUMBER=8495734XXXX#") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/westcall-0000faa6", "DIAL_TRUNK_OPTIONS=tTw") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/westcall-0000faa6", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/westcall-0000faa6", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/westcall-0000faa6", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/westcall-0000faa6", "DIAL_TRUNK_OPTIONS=tTw") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/westcall-0000faa6", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/westcall-0000faa6", "1?Set(CALLERPRES()=allowed_not_screened)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/westcall-0000faa6", "0?Set(REALCALLERIDNUM=925371XXXX)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/westcall-0000faa6", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/westcall-0000faa6", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/westcall-0000faa6", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/westcall-0000faa6", "TRUNKOUTCID=1045141") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/westcall-0000faa6", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/westcall-0000faa6", "1?Set(CALLERID(all)=1045141)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/westcall-0000faa6", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/westcall-0000faa6", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/westcall-0000faa6", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/westcall-0000faa6", "0?sub-flp-2,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/westcall-0000faa6", "OUTNUM=8495734XXXX#") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/westcall-0000faa6", "custom=SIP/msm") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/westcall-0000faa6", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)tTw)") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/westcall-0000faa6", "0?Set(DIAL_TRUNK_OPTIONS=tTwM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/westcall-0000faa6", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/westcall-0000faa6", "") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/westcall-0000faa6", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/westcall-0000faa6", "0?Set(CONNECTEDLINE(num,i)=8495734XXXX#)") in new stack
-- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/westcall-0000faa6", "0?Set(CONNECTEDLINE(name,i)=CID:1045141)") in new stack
-- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/westcall-0000faa6", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:22] Dial("SIP/westcall-0000faa6", "SIP/msm/8495734XXXX#,300,tTw") in new stack
мб в маршруте outside_mobile прописать вот так :
810X. для международной
89X. для сотовых Россия
8XXXXXXXXX для межгорода
но тогда вопрос у меня международные сотовые операторы все попадут под такой стандарт (Украина,Германия,Узбекистан,Китая,Латвия,Испания) мб есть стандарты по dialplan ?
После как прописал шаблоны в машруте outside_mobile , звонки перестали перенаправляться вот лог звонка:
-- Executing [13042@from-trunk-sip-westcall:1] Set("SIP/westcall-0000faab", "GROUP()=OUT_3") in new stack
-- Executing [13042@from-trunk-sip-westcall:2] Goto("SIP/westcall-0000faab", "from-trunk,13042,1") in new stack
-- Goto (from-trunk,13042,1)
-- Executing [13042@from-trunk:1] Set("SIP/westcall-0000faab", "__FROM_DID=13042") in new stack
-- Executing [13042@from-trunk:2] Gosub("SIP/westcall-0000faab", "app-blacklist-check,s,1()") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/westcall-0000faab", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/westcall-0000faab", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/westcall-0000faab", "") in new stack
-- Executing [13042@from-trunk:3] Set("SIP/westcall-0000faab", "CDR(did)=13042") in new stack
-- Executing [13042@from-trunk:4] ExecIf("SIP/westcall-0000faab", "0 ?Set(CALLERID(name)=925371XXXX6)") in new stack
-- Executing [13042@from-trunk:5] Set("SIP/westcall-0000faab", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [13042@from-trunk:6] Set("SIP/westcall-0000faab", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [13042@from-trunk:7] Goto("SIP/westcall-0000faab", "ext-miscdests,1,1") in new stack
-- Goto (ext-miscdests,1,1)
-- Executing [1@ext-miscdests:1] NoOp("SIP/westcall-0000faab", "MiscDest: im-callcentr") in new stack
-- Executing [1@ext-miscdests:2] Goto("SIP/westcall-0000faab", "from-internal,08495734XXXX#,1") in new stack
-- Goto (from-internal,08495734XXXX#,1)
-- Executing [08495734XXXX#@from-internal:1] ResetCDR("SIP/westcall-0000faab", "") in new stack
-- Executing [08495734XXXX#@from-internal:2] NoCDR("SIP/westcall-0000faab", "") in new stack
-- Executing [08495734XXXX#@from-internal:3] Progress("SIP/westcall-0000faab", "") in new stack
-- Executing [08495734XXXX#@from-internal:4] Wait("SIP/westcall-0000faab", "1") in new stack
-- Executing [08495734XXXX#@from-internal:5] Progress("SIP/westcall-0000faab", "") in new stack
-- Executing [08495734XXXX#@from-internal:6] Playback("SIP/westcall-0000faab", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
Добавлял транк westcall в маршрут outside_gorod тоже самое =( подскажите что делать?
А транк Beeline мобильные или городские транки? И Msm что это?
И зачем правило (8495 (Prepended)) (0 (префикс)) [NXXXXXX] ????
Out ( 2013-01-30 17:33:01 +0400 )редактироватьСудя по всему номер , который идет через исходящуюю маршрутизацию не входит во множества шаблонов outside_gorod
zzuz ( 2013-01-30 17:38:25 +0400 )редактироватьИ зачем правило (8495 (Prepended)) (0 (префикс)) [NXXXXXX] В офисе все набирают 01234567 заместо 084951234567
zzuz - Как это проверить и как поправить ?
hubermx ( 2013-01-30 17:49:05 +0400 )редактировать