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

Не проходят звонки между внутренними номерами

Новичком считается только что прочитавший «Астериск - будущее телефонии»
http://asterisk.ru/knowledgebase/books
и пытающийся сделать большее

Модератор: april22

Не проходят звонки между внутренними номерами

Сообщение telizynav » 05 апр 2018, 02:12

Asterisk + Freepbx. В какой-то момент перестали проходить звонки на некоторые внутренние номера, причем обратно работает. Делаю новый номер, через некоторое время на него звонки перестают проходить. Удаляю его и звоню на него - номер не существует (логично), создаю снова, звоню - service unavailable, вне зависимости зарегистрировался не него или нет. Пробовал на трех разных телефонах. Кусок звонка прилагаю.


Код: выделить все
Executing [dstring@macro-dial-one:16] Set("SIP/40-00000003", "ITER=2") in new stack
    -- Executing [dstring@macro-dial-one:17] GotoIf("SIP/40-00000003", "0?begin") in new stack
    -- Executing [dstring@macro-dial-one:18] ExecIf("SIP/40-00000003", "1?Return()") in new stack
    -- Executing [s@macro-dial-one:28] GotoIf("SIP/40-00000003", "1?nodial") in new stack
    -- Goto (macro-dial-one,s,57)
    -- Executing [s@macro-dial-one:57] NoOp("SIP/40-00000003", "") in new stack
    -- Executing [s@macro-dial-one:58] ExecIf("SIP/40-00000003", "1?Set(DIALSTATUS=NOANSWER)") in new stack
    -- Executing [s@macro-dial-one:59] NoOp("SIP/40-00000003", "Returned from dial-one with nothing to call and DIALSTATUS: NOANSWER") in new stack
    -- Executing [s@macro-dial-one:60] MacroExit("SIP/40-00000003", "") in new stack
    -- Executing [s@macro-exten-vm:15] Set("SIP/40-00000003", "SV_DIALSTATUS=NOANSWER") in new stack
    -- Executing [s@macro-exten-vm:16] GosubIf("SIP/40-00000003", "0?docfu,1()") in new stack
    -- Executing [s@macro-exten-vm:17] GosubIf("SIP/40-00000003", "0?docfb,1()") in new stack
    -- Executing [s@macro-exten-vm:18] Set("SIP/40-00000003", "DIALSTATUS=NOANSWER") in new stack
    -- Executing [s@macro-exten-vm:19] ExecIf("SIP/40-00000003", "0?MacroExit()") in new stack
    -- Executing [s@macro-exten-vm:20] GotoIf("SIP/40-00000003", "1?s-NOANSWER,1") in new stack
    -- Goto (macro-exten-vm,s-NOANSWER,1)


---
От модератора: Используйте теги. Сообщение отредактировано.
telizynav
 
Сообщений: 7
Зарегистрирован: 05 апр 2018, 01:36

Re: Не проходят звонки между внутренними номерами

Сообщение april22 » 05 апр 2018, 07:27

А где dial?
Своими вопросами , вы загоняете меня в ГУГЛЬ.
april22
 
Сообщений: 1967
Зарегистрирован: 09 июл 2012, 09:47

Re: Не проходят звонки между внутренними номерами

Сообщение Kroteg » 05 апр 2018, 08:11

а
Код: выделить все
CLI>sip show peers
что показывает? номер зарегистрировался? его ip-адрес доступен?
Изображение
Аватар пользователя
Kroteg
 
Сообщений: 65
Зарегистрирован: 11 янв 2018, 14:51
Откуда: Opck

Re: Не проходят звонки между внутренними номерами

Сообщение virus_net » 05 апр 2018, 08:15

А где чтение книги "Asterisk - будущее телефонии" ?
мой SIP URI sip:virus_net@asterisk.ru или sip:dn@postmet.com
bitname.ru - Домены .bit (namecoin) .emc .coin .lib .bazar (emercoin)

ENUMER - звони бесплатно и напрямую.
Аватар пользователя
virus_net
 
Сообщений: 2170
Зарегистрирован: 05 июн 2013, 08:12
Откуда: Москва

Re: Не проходят звонки между внутренними номерами

Сообщение awsswa » 05 апр 2018, 08:27

звонок по логам был
DIALSTATUS=NOANSWER
но не отвечен

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

Re: Не проходят звонки между внутренними номерами

Сообщение telizynav » 05 апр 2018, 10:49

41, 44 - проблемные, 30 - нормальный.
sip show peers
41/41 192.168.1.100 D No No A 56621 OK (108 ms)
44/44 192.168.1.241 D No No A 5060 OK (91 ms)
30/30 192.168.1.3 D No No A 5069 OK (40 ms)


[Показать] Спойлер:
Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [41@from-internal:1] Set("SIP/44-0000000e", "__RINGTIMER=15") in new stack
-- Executing [41@from-internal:2] Macro("SIP/44-0000000e", "exten-vm,novm,41,0,0,0") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/44-0000000e", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/44-0000000e", "TOUCH_MONITOR=1522910598.14") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/44-0000000e", "AMPUSER=44") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/44-0000000e", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/44-0000000e", "1?Set(REALCALLERIDNUM=44)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/44-0000000e", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/44-0000000e", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/44-0000000e", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/44-0000000e", "1?report") in new stack
-- Goto (macro-user-callerid,s,14)
-- Executing [s@macro-user-callerid:14] NoOp("SIP/44-0000000e", "Macro Depth is 2") in new stack
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/44-0000000e", "1?report2:macroerror") in new stack
-- Goto (macro-user-callerid,s,16)
-- Executing [s@macro-user-callerid:16] GotoIf("SIP/44-0000000e", "0?continue") in new stack
-- Executing [s@macro-user-callerid:17] Set("SIP/44-0000000e", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:18] GotoIf("SIP/44-0000000e", "1?continue") in new stack
-- Goto (macro-user-callerid,s,34)
-- Executing [s@macro-user-callerid:34] Set("SIP/44-0000000e", "CALLERID(number)=44") in new stack
-- Executing [s@macro-user-callerid:35] Set("SIP/44-0000000e", "CALLERID(name)=") in new stack
-- Executing [s@macro-user-callerid:36] GotoIf("SIP/44-0000000e", "1?cnum") in new stack
-- Goto (macro-user-callerid,s,38)
-- Executing [s@macro-user-callerid:38] Set("SIP/44-0000000e", "CDR(cnum)=44") in new stack
-- Executing [s@macro-user-callerid:39] Set("SIP/44-0000000e", "CHANNEL(language)=ru") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/44-0000000e", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/44-0000000e", "__EXTTOCALL=41") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/44-0000000e", "__PICKUPMARK=41") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/44-0000000e", "RT=") in new stack
-- Executing [s@macro-exten-vm:6] Gosub("SIP/44-0000000e", "sub-record-check,s,1(exten,41,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("SIP/44-0000000e", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("SIP/44-0000000e", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("SIP/44-0000000e", "NOW=1522910598") in new stack
-- Executing [s@sub-record-check:4] Set("SIP/44-0000000e", "__DAY=05") in new stack
-- Executing [s@sub-record-check:5] Set("SIP/44-0000000e", "__MONTH=04") in new stack
-- Executing [s@sub-record-check:6] Set("SIP/44-0000000e", "__YEAR=2018") in new stack
-- Executing [s@sub-record-check:7] Set("SIP/44-0000000e", "__TIMESTR=20180405-094318") in new stack
-- Executing [s@sub-record-check:8] Set("SIP/44-0000000e", "__FROMEXTEN=44") in new stack
-- Executing [s@sub-record-check:9] Set("SIP/44-0000000e", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("SIP/44-0000000e", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("SIP/44-0000000e", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("SIP/44-0000000e", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("SIP/44-0000000e", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("SIP/44-0000000e", "5?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("SIP/44-0000000e", "1?sub-record-check,exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] NoOp("SIP/44-0000000e", "Exten Recording Check between 44 and 41") in new stack
-- Executing [exten@sub-record-check:2] Set("SIP/44-0000000e", "CALLTYPE=internal") in new stack
-- Executing [exten@sub-record-check:3] ExecIf("SIP/44-0000000e", "0?Set(CALLTYPE=)") in new stack
-- Executing [exten@sub-record-check:4] Set("SIP/44-0000000e", "CALLEE=dontcare") in new stack
-- Executing [exten@sub-record-check:5] ExecIf("SIP/44-0000000e", "0?Set(CALLEE=dontcare)") in new stack
-- Executing [exten@sub-record-check:6] GotoIf("SIP/44-0000000e", "0?callee") in new stack
-- Executing [exten@sub-record-check:7] GotoIf("SIP/44-0000000e", "1?caller") in new stack
-- Goto (sub-record-check,exten,13)
-- Executing [exten@sub-record-check:13] Set("SIP/44-0000000e", "RECMODE=") in new stack
-- Executing [exten@sub-record-check:14] ExecIf("SIP/44-0000000e", "1?Set(RECMODE=dontcare)") in new stack
-- Executing [exten@sub-record-check:15] ExecIf("SIP/44-0000000e", "1?Set(RECMODE=dontcare)") in new stack
-- Executing [exten@sub-record-check:16] Gosub("SIP/44-0000000e", "recordcheck,1(dontcare,internal,41)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("SIP/44-0000000e", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("SIP/44-0000000e", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("SIP/44-0000000e", "") in new stack
-- Executing [exten@sub-record-check:17] Return("SIP/44-0000000e", "") in new stack
-- Executing [s@macro-exten-vm:7] GotoIf("SIP/44-0000000e", "1?macrodial") in new stack
-- Goto (macro-exten-vm,s,13)
-- Executing [s@macro-exten-vm:13] GosubIf("SIP/44-0000000e", "0?clrheader,1()") in new stack
-- Executing [s@macro-exten-vm:14] Macro("SIP/44-0000000e", "dial-one,,Ttr,41") in new stack
-- Executing [s@macro-dial-one:1] Set("SIP/44-0000000e", "DEXTEN=41") in new stack
-- Executing [s@macro-dial-one:2] ExecIf("SIP/44-0000000e", "0?Set(__EXTTOCALL=41)") in new stack
-- Executing [s@macro-dial-one:3] Set("SIP/44-0000000e", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("SIP/44-0000000e", "0?screen,1()") in new stack
-- Executing [s@macro-dial-one:5] GosubIf("SIP/44-0000000e", "0?cf,1()") in new stack
-- Executing [s@macro-dial-one:6] GotoIf("SIP/44-0000000e", "1?skip1") in new stack
-- Goto (macro-dial-one,s,9)
-- Executing [s@macro-dial-one:9] GotoIf("SIP/44-0000000e", "0?nodial") in new stack
-- Executing [s@macro-dial-one:10] GotoIf("SIP/44-0000000e", "0?continue") in new stack
-- Executing [s@macro-dial-one:11] Set("SIP/44-0000000e", "EXTHASCW=ENABLED") in new stack
-- Executing [s@macro-dial-one:12] GotoIf("SIP/44-0000000e", "0?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,24)
-- Executing [s@macro-dial-one:24] GotoIf("SIP/44-0000000e", "0?next3:continue") in new stack
-- Goto (macro-dial-one,s,26)
-- Executing [s@macro-dial-one:26] GotoIf("SIP/44-0000000e", "0?nodial") in new stack
-- Executing [s@macro-dial-one:27] GosubIf("SIP/44-0000000e", "1?dstring,1():dlocal,1()") in new stack
-- Executing [dstring@macro-dial-one:1] Set("SIP/44-0000000e", "DSTRING=") in new stack
-- Executing [dstring@macro-dial-one:2] Set("SIP/44-0000000e", "DEVICES=") in new stack
-- Executing [dstring@macro-dial-one:3] ExecIf("SIP/44-0000000e", "1?Return()") in new stack
-- Executing [s@macro-dial-one:28] GotoIf("SIP/44-0000000e", "1?nodial") in new stack
-- Goto (macro-dial-one,s,57)
-- Executing [s@macro-dial-one:57] NoOp("SIP/44-0000000e", "") in new stack
-- Executing [s@macro-dial-one:58] ExecIf("SIP/44-0000000e", "1?Set(DIALSTATUS=NOANSWER)") in new stack
-- Executing [s@macro-dial-one:59] NoOp("SIP/44-0000000e", "Returned from dial-one with nothing to call and DIALSTATUS: NOANSWER") in new stack
-- Executing [s@macro-dial-one:60] MacroExit("SIP/44-0000000e", "") in new stack
-- Executing [s@macro-exten-vm:15] Set("SIP/44-0000000e", "SV_DIALSTATUS=NOANSWER") in new stack
-- Executing [s@macro-exten-vm:16] GosubIf("SIP/44-0000000e", "0?docfu,1()") in new stack
-- Executing [s@macro-exten-vm:17] GosubIf("SIP/44-0000000e", "0?docfb,1()") in new stack
-- Executing [s@macro-exten-vm:18] Set("SIP/44-0000000e", "DIALSTATUS=NOANSWER") in new stack
-- Executing [s@macro-exten-vm:19] ExecIf("SIP/44-0000000e", "0?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:20] GotoIf("SIP/44-0000000e", "1?s-NOANSWER,1") in new stack
-- Goto (macro-exten-vm,s-NOANSWER,1)
-- Executing [s-NOANSWER@macro-exten-vm:1] GotoIf("SIP/44-0000000e", "0?exit,1") in new stack
-- Executing [s-NOANSWER@macro-exten-vm:2] PlayTones("SIP/44-0000000e", "congestion") in new stack
-- Executing [s-NOANSWER@macro-exten-vm:3] Congestion("SIP/44-0000000e", "10") in new stack
== Spawn extension (macro-exten-vm, s-NOANSWER, 3) exited non-zero on 'SIP/44-0000000e' in macro 'exten-vm'
== Spawn extension (from-internal, 41, 2) exited non-zero on 'SIP/44-0000000e'
-- Executing [h@from-internal:1] Macro("SIP/44-0000000e", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/44-0000000e", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("SIP/44-0000000e", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("SIP/44-0000000e", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/44-0000000e' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/44-0000000e'


[Показать] Спойлер:
Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [30@from-internal:1] Set("SIP/44-0000000f", "__RINGTIMER=15") in new stack
-- Executing [30@from-internal:2] Macro("SIP/44-0000000f", "exten-vm,novm,30,0,0,0") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/44-0000000f", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/44-0000000f", "TOUCH_MONITOR=1522910773.15") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/44-0000000f", "AMPUSER=44") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/44-0000000f", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/44-0000000f", "1?Set(REALCALLERIDNUM=44)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/44-0000000f", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/44-0000000f", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/44-0000000f", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/44-0000000f", "1?report") in new stack
-- Goto (macro-user-callerid,s,14)
-- Executing [s@macro-user-callerid:14] NoOp("SIP/44-0000000f", "Macro Depth is 2") in new stack
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/44-0000000f", "1?report2:macroerror") in new stack
-- Goto (macro-user-callerid,s,16)
-- Executing [s@macro-user-callerid:16] GotoIf("SIP/44-0000000f", "0?continue") in new stack
-- Executing [s@macro-user-callerid:17] Set("SIP/44-0000000f", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:18] GotoIf("SIP/44-0000000f", "1?continue") in new stack
-- Goto (macro-user-callerid,s,34)
-- Executing [s@macro-user-callerid:34] Set("SIP/44-0000000f", "CALLERID(number)=44") in new stack
-- Executing [s@macro-user-callerid:35] Set("SIP/44-0000000f", "CALLERID(name)=") in new stack
-- Executing [s@macro-user-callerid:36] GotoIf("SIP/44-0000000f", "1?cnum") in new stack
-- Goto (macro-user-callerid,s,38)
-- Executing [s@macro-user-callerid:38] Set("SIP/44-0000000f", "CDR(cnum)=44") in new stack
-- Executing [s@macro-user-callerid:39] Set("SIP/44-0000000f", "CHANNEL(language)=ru") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/44-0000000f", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/44-0000000f", "__EXTTOCALL=30") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/44-0000000f", "__PICKUPMARK=30") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/44-0000000f", "RT=") in new stack
-- Executing [s@macro-exten-vm:6] Gosub("SIP/44-0000000f", "sub-record-check,s,1(exten,30,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("SIP/44-0000000f", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("SIP/44-0000000f", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("SIP/44-0000000f", "NOW=1522910773") in new stack
-- Executing [s@sub-record-check:4] Set("SIP/44-0000000f", "__DAY=05") in new stack
-- Executing [s@sub-record-check:5] Set("SIP/44-0000000f", "__MONTH=04") in new stack
-- Executing [s@sub-record-check:6] Set("SIP/44-0000000f", "__YEAR=2018") in new stack
-- Executing [s@sub-record-check:7] Set("SIP/44-0000000f", "__TIMESTR=20180405-094613") in new stack
-- Executing [s@sub-record-check:8] Set("SIP/44-0000000f", "__FROMEXTEN=44") in new stack
-- Executing [s@sub-record-check:9] Set("SIP/44-0000000f", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("SIP/44-0000000f", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("SIP/44-0000000f", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("SIP/44-0000000f", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("SIP/44-0000000f", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("SIP/44-0000000f", "5?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("SIP/44-0000000f", "1?sub-record-check,exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] NoOp("SIP/44-0000000f", "Exten Recording Check between 44 and 30") in new stack
-- Executing [exten@sub-record-check:2] Set("SIP/44-0000000f", "CALLTYPE=internal") in new stack
-- Executing [exten@sub-record-check:3] ExecIf("SIP/44-0000000f", "0?Set(CALLTYPE=)") in new stack
-- Executing [exten@sub-record-check:4] Set("SIP/44-0000000f", "CALLEE=dontcare") in new stack
-- Executing [exten@sub-record-check:5] ExecIf("SIP/44-0000000f", "0?Set(CALLEE=dontcare)") in new stack
-- Executing [exten@sub-record-check:6] GotoIf("SIP/44-0000000f", "0?callee") in new stack
-- Executing [exten@sub-record-check:7] GotoIf("SIP/44-0000000f", "1?caller") in new stack
-- Goto (sub-record-check,exten,13)
-- Executing [exten@sub-record-check:13] Set("SIP/44-0000000f", "RECMODE=") in new stack
-- Executing [exten@sub-record-check:14] ExecIf("SIP/44-0000000f", "1?Set(RECMODE=dontcare)") in new stack
-- Executing [exten@sub-record-check:15] ExecIf("SIP/44-0000000f", "1?Set(RECMODE=dontcare)") in new stack
-- Executing [exten@sub-record-check:16] Gosub("SIP/44-0000000f", "recordcheck,1(dontcare,internal,30)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("SIP/44-0000000f", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("SIP/44-0000000f", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("SIP/44-0000000f", "") in new stack
-- Executing [exten@sub-record-check:17] Return("SIP/44-0000000f", "") in new stack
-- Executing [s@macro-exten-vm:7] GotoIf("SIP/44-0000000f", "1?macrodial") in new stack
-- Goto (macro-exten-vm,s,13)
-- Executing [s@macro-exten-vm:13] GosubIf("SIP/44-0000000f", "0?clrheader,1()") in new stack
-- Executing [s@macro-exten-vm:14] Macro("SIP/44-0000000f", "dial-one,,Ttr,30") in new stack
-- Executing [s@macro-dial-one:1] Set("SIP/44-0000000f", "DEXTEN=30") in new stack
-- Executing [s@macro-dial-one:2] ExecIf("SIP/44-0000000f", "0?Set(__EXTTOCALL=30)") in new stack
-- Executing [s@macro-dial-one:3] Set("SIP/44-0000000f", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("SIP/44-0000000f", "0?screen,1()") in new stack
-- Executing [s@macro-dial-one:5] GosubIf("SIP/44-0000000f", "0?cf,1()") in new stack
-- Executing [s@macro-dial-one:6] GotoIf("SIP/44-0000000f", "1?skip1") in new stack
-- Goto (macro-dial-one,s,9)
-- Executing [s@macro-dial-one:9] GotoIf("SIP/44-0000000f", "0?nodial") in new stack
-- Executing [s@macro-dial-one:10] GotoIf("SIP/44-0000000f", "0?continue") in new stack
-- Executing [s@macro-dial-one:11] Set("SIP/44-0000000f", "EXTHASCW=") in new stack
-- Executing [s@macro-dial-one:12] GotoIf("SIP/44-0000000f", "1?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,13)
-- Executing [s@macro-dial-one:13] GotoIf("SIP/44-0000000f", "0?docfu:skip3") in new stack
-- Goto (macro-dial-one,s,17)
-- Executing [s@macro-dial-one:17] GotoIf("SIP/44-0000000f", "1?next2:continue") in new stack
-- Goto (macro-dial-one,s,18)
-- Executing [s@macro-dial-one:18] GotoIf("SIP/44-0000000f", "1?continue") in new stack
-- Goto (macro-dial-one,s,26)
-- Executing [s@macro-dial-one:26] GotoIf("SIP/44-0000000f", "0?nodial") in new stack
-- Executing [s@macro-dial-one:27] GosubIf("SIP/44-0000000f", "1?dstring,1():dlocal,1()") in new stack
-- Executing [dstring@macro-dial-one:1] Set("SIP/44-0000000f", "DSTRING=") in new stack
-- Executing [dstring@macro-dial-one:2] Set("SIP/44-0000000f", "DEVICES=30") in new stack
-- Executing [dstring@macro-dial-one:3] ExecIf("SIP/44-0000000f", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:4] ExecIf("SIP/44-0000000f", "0?Set(DEVICES=0)") in new stack
-- Executing [dstring@macro-dial-one:5] Set("SIP/44-0000000f", "LOOPCNT=1") in new stack
-- Executing [dstring@macro-dial-one:6] Set("SIP/44-0000000f", "ITER=1") in new stack
-- Executing [dstring@macro-dial-one:7] Set("SIP/44-0000000f", "THISDIAL=SIP/30") in new stack
-- Executing [dstring@macro-dial-one:8] GosubIf("SIP/44-0000000f", "1?zap2dahdi,1()") in new stack
-- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/44-0000000f", "0?Return()") in new stack
-- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/44-0000000f", "NEWDIAL=") in new stack
-- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/44-0000000f", "LOOPCNT2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/44-0000000f", "ITER2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/44-0000000f", "THISPART2=SIP/30") in new stack
-- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/44-0000000f", "0?Set(THISPART2=DAHDI/30)") in new stack
-- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/44-0000000f", "NEWDIAL=SIP/30&") in new stack
-- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/44-0000000f", "ITER2=2") in new stack
-- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/44-0000000f", "0?begin2") in new stack
-- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/44-0000000f", "THISDIAL=SIP/30") in new stack
-- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/44-0000000f", "") in new stack
-- Executing [dstring@macro-dial-one:9] GotoIf("SIP/44-0000000f", "1?docheck") in new stack
-- Goto (macro-dial-one,dstring,14)
-- Executing [dstring@macro-dial-one:14] GotoIf("SIP/44-0000000f", "0?skipset") in new stack
-- Executing [dstring@macro-dial-one:15] Set("SIP/44-0000000f", "DSTRING=SIP/30&") in new stack
-- Executing [dstring@macro-dial-one:16] Set("SIP/44-0000000f", "ITER=2") in new stack
-- Executing [dstring@macro-dial-one:17] GotoIf("SIP/44-0000000f", "0?begin") in new stack
-- Executing [dstring@macro-dial-one:18] ExecIf("SIP/44-0000000f", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:19] Set("SIP/44-0000000f", "DSTRING=SIP/30") in new stack
-- Executing [dstring@macro-dial-one:20] Return("SIP/44-0000000f", "") in new stack
-- Executing [s@macro-dial-one:28] GotoIf("SIP/44-0000000f", "0?nodial") in new stack
-- Executing [s@macro-dial-one:29] GotoIf("SIP/44-0000000f", "0?skiptrace") in new stack
-- Executing [s@macro-dial-one:30] GosubIf("SIP/44-0000000f", "1?ctset,1():ctclear,1()") in new stack
-- Executing [ctset@macro-dial-one:1] Set("SIP/44-0000000f", "DB(CALLTRACE/30)=44") in new stack
-- Executing [ctset@macro-dial-one:2] Return("SIP/44-0000000f", "") in new stack
-- Executing [s@macro-dial-one:31] Set("SIP/44-0000000f", "D_OPTIONS=Ttr") in new stack
-- Executing [s@macro-dial-one:32] NoOp("SIP/44-0000000f", "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
-- Executing [s@macro-dial-one:33] ExecIf("SIP/44-0000000f", "0?Set(ALERT_INFO=)") in new stack
-- Executing [s@macro-dial-one:34] ExecIf("SIP/44-0000000f", "0?Set(ALERT_INFO=)") in new stack
-- Executing [s@macro-dial-one:35] ExecIf("SIP/44-0000000f", "0?Set(ALERT_INFO=)") in new stack
-- Executing [s@macro-dial-one:36] ExecIf("SIP/44-0000000f", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
-- Executing [s@macro-dial-one:37] ExecIf("SIP/44-0000000f", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
-- Executing [s@macro-dial-one:38] GosubIf("SIP/44-0000000f", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
-- Executing [s@macro-dial-one:39] ExecIf("SIP/44-0000000f", "0?Set(CHANNEL(musicclass)=)") in new stack
-- Executing [s@macro-dial-one:40] GosubIf("SIP/44-0000000f", "0?qwait,1()") in new stack
-- Executing [s@macro-dial-one:41] Set("SIP/44-0000000f", "__CWIGNORE=") in new stack
-- Executing [s@macro-dial-one:42] Set("SIP/44-0000000f", "__KEEPCID=TRUE") in new stack
-- Executing [s@macro-dial-one:43] GotoIf("SIP/44-0000000f", "0?usegoto,1") in new stack
-- Executing [s@macro-dial-one:44] GotoIf("SIP/44-0000000f", "1?godial") in new stack
-- Goto (macro-dial-one,s,49)
-- Executing [s@macro-dial-one:49] Macro("SIP/44-0000000f", "dialout-one-predial-hook,") in new stack
-- Executing [s@macro-dialout-one-predial-hook:1] MacroExit("SIP/44-0000000f", "") in new stack
-- Executing [s@macro-dial-one:50] ExecIf("SIP/44-0000000f", "0?Set(D_OPTIONS=trI)") in new stack
-- Executing [s@macro-dial-one:51] NoOp("SIP/44-0000000f", "") in new stack
-- Executing [s@macro-dial-one:52] Dial("SIP/44-0000000f", "SIP/30,,Ttrb(func-apply-sipheaders^s^1)") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- SIP/30-00000010 Internal Gosub(func-apply-sipheaders,s,1) start
-- Executing [s@func-apply-sipheaders:1] NoOp("SIP/30-00000010", "Applying SIP Headers to channel") in new stack
-- Executing [s@func-apply-sipheaders:2] Set("SIP/30-00000010", "SIPHEADERKEYS=") in new stack
-- Executing [s@func-apply-sipheaders:3] While("SIP/30-00000010", "0") in new stack
-- Jumping to priority 6
-- Executing [s@func-apply-sipheaders:7] Return("SIP/30-00000010", "") in new stack
== Spawn extension (from-internal, 30, 1) exited non-zero on 'SIP/30-00000010'
-- SIP/30-00000010 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
-- Called SIP/30
-- SIP/30-00000010 is ringing
== Spawn extension (macro-dial-one, s, 52) exited non-zero on 'SIP/44-0000000f' in macro 'dial-one'
== Spawn extension (macro-exten-vm, s, 14) exited non-zero on 'SIP/44-0000000f' in macro 'exten-vm'
== Spawn extension (from-internal, 30, 2) exited non-zero on 'SIP/44-0000000f'
-- Executing [h@from-internal:1] Macro("SIP/44-0000000f", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/44-0000000f", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("SIP/44-0000000f", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("SIP/44-0000000f", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/44-0000000f' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/44-0000000f'
telizynav
 
Сообщений: 7
Зарегистрирован: 05 апр 2018, 01:36

Re: Не проходят звонки между внутренними номерами

Сообщение ded » 05 апр 2018, 12:03

Видна проблема, но не ясна её причина: на 28-м шаге выполнения макроса macro-dial-one выполняется проверка, результат которой - 1 ведёт на исполнение sub - nodial, то есть не звонить.
-- Executing [s@macro-dial-one:28] GotoIf("SIP/44-0000000e", "1?nodial") in new stack
-- Goto (macro-dial-one,s,57)

На 28-м шаге проверяется длина переменной ${DSTRING}, если она равна нулю - то уходим на nodial.
Код: выделить все
28. GotoIf($[${LEN(${DSTRING})}=0]?nodial)

Игрались с Distinctive ring?
ded
 
Сообщений: 13174
Зарегистрирован: 26 авг 2010, 19:00

Re: Не проходят звонки между внутренними номерами

Сообщение telizynav » 05 апр 2018, 14:48

нет, не игрался.
telizynav
 
Сообщений: 7
Зарегистрирован: 05 апр 2018, 01:36

Re: Не проходят звонки между внутренними номерами

Сообщение ded » 05 апр 2018, 15:37

Ну копайте дальше, направление указано.
Перед шагом
GotoIf($[${LEN(${DSTRING})}=0]?nodial)
поставьте проверку
Код: выделить все
NoOp( -------------------------- Distinctive ring is ${DSTRING}] ------------- )
да и во всех этапах nacro-dial-one можно напихать, не испортите этим ничего. Будете вникать, может что-то прояснится.
ded
 
Сообщений: 13174
Зарегистрирован: 26 авг 2010, 19:00

Re: Не проходят звонки между внутренними номерами

Сообщение telizynav » 05 апр 2018, 18:01

Для работающего номера так:
Executing [s@macro-dial-one:28] NoOp("SIP/41-00000021", " -------------------------- Distinctive ring is SIP/30 ------------- ") in new stack

Его описание выглядит так:
exten => 30,hint,SIP/30[/color],CustomPresence:30

Для неработающего -
Executing [s@macro-dial-one:28] NoOp("SIP/41-00000023", " -------------------------- Distinctive ring is ------------- ") in new stack

Его описание выглядит так:
exten => 44,hint,,CustomPresence:44

Пробовал сделать
exten => 44,hint,SIP/44,CustomPresence:44

Не помогает.
telizynav
 
Сообщений: 7
Зарегистрирован: 05 апр 2018, 01:36

След.

Вернуться в Вопросы новичков

Кто сейчас на форуме

Сейчас этот форум просматривают: Bogdanvxu и гости: 10

© 2008 — 2018 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH