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

realtime extensions

0

Добрый день, друзья. У меня такая ситуация: настроил реалтайм путем следующих изменений:

в файле extconfig.conf добавил следующий поля:
[settings]
sippeers => mysql,general,sip_buddies
sipusers => mysql,general,sip_buddies
extensions => mysql,general,sip_buddies
Далее в файле extensions.conf добавил следующее:
[default]
switch => Realtime/general@extensions
В файле res_mysql.conf изменил значение на свои:
[general]
dbhost = 127.0.0.1
dbname = asterisk
dbuser = user
dbpass = password
dbport = 3306
;dbsock = /tmp/mysql.sock
Аналогично изменил файл res_config_mysql.conf:
[general]
dbhost = 127.0.0.1
dbname = asterisk
dbuser = user
dbpass = password
dbport = 3306
;dbsock = /tmp/mysql.sock
dbcharset = utf8
;requirements=warn ; or createclose or createchar
А в файле sip.conf добавил в контекст следующие строки:
[general]
switch => realtime/@sippeers
switch => realtime/@sipusers
switch => realtime/@extensions
switch => realtime/@sipregs

В базе данных у меня заведены внутренние номера. Телефоны с этими номерами регистрируются и звонят на внешние номера успешно. У меня так же есть два внутренних номера, которые я добавил через веб интерфейс и они не попали в базу данных. Для наглядности: 100 и 102 - номера в конфигах Астериска. Номера 103 и 104 - заведены в базе данных. С номеров 103 и 104 я могу позвонить на номера 100, 102 и внешние (сотовые). А с номеров 100 и 102 я могу позвонить друг на друга и на внешние, но на 103 и 104 не могу позвонить. Пришел к мнению, что Астериск не понимает, что кроме внутренних номеров в конфигах, есть еще внутренние номера в базе данных. Как заставить систему смотреть еще и в базу данных? У меня Астериск 1.8, Эластикс 2.3, FreePBX 2.8, CentOS 5.7.

Лог при звонке на номера, заведенные в БД:

  == Parsing '/etc/asterisk/extconfig.conf':   == Found
  == Binding sippeers to mysql/general/sip_buddies
  == Binding sipusers to mysql/general/sip_buddies
  == Binding extensions to mysql/general/sip_buddies
Connected to Asterisk 1.8.11.0 currently running on SIRIUS (pid = 3168)
Verbosity is at least 7
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [104@from-internal:1] Macro("SIP/01102-0000003d", "user-callerid,SKIPTTL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/01102-0000003d", "AMPUSER=01102") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/01102-0000003d", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/01102-0000003d", "1?Set(REALCALLERIDNUM=01102)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/01102-0000003d", "AMPUSER=01102") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/01102-0000003d", "AMPUSERCIDNAME=102") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/01102-0000003d", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/01102-0000003d", "AMPUSERCID=01102") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/01102-0000003d", "CALLERID(all)="102" <01102>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/01102-0000003d", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/01102-0000003d", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] Set("SIP/01102-0000003d", "CALLERID(number)=01102") in new stack
    -- Executing [s@macro-user-callerid:20] Set("SIP/01102-0000003d", "CALLERID(name)=102") in new stack
    -- Executing [s@macro-user-callerid:21] NoOp("SIP/01102-0000003d", "Using CallerID "102" <01102>") in new stack
    -- Executing [104@from-internal:2] NoOp("SIP/01102-0000003d", "Calling Out Route: Extension") in new stack
    -- Executing [104@from-internal:3] Set("SIP/01102-0000003d", "MOHCLASS=default") in new stack
    -- Executing [104@from-internal:4] Set("SIP/01102-0000003d", "_NODEST=") in new stack
    -- Executing [104@from-internal:5] Macro("SIP/01102-0000003d", "record-enable,01102,OUT,") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/01102-0000003d", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/01102-0000003d", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("SIP/01102-0000003d", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s@macro-record-enable:15] GotoIf("SIP/01102-0000003d", "0?IN") in new stack
    -- Executing [s@macro-record-enable:16] ExecIf("SIP/01102-0000003d", "1?MacroExit()") in new stack
    -- Executing [104@from-internal:6] Macro("SIP/01102-0000003d", "dialout-trunk,1,01104,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/01102-0000003d", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/01102-0000003d", "0?sub-pincheck,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/01102-0000003d", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/01102-0000003d", "DIAL_NUMBER=01104") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/01102-0000003d", "DIAL_TRUNK_OPTIONS=trw") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/01102-0000003d", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/01102-0000003d", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/01102-0000003d", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/01102-0000003d", "DIAL_TRUNK_OPTIONS=TW") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/01102-0000003d", "outbound-callerid,1") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/01102-0000003d", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/01102-0000003d", "0?Set(REALCALLERIDNUM=01102)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/01102-0000003d", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/01102-0000003d", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/01102-0000003d", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/01102-0000003d", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/01102-0000003d", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/01102-0000003d", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/01102-0000003d", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/01102-0000003d", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/01102-0000003d", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/01102-0000003d", "1?sub-flp-1,s,1") in new stack
    -- Executing [s@sub-flp-1:1] ExecIf("SIP/01102-0000003d", "1?Return()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/01102-0000003d", "OUTNUM=01104") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/01102-0000003d", "custom=IAX2/01XXXA") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/01102-0000003d", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)TW)") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/01102-0000003d", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/01102-0000003d", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/01102-0000003d", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/01102-0000003d", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("SIP/01102-0000003d", "IAX2/01XXXA/01104,300,TW") in new stack
    -- Called IAX2/01XXXA/01104
    -- Accepting AUTHENTICATED call from 127.0.0.1:
       > requested format = alaw,
       > requested prefs = (alaw),
       > actual format = alaw,
       > host prefs = (alaw),
       > priority = mine
    -- Call accepted by 127.0.0.1 (format alaw)
    -- Format for call is alaw
    -- Executing [01104@from-trunk-iax2-01XXXA:1] Set("IAX2/01XXXA-5850", "GROUP()=OUT_1") in new stack
    -- Executing [01104@from-trunk-iax2-01XXXA:2] Goto("IAX2/01XXXA-5850", "from-trunk,01104,1") in new stack
    -- Goto (from-trunk,01104,1)
    -- Executing [01104@from-trunk:1] NoOp("IAX2/01XXXA-5850", "Catch-All DID Match - Found 01104 - You probably want a DID for this.") in new stack
    -- Executing [01104@from-trunk:2] Goto("IAX2/01XXXA-5850", "ext-did,s,1") in new stack
    -- Goto (ext-did,s,1)
    -- Executing [s@ext-did:1] Set("IAX2/01XXXA-5850", "__FROM_DID=s") in new stack
    -- Executing [s@ext-did:2] Gosub("IAX2/01XXXA-5850", "app-blacklist-check,s,1") in new stack
    -- Executing [s@app-blacklist-check:1] GotoIf("IAX2/01XXXA-5850", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:2] Set("IAX2/01XXXA-5850", "CALLED_BLACKLIST=1") in new stack
    -- Executing [s@app-blacklist-check:3] Return("IAX2/01XXXA-5850", "") in new stack
    -- Executing [s@ext-did:3] ExecIf("IAX2/01XXXA-5850", "0 ?Set(CALLERID(name)=01102)") in new stack
    -- Executing [s@ext-did:4] Set("IAX2/01XXXA-5850", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [s@ext-did:5] Set("IAX2/01XXXA-5850", "CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [s@ext-did:6] Goto("IAX2/01XXXA-5850", "from-did-direct,01100,1") in new stack
    -- Goto (from-did-direct,01100,1)
    -- Executing [01100@from-did-direct:1] Macro("IAX2/01XXXA-5850", "exten-vm,novm,01100") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("IAX2/01XXXA-5850", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("IAX2/01XXXA-5850", "AMPUSER=01102") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("IAX2/01XXXA-5850", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("IAX2/01XXXA-5850", "1?Set(REALCALLERIDNUM=01102)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("IAX2/01XXXA-5850", "AMPUSER=01102") in new stack
    -- Executing [s@macro-user-callerid:5] Set("IAX2/01XXXA-5850", "AMPUSERCIDNAME=102") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("IAX2/01XXXA-5850", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("IAX2/01XXXA-5850", "AMPUSERCID=01102") in new stack
    -- Executing [s@macro-user-callerid:8] Set("IAX2/01XXXA-5850", "CALLERID(all)="102" <01102>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("IAX2/01XXXA-5850", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("IAX2/01XXXA-5850", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:11] Set("IAX2/01XXXA-5850", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("IAX2/01XXXA-5850", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] Set("IAX2/01XXXA-5850", "CALLERID(number)=01102") in new stack
    -- Executing [s@macro-user-callerid:20] Set("IAX2/01XXXA-5850", "CALLERID(name)=102") in new stack
    -- Executing [s@macro-user-callerid:21] NoOp("IAX2/01XXXA-5850", "Using CallerID "102" <01102>") in new stack
    -- Executing [s@macro-exten-vm:2] Set("IAX2/01XXXA-5850", "RingGroupMethod=none") in new stack
    -- Executing [s@macro-exten-vm:3] Set("IAX2/01XXXA-5850", "VMBOX=novm") in new stack
    -- Executing [s@macro-exten-vm:4] Set("IAX2/01XXXA-5850", "__EXTTOCALL=01100") in new stack
    -- Executing [s@macro-exten-vm:5] Set("IAX2/01XXXA-5850", "CFUEXT=") in new stack
    -- Executing [s@macro-exten-vm:6] Set("IAX2/01XXXA-5850", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("IAX2/01XXXA-5850", "RT=""") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("IAX2/01XXXA-5850", "record-enable,01100,IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("IAX2/01XXXA-5850", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("IAX2/01XXXA-5850", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("IAX2/01XXXA-5850", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s@macro-record-enable:15] GotoIf("IAX2/01XXXA-5850", "1?IN") in new stack
    -- Goto (macro-record-enable,s,20)
    -- Executing [s@macro-record-enable:20] ExecIf("IAX2/01XXXA-5850", "1?MacroExit()") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("IAX2/01XXXA-5850", "dial-one,"",trw,01100") in new stack
    -- Executing [s@macro-dial-one:1] Set("IAX2/01XXXA-5850", "DEXTEN=01100") in new stack
    -- Executing [s@macro-dial-one:2] Set("IAX2/01XXXA-5850", "DIALSTATUS_CW=") in new stack
    -- Executing [s@macro-dial-one:3] GosubIf("IAX2/01XXXA-5850", "0?screen,1") in new stack
    -- Executing [s@macro-dial-one:4] GosubIf("IAX2/01XXXA-5850", "0?cf,1") in new stack
    -- Executing [s@macro-dial-one:5] GotoIf("IAX2/01XXXA-5850", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,8)
    -- Executing [s@macro-dial-one:8] GotoIf("IAX2/01XXXA-5850", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:9] GotoIf("IAX2/01XXXA-5850", "0?continue") in new stack
    -- Executing [s@macro-dial-one:10] Set("IAX2/01XXXA-5850", "EXTHASCW=") in new stack
    -- Executing [s@macro-dial-one:11] GotoIf("IAX2/01XXXA-5850", "1?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,12)
    -- Executing [s@macro-dial-one:12] GotoIf("IAX2/01XXXA-5850", "0?docfu:skip3") in new stack
    -- Goto (macro-dial-one,s,16)
    -- Executing [s@macro-dial-one:16] GotoIf("IAX2/01XXXA-5850", "1?next2:continue") in new stack
    -- Goto (macro-dial-one,s,17)
    -- Executing [s@macro-dial-one:17] GotoIf("IAX2/01XXXA-5850", "1?continue") in new stack
    -- Goto (macro-dial-one,s,25)
    -- Executing [s@macro-dial-one:25] GotoIf("IAX2/01XXXA-5850", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:26] GosubIf("IAX2/01XXXA-5850", "1?dstring,1:dlocal,1") in new stack
    -- Executing [dstring@macro-dial-one:1] Set("IAX2/01XXXA-5850", "DSTRING=") in new stack
    -- Executing [dstring@macro-dial-one:2] Set("IAX2/01XXXA-5850", "DEVICES=01100") in new stack
    -- Executing [dstring@macro-dial-one:3] ExecIf("IAX2/01XXXA-5850", "0?Return()") in new stack
    -- Executing [dstring@macro-dial-one:4] ExecIf("IAX2/01XXXA-5850", "0?Set(DEVICES=1100)") in new stack
    -- Executing [dstring@macro-dial-one:5] Set("IAX2/01XXXA-5850", "LOOPCNT=1") in new stack
    -- Executing [dstring@macro-dial-one:6] Set("IAX2/01XXXA-5850", "ITER=1") in new stack
    -- Executing [dstring@macro-dial-one:7] Set("IAX2/01XXXA-5850", "THISDIAL=SIP/01100") in new stack
    -- Executing [dstring@macro-dial-one:8] GosubIf("IAX2/01XXXA-5850", "1?zap2dahdi,1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("IAX2/01XXXA-5850", "0?Return()") in new stack
    -- Executing [zap2dahdi@macro-dial-one:2] Set("IAX2/01XXXA-5850", "NEWDIAL=") in new stack
    -- Executing [zap2dahdi@macro-dial-one:3] Set("IAX2/01XXXA-5850", "LOOPCNT2=1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:4] Set("IAX2/01XXXA-5850", "ITER2=1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:5] Set("IAX2/01XXXA-5850", "THISPART2=SIP/01100") in new stack
    -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("IAX2/01XXXA-5850", "0?Set(THISPART2=DAHDI/01100)") in new stack
    -- Executing [zap2dahdi@macro-dial-one:7] Set("IAX2/01XXXA-5850", "NEWDIAL=SIP/01100&") in new stack
    -- Executing [zap2dahdi@macro-dial-one:8] Set("IAX2/01XXXA-5850", "ITER2=2") in new stack
    -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("IAX2/01XXXA-5850", "0?begin2") in new stack
    -- Executing [zap2dahdi@macro-dial-one:10] Set("IAX2/01XXXA-5850", "THISDIAL=SIP/01100") in new stack
    -- Executing [zap2dahdi@macro-dial-one:11] Return("IAX2/01XXXA-5850", "") in new stack
    -- Executing [dstring@macro-dial-one:9] Set("IAX2/01XXXA-5850", "DSTRING=SIP/01100&") in new stack
    -- Executing [dstring@macro-dial-one:10] Set("IAX2/01XXXA-5850", "ITER=2") in new stack
    -- Executing [dstring@macro-dial-one:11] GotoIf("IAX2/01XXXA-5850", "0?begin") in new stack
    -- Executing [dstring@macro-dial-one:12] Set("IAX2/01XXXA-5850", "DSTRING=SIP/01100") in new stack
    -- Executing [dstring@macro-dial-one:13] Return("IAX2/01XXXA-5850", "") in new stack
    -- Executing [s@macro-dial-one:27] GotoIf("IAX2/01XXXA-5850", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:28] GotoIf("IAX2/01XXXA-5850", "1?skiptrace") in new stack
    -- Goto (macro-dial-one,s,30)
    -- Executing [s@macro-dial-one:30] Set("IAX2/01XXXA-5850", "D_OPTIONS=trw") in new stack
    -- Executing [s@macro-dial-one:31] ExecIf("IAX2/01XXXA-5850", "0?SIPAddHeader(Alert-Info: )") in new stack
    -- Executing [s@macro-dial-one:32] ExecIf("IAX2/01XXXA-5850", "0?SIPAddHeader()") in new stack
    -- Executing [s@macro-dial-one:33] ExecIf("IAX2/01XXXA-5850", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [s@macro-dial-one:34] GosubIf("IAX2/01XXXA-5850", "0?qwait,1") in new stack
    -- Executing [s@macro-dial-one:35] Set("IAX2/01XXXA-5850", "__CWIGNORE=") in new stack
    -- Executing [s@macro-dial-one:36] Set("IAX2/01XXXA-5850", "__KEEPCID=TRUE") in new stack
    -- Executing [s@macro-dial-one:37] Dial("IAX2/01XXXA-5850", "SIP/01100,"",trw") in new stack
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dial-one:38] ExecIf("IAX2/01XXXA-5850", "0?Set(DIALSTATUS=)") in new stack
    -- Executing [s@macro-dial-one:39] GosubIf("IAX2/01XXXA-5850", "0?s-CHANUNAVAIL,1") in new stack
    -- Executing [s@macro-dial-one:40] MacroExit("IAX2/01XXXA-5850", "") in new stack
    -- Executing [s@macro-exten-vm:10] GotoIf("IAX2/01XXXA-5850", "0?exit") in new stack
    -- Executing [s@macro-exten-vm:11] Set("IAX2/01XXXA-5850", "SV_DIALSTATUS=CHANUNAVAIL") in new stack
    -- Executing [s@macro-exten-vm:12] GosubIf("IAX2/01XXXA-5850", "0?docfu,1") in new stack
    -- Executing [s@macro-exten-vm:13] GosubIf("IAX2/01XXXA-5850", "0?docfb,1") in new stack
    -- Executing [s@macro-exten-vm:14] Set("IAX2/01XXXA-5850", "DIALSTATUS=CHANUNAVAIL") in new stack
    -- Executing [s@macro-exten-vm:15] NoOp("IAX2/01XXXA-5850", "Voicemail is 'novm'") in new stack
    -- Executing [s@macro-exten-vm:16] GotoIf("IAX2/01XXXA-5850", "1?s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-exten-vm,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-exten-vm:1] NoOp("IAX2/01XXXA-5850", "IVR_RETVM:  IVR_CONTEXT: ") in new stack
    -- Executing [s-CHANUNAVAIL@macro-exten-vm:2] GotoIf("IAX2/01XXXA-5850", "0?exit,1") in new stack
    -- Executing [s-CHANUNAVAIL@macro-exten-vm:3] PlayTones("IAX2/01XXXA-5850", "congestion") in new stack
    -- Executing [s-CHANUNAVAIL@macro-exten-vm:4] Congestion("IAX2/01XXXA-5850", "10") in new stack
    -- IAX2/01XXXA-15128 is circuit-busy
    -- Hungup 'IAX2/01XXXA-15128'
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/01102-0000003d", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34") in new stack
    -- Executing [s@macro-dialout-trunk:21] Goto("SIP/01102-0000003d", "s-CONGESTION,1") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)
    -- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("SIP/01102-0000003d", "RC=34") in new stack
    -- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("SIP/01102-0000003d", "34,1") in new stack
    -- Goto (macro-dialout-trunk,34,1)
    -- Executing [34@macro-dialout-trunk:1] Goto("SIP/01102-0000003d", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/01102-0000003d", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,continue,3)
    -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/01102-0000003d", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 34 - failing through to other trunks") in new stack
    -- Executing [continue@macro-dialout-trunk:4] Set("SIP/01102-0000003d", "CALLERID(number)=01102") in new stack
    -- Executing [104@from-internal:7] Macro("SIP/01102-0000003d", "outisbusy,") in new stack
    -- Executing [s@macro-outisbusy:1] Progress("SIP/01102-0000003d", "") in new stack
    -- Executing [s@macro-outisbusy:2] GotoIf("SIP/01102-0000003d", "0?emergency,1") in new stack
    -- Executing [s@macro-outisbusy:3] GotoIf("SIP/01102-0000003d", "0?intracompany,1") in new stack
    -- Executing [s@macro-outisbusy:4] Playback("SIP/01102-0000003d", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
    -- <SIP/01102-0000003d> Playing 'all-circuits-busy-now.gsm' (language 'en')
  == Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 4) exited non-zero on 'IAX2/01XXXA-5850' in macro 'exten-vm'
  == Spawn extension (from-did-direct, 01100, 1) exited non-zero on 'IAX2/01XXXA-5850'
    -- Executing [h@from-did-direct:1] Macro("IAX2/01XXXA-5850", "hangupcall,") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("IAX2/01XXXA-5850", "1?endmixmoncheck") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] NoOp("IAX2/01XXXA-5850", "End of MIXMON check") in new stack
    -- Executing [s@macro-hangupcall:10] GotoIf("IAX2/01XXXA-5850", "1?nomeetmemon") in new stack
    -- Goto (macro-hangupcall,s,28)
    -- Executing [s@macro-hangupcall:28] NoOp("IAX2/01XXXA-5850", "End of MEETME check") in new stack
    -- Executing [s@macro-hangupcall:29] GotoIf("IAX2/01XXXA-5850", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,34)
    -- Executing [s@macro-hangupcall:34] NoOp("IAX2/01XXXA-5850", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:35] GotoIf("IAX2/01XXXA-5850", "1?noautomon2") in new stack
    -- Goto (macro-hangupcall,s,41)
    -- Executing [s@macro-hangupcall:41] NoOp("IAX2/01XXXA-5850", "MONITOR_FILENAME=") in new stack
    -- Executing [s@macro-hangupcall:42] GotoIf("IAX2/01XXXA-5850", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,45)
    -- Executing [s@macro-hangupcall:45] GotoIf("IAX2/01XXXA-5850", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,48)
    -- Executing [s@macro-hangupcall:48] GotoIf("IAX2/01XXXA-5850", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,50)
    -- Executing [s@macro-hangupcall:50] AGI("IAX2/01XXXA-5850", "hangup.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
    -- <IAX2/01XXXA-5850>AGI Script hangup.agi completed, returning 0
    -- Executing [s@macro-hangupcall:51] Hangup("IAX2/01XXXA-5850", "") in new stack
  == Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'IAX2/01XXXA-5850' in macro 'hangupcall'
  == Spawn extension (from-did-direct, h, 1) exited non-zero on 'IAX2/01XXXA-5850'
    -- Hungup 'IAX2/01XXXA-5850'
    -- <SIP/01102-0000003d> Playing 'pls-try-call-later.gsm' (language 'en')
  == Spawn extension (macro-outisbusy, s, 4) exited non-zero on 'SIP/01102-0000003d' in macro 'outisbusy'
  == Spawn extension (from-internal, 104, 7) exited non-zero on 'SIP/01102-0000003d'
    -- Executing [h@from-internal:1] Macro("SIP/01102-0000003d", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/01102-0000003d", "1?endmixmoncheck") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] NoOp("SIP/01102-0000003d", "End of MIXMON check") in new stack
    -- Executing [s@macro-hangupcall:10] GotoIf("SIP/01102-0000003d", "1?nomeetmemon") in new stack
    -- Goto (macro-hangupcall,s,28)
    -- Executing [s@macro-hangupcall:28] NoOp("SIP/01102-0000003d", "End of MEETME check") in new stack
    -- Executing [s@macro-hangupcall:29] GotoIf("SIP/01102-0000003d", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,34)
    -- Executing [s@macro-hangupcall:34] NoOp("SIP/01102-0000003d", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:35] GotoIf("SIP/01102-0000003d", "1?noautomon2") in new stack
    -- Goto (macro-hangupcall,s,41)
    -- Executing [s@macro-hangupcall:41] NoOp("SIP/01102-0000003d", "MONITOR_FILENAME=") in new stack
    -- Executing [s@macro-hangupcall:42] GotoIf("SIP/01102-0000003d", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,45)
    -- Executing [s@macro-hangupcall:45] GotoIf("SIP/01102-0000003d", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,48)
    -- Executing [s@macro-hangupcall:48] GotoIf("SIP/01102-0000003d", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,50)
    -- Executing [s@macro-hangupcall:50] AGI("SIP/01102-0000003d", "hangup.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
    -- <SIP/01102-0000003d>AGI Script hangup.agi completed, returning 0
    -- Executing [s@macro-hangupcall:51] Hangup("SIP/01102-0000003d", "") in new stack
  == Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/01102-0000003d' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/01102-0000003d'
удалить закрыть спам изменить тег редактировать

спросил 2014-03-06 13:33:39 +0400

KeIIIa88 Gravatar KeIIIa88
1 1 1

обновил 2014-03-06 14:00:35 +0400

Comments

http://rghost.ru/private/52856314/8332d3f4ea7811b3c0868ac7b6c08f84 Здесь файл с логом. А с Вашей командой у меня ничего не получилось. Ввел свою: SIRIUS*CLI> realtime mysql status general connected to asterisk@127.0.0.1, port 3306 with username user for 1 days, 22 hours. Коннект есть. А про то, что Эластикс не работает с реалтаймом не слышал. Коли на то пошло, есть FreePBX.

KeIIIa88 ( 2014-03-06 14:09:55 +0400 )редактировать

1 Ответ

0

в sip.conf не надо было ничего такого.

ну надо проверить что у вас к базе коннект есть

asterisk -rx "realtime show"

так же необходимо чтобы в базе были правильные таблицы и перезапустить астериск. ну и не братся за такие материи без опыта дебага.

ну и выводы у вас вобще безосоновательные. читайте вот это http://asterisk-support.ru/question/38386/kak-poniat-chto-proiskhodit-na-asteriske/ и смотрите что происходит когда вы звоните.

elastix, если что, не расчитан на работу с реалтайм. тоесть увас уже НЕ еластикс а ерунда какаято самописная.

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

ответил 2014-03-06 13:45:24 +0400

meral Gravatar meral flag of Ukraine
21228 23 18 169
http://pro-sip.net/

Ваш ответ

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 ленту новостей

Статистика

Задан: 2014-03-06 13:33:39 +0400

Просмотрен: 275 раз

Обновлен: Mar 06 '14

Похожие вопросы:

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