FreePBX 2.10.0.4 Входящие настроил.
Настраиваю SIP транк:
Название маршрута?: mtsout
Правила для манипуляции набранными номерами?:
Совпадение шаблона: 80298XXXXXX
Название транка?: e173_1
опции для PEER?:
username=e173_1
type=friend
qualify=yes
insecure=invite
host=dynamic
context=from-trunk
Исходящий маршрут:
Название маршрута?: mtsout
Шаблоны номеров, используемые на этом маршруте?: 80298XXXXXX
Последовательность транков для совпавших маршрутов: e173_1
rcrm*CLI> dongle show devices
ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
e173_1 0 Free 11 5 4 MTS.BY E173 11.126.16.00.715 8******2****0* 2570***01***4**
Исходящие если набирать:
8-029-8xx-xx-xx
8-029-6xx-xx-xx
8-029-3xx-xx-xx
8-029-1xx-xx-xx
8-044-xxx-xx-xx
Допустим набираю: 80298111111, говорит мол все занято, в чем может быть проблема?
В лог сыпется такое:
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [80298111111@from-internal:1] Macro("SIP/300-00000008", "user-callerid,LIMIT,") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/300-00000008", "AMPUSER=300") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/300-00000008", "0?report") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/300-00000008", "1?Set(REALCALLERIDNUM=300)") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:4] Set("SIP/300-00000008", "AMPUSER=300") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/300-00000008", "AMPUSERCIDNAME=op03") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/300-00000008", "0?report") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:7] Set("SIP/300-00000008", "AMPUSERCID=300") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:8] Set("SIP/300-00000008", "CALLERID(all)="op03" <300>") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:9] GotoIf("SIP/300-00000008", "0?limit") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:10] ExecIf("SIP/300-00000008", "1?Set(GROUP(concurrency_limit)=300)") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:11] GosubIf("SIP/300-00000008", "0?sub-ccss,s,1(from-internal,80298111111)") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:12] ExecIf("SIP/300-00000008", "0?Set(CHANNEL(language)=)") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:13] GotoIf("SIP/300-00000008", "1?continue") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Goto (macro-user-callerid,s,26)
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:26] Set("SIP/300-00000008", "CALLERID(number)=300") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:27] Set("SIP/300-00000008", "CALLERID(name)=op03") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-user-callerid:28] Set("SIP/300-00000008", "CHANNEL(language)=ru") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [80298111111@from-internal:2] Set("SIP/300-00000008", "MOHCLASS=default") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [80298111111@from-internal:3] Set("SIP/300-00000008", "_NODEST=") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [80298111111@from-internal:4] Gosub("SIP/300-00000008", "sub-record-check,s,1(out,80298111111,)") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@sub-record-check:1] GotoIf("SIP/300-00000008", "1?check") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Goto (sub-record-check,s,3)
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@sub-record-check:3] Set("SIP/300-00000008", "MON_FMT=wav") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@sub-record-check:4] GotoIf("SIP/300-00000008", "1?next") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Goto (sub-record-check,s,7)
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@sub-record-check:7] ExecIf("SIP/300-00000008", "0?Return()") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@sub-record-check:8] GotoIf("SIP/300-00000008", "0?out,1") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@sub-record-check:9] Set("SIP/300-00000008", "__REC_STATUS=INITIALIZED") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@sub-record-check:10] ExecIf("SIP/300-00000008", "0?Set(__REC_POLICY_MODE=)") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@sub-record-check:11] Set("SIP/300-00000008", "NOW=1336724345") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@sub-record-check:12] Set("SIP/300-00000008", "__DAY=11") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@sub-record-check:13] Set("SIP/300-00000008", "__MONTH=05") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@sub-record-check:14] Set("SIP/300-00000008", "__YEAR=2012") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@sub-record-check:15] Set("SIP/300-00000008", "__TIMESTR=20120511-111905") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@sub-record-check:16] Set("SIP/300-00000008", "__FROMEXTEN=300") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@sub-record-check:17] Set("SIP/300-00000008", "__CALLFILENAME=out-80298111111-300-20120511-111905-1336724345.10") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@sub-record-check:18] Goto("SIP/300-00000008", "out,1") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Goto (sub-record-check,out,1)
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [out@sub-record-check:1] ExecIf("SIP/300-00000008", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [out@sub-record-check:2] GosubIf("SIP/300-00000008", "0?record,1(exten,80298111111,300)") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [out@sub-record-check:3] Return("SIP/300-00000008", "") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [80298111111@from-internal:5] Macro("SIP/300-00000008", "dialout-trunk,3,80298111111,") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-dialout-trunk:1] Set("SIP/300-00000008", "DIAL_TRUNK=3") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/300-00000008", "0?sub-pincheck,s,1()") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/300-00000008", "1?disabletrunk,1") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Goto (macro-dialout-trunk,disabletrunk,1)
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [disabletrunk@macro-dialout-trunk:1] NoOp("SIP/300-00000008", "TRUNK: SIP/e173_1 DISABLED - falling through to next trunk") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [80298111111@from-internal:6] Macro("SIP/300-00000008", "outisbusy,") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-outisbusy:1] Progress("SIP/300-00000008", "") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-outisbusy:2] GotoIf("SIP/300-00000008", "0?emergency,1") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-outisbusy:3] GotoIf("SIP/300-00000008", "0?intracompany,1") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] pbx.c: -- Executing [s@macro-outisbusy:4] Playback("SIP/300-00000008", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
[2012-05-11 11:19:05] VERBOSE[2040] file.c: -- <SIP/300-00000008> Playing 'all-circuits-busy-now.alaw' (language 'ru')
[2012-05-11 11:19:08] VERBOSE[2040] file.c: -- <SIP/300-00000008> Playing 'pls-try-call-later.alaw' (language 'ru')
[2012-05-11 11:19:10] VERBOSE[2040] pbx.c: -- Executing [s@macro-outisbusy:5] Congestion("SIP/300-00000008", "20") in new stack
и в чем вопрос?
shakirov ( 2012-05-11 13:09:48 +0400 )редактироватьВидимо хвастается конфигом.
zzuz ( 2012-05-11 13:19:40 +0400 )редактироватьВ том что не работает, не могу разобраться с набором номера...
jjoloka ( 2012-05-11 14:06:19 +0400 )редактироватьвас это не смущает RUNK: SIP/e173_1 DISABLED
meral ( 2012-05-11 14:29:53 +0400 )редактироватьт.е. для каждого модема грубо говоря должен быть SIP? - вот этого негде в руководствах не встречал... Кстати в основном и было непонятно что должно быть в опции для PEER?.
jjoloka ( 2012-05-11 14:38:07 +0400 )редактировать