Страница 1 из 1

Номер недоступен

Добавлено: 13 июн 2015, 22:46
tranger
Есть 2 трубки, одна на андроиде, другая cisco ata 186
Если звонить с любой из них на вторую, то слышу, что либо номер занят, либо недоступен
Сервак имеет внешний IP, трубки находятся за НАТом...
Стоит Elastix TM
Как исправить?

Re: Номер недоступен

Добавлено: 14 июн 2015, 09:50
april22
исправить руками .
выяснить при помощи консоли и логов .
хрустальные шары сейчас не доступны .

Re: Номер недоступен

Добавлено: 14 июн 2015, 11:01
tranger
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: sip show peers показывает:
Name/username Host Dyn Forcerport Comedia ACL Port Status Description Realtime
108/108 (Unspecified) D Yes Yes 0 UNREACHABLE Cached RT
boris_homeIM_sip.domain.ru (Unspecified) D Yes Yes A 0 UNREACHABLE Cached RT
boris_home_sip.domain.ru 127.0.0.1 D Yes Yes A 5060 UNREACHABLE Cached RT
test123IM_sip.domain.ru (Unspecified) D Yes Yes A 0 UNREACHABLE Cached RT
test123_sip.domain.ru (Unspecified) D Yes Yes A 0 UNREACHABLE Cached RT
7 sip peers [Monitored: 0 online, 7 offline Unmonitored: 0 online, 0 offline]
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: Лог:
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [110@sip.domain.ru-from-internal:1] Set("SIP/test123_sip.domain.ru-00000003", "sip.domain.ru_RINGTIMER=15") in new stack
-- Executing [110@sip.domain.ru-from-internal:2] Macro("SIP/test123_sip.domain.ru-00000003", "sip.domain.ru-exten-vm,110,110") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:1] Macro("SIP/test123_sip.domain.ru-00000003", "sip.domain.ru-user-callerid,") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:1] Set("SIP/test123_sip.domain.ru-00000003", "EXTUSER=108") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:2] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?report") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:3] ExecIf("SIP/test123_sip.domain.ru-00000003", "1?Set(REALCALLERIDNUM=108)") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:4] Set("SIP/test123_sip.domain.ru-00000003", "EXTUSER=108") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:5] Set("SIP/test123_sip.domain.ru-00000003", "EXTUSERCIDNAME=test123") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:6] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?report") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:7] Set("SIP/test123_sip.domain.ru-00000003", "EXTUSERCID=108") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:8] Set("SIP/test123_sip.domain.ru-00000003", "CALLERID(all)="test123" <108>") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:9] ExecIf("SIP/test123_sip.domain.ru-00000003", "1?Set(CHANNEL(language)=en)") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:10] ExecIf("SIP/test123_sip.domain.ru-00000003", "1?Set(CHANNEL(language)=ru)") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:11] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?continue") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:12] Set("SIP/test123_sip.domain.ru-00000003", "__TTL=64") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:13] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?continue") in new stack
-- Goto (macro-sip.domain.ru-user-callerid,s,20)
-- Executing [s@macro-sip.domain.ru-user-callerid:20] Set("SIP/test123_sip.domain.ru-00000003", "CALLERID(number)=108") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:21] Set("SIP/test123_sip.domain.ru-00000003", "CALLERID(name)=test123") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:22] NoOp("SIP/test123_sip.domain.ru-00000003", "Using CallerID "test123" <108>") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:2] Set("SIP/test123_sip.domain.ru-00000003", "RingGroupMethod=none") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:3] Set("SIP/test123_sip.domain.ru-00000003", "VMBOX=110") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:4] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?setextcall") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:5] ExecIf("SIP/test123_sip.domain.ru-00000003", "0?Set(VMBOX=novm)") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:6] Set("SIP/test123_sip.domain.ru-00000003", "__EXTTOCALL=110") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:7] Set("SIP/test123_sip.domain.ru-00000003", "__PICKUPMARK=110") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:8] Set("SIP/test123_sip.domain.ru-00000003", "CFUEXT=") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:9] Set("SIP/test123_sip.domain.ru-00000003", "CFBEXT=") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:10] Set("SIP/test123_sip.domain.ru-00000003", "RT=15") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:11] Macro("SIP/test123_sip.domain.ru-00000003", "sip.domain.ru-record-enable,110,IN") in new stack
-- Executing [s@macro-sip.domain.ru-record-enable:1] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?start") in new stack
-- Goto (macro-sip.domain.ru-record-enable,s,3)
-- Executing [s@macro-sip.domain.ru-record-enable:3] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?check") in new stack
-- Goto (macro-sip.domain.ru-record-enable,s,5)
-- Executing [s@macro-sip.domain.ru-record-enable:5] ExecIf("SIP/test123_sip.domain.ru-00000003", "0?MacroExit()") in new stack
-- Executing [s@macro-sip.domain.ru-record-enable:6] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?Group:OUT") in new stack
-- Goto (macro-sip.domain.ru-record-enable,s,16)
-- Executing [s@macro-sip.domain.ru-record-enable:16] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?IN") in new stack
-- Goto (macro-sip.domain.ru-record-enable,s,21)
-- Executing [s@macro-sip.domain.ru-record-enable:21] ExecIf("SIP/test123_sip.domain.ru-00000003", "1?MacroExit()") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:12] Macro("SIP/test123_sip.domain.ru-00000003", "sip.domain.ru-dial-one,15,tr,110") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:1] Set("SIP/test123_sip.domain.ru-00000003", "DEXTEN=110") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:2] Set("SIP/test123_sip.domain.ru-00000003", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:3] GosubIf("SIP/test123_sip.domain.ru-00000003", "0?screen,1") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:4] GosubIf("SIP/test123_sip.domain.ru-00000003", "0?cf,1") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:5] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?skip1") in new stack
-- Goto (macro-sip.domain.ru-dial-one,s,8)
-- Executing [s@macro-sip.domain.ru-dial-one:8] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?nodial") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:9] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?continue") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:10] Set("SIP/test123_sip.domain.ru-00000003", "EXTHASCW=") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:11] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?next1:cwinusebusy") in new stack
-- Goto (macro-sip.domain.ru-dial-one,s,12)
-- Executing [s@macro-sip.domain.ru-dial-one:12] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?docfu:skip3") in new stack
-- Goto (macro-sip.domain.ru-dial-one,s,16)
-- Executing [s@macro-sip.domain.ru-dial-one:16] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?next2:continue") in new stack
-- Goto (macro-sip.domain.ru-dial-one,s,17)
-- Executing [s@macro-sip.domain.ru-dial-one:17] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?continue") in new stack
-- Goto (macro-sip.domain.ru-dial-one,s,25)
-- Executing [s@macro-sip.domain.ru-dial-one:25] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?nodial") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:26] GosubIf("SIP/test123_sip.domain.ru-00000003", "1?dstring,1:dlocal,1") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:1] Set("SIP/test123_sip.domain.ru-00000003", "DSTRING=") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:2] Set("SIP/test123_sip.domain.ru-00000003", "DEVICES=test_sip.domain.ru&testIM_sip.domain.ru") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:3] ExecIf("SIP/test123_sip.domain.ru-00000003", "0?Return()") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:4] ExecIf("SIP/test123_sip.domain.ru-00000003", "0?Set(DEVICES=est_sip.domain.ru&testIM_sip.domain.ru)") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:5] Set("SIP/test123_sip.domain.ru-00000003", "LOOPCNT=2") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:6] Set("SIP/test123_sip.domain.ru-00000003", "ITER=1") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:7] Set("SIP/test123_sip.domain.ru-00000003", "THISDIAL=SIP/test_sip.domain.ru") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:8] GosubIf("SIP/test123_sip.domain.ru-00000003", "1?zap2dahdi,1") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:1] ExecIf("SIP/test123_sip.domain.ru-00000003", "0?Return()") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:2] Set("SIP/test123_sip.domain.ru-00000003", "NEWDIAL=") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:3] Set("SIP/test123_sip.domain.ru-00000003", "LOOPCNT2=1") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:4] Set("SIP/test123_sip.domain.ru-00000003", "ITER2=1") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:5] Set("SIP/test123_sip.domain.ru-00000003", "THISPART2=SIP/test_sip.domain.ru") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:6] ExecIf("SIP/test123_sip.domain.ru-00000003", "0?Set(THISPART2=DAHDI/test_sip.domain.ru)") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:7] Set("SIP/test123_sip.domain.ru-00000003", "NEWDIAL=SIP/test_sip.domain.ru&") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:8] Set("SIP/test123_sip.domain.ru-00000003", "ITER2=2") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:9] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?begin2") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:10] Set("SIP/test123_sip.domain.ru-00000003", "THISDIAL=SIP/test_sip.domain.ru") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:11] Return("SIP/test123_sip.domain.ru-00000003", "") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:9] Set("SIP/test123_sip.domain.ru-00000003", "DSTRING=SIP/test_sip.domain.ru&") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:10] Set("SIP/test123_sip.domain.ru-00000003", "ITER=2") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:11] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?begin") in new stack
-- Goto (macro-sip.domain.ru-dial-one,dstring,7)
-- Executing [dstring@macro-sip.domain.ru-dial-one:7] Set("SIP/test123_sip.domain.ru-00000003", "THISDIAL=SIP/testIM_sip.domain.ru") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:8] GosubIf("SIP/test123_sip.domain.ru-00000003", "1?zap2dahdi,1") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:1] ExecIf("SIP/test123_sip.domain.ru-00000003", "0?Return()") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:2] Set("SIP/test123_sip.domain.ru-00000003", "NEWDIAL=") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:3] Set("SIP/test123_sip.domain.ru-00000003", "LOOPCNT2=1") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:4] Set("SIP/test123_sip.domain.ru-00000003", "ITER2=1") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:5] Set("SIP/test123_sip.domain.ru-00000003", "THISPART2=SIP/testIM_sip.domain.ru") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:6] ExecIf("SIP/test123_sip.domain.ru-00000003", "0?Set(THISPART2=DAHDI/testIM_sip.domain.ru)") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:7] Set("SIP/test123_sip.domain.ru-00000003", "NEWDIAL=SIP/testIM_sip.domain.ru&") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:8] Set("SIP/test123_sip.domain.ru-00000003", "ITER2=2") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:9] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?begin2") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:10] Set("SIP/test123_sip.domain.ru-00000003", "THISDIAL=SIP/testIM_sip.domain.ru") in new stack
-- Executing [zap2dahdi@macro-sip.domain.ru-dial-one:11] Return("SIP/test123_sip.domain.ru-00000003", "") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:9] Set("SIP/test123_sip.domain.ru-00000003", "DSTRING=SIP/test_sip.domain.ru&SIP/testIM_sip.domain.ru&") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:10] Set("SIP/test123_sip.domain.ru-00000003", "ITER=3") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:11] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?begin") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:12] Set("SIP/test123_sip.domain.ru-00000003", "DSTRING=SIP/test_sip.domain.ru&SIP/testIM_sip.domain.ru") in new stack
-- Executing [dstring@macro-sip.domain.ru-dial-one:13] Return("SIP/test123_sip.domain.ru-00000003", "") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:27] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?nodial") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:28] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?skiptrace") in new stack
-- Goto (macro-sip.domain.ru-dial-one,s,30)
-- Executing [s@macro-sip.domain.ru-dial-one:30] Set("SIP/test123_sip.domain.ru-00000003", "D_OPTIONS=tr") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:31] ExecIf("SIP/test123_sip.domain.ru-00000003", "0?SIPAddHeader(Alert-Info: )") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:32] ExecIf("SIP/test123_sip.domain.ru-00000003", "0?SIPAddHeader()") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:33] ExecIf("SIP/test123_sip.domain.ru-00000003", "0?Set(CHANNEL(musicclass)=)") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:34] GosubIf("SIP/test123_sip.domain.ru-00000003", "0?qwait,1") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:35] Set("SIP/test123_sip.domain.ru-00000003", "__CWIGNORE=") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:36] Set("SIP/test123_sip.domain.ru-00000003", "__KEEPCID=TRUE") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:37] Dial("SIP/test123_sip.domain.ru-00000003", "SIP/test_sip.domain.ru&SIP/testIM_sip.domain.ru,15,tr") in new stack
== Everyone is busy/congested at this time (2:0/0/2)
-- Executing [s@macro-sip.domain.ru-dial-one:38] ExecIf("SIP/test123_sip.domain.ru-00000003", "0?Set(DIALSTATUS=)") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:39] GosubIf("SIP/test123_sip.domain.ru-00000003", "0?s-CHANUNAVAIL,1") in new stack
-- Executing [s@macro-sip.domain.ru-dial-one:40] MacroExit("SIP/test123_sip.domain.ru-00000003", "") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:13] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?exit") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:14] Set("SIP/test123_sip.domain.ru-00000003", "SV_DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:15] GosubIf("SIP/test123_sip.domain.ru-00000003", "0?docfu,1") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:16] GosubIf("SIP/test123_sip.domain.ru-00000003", "0?docfb,1") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:17] Set("SIP/test123_sip.domain.ru-00000003", "DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:18] NoOp("SIP/test123_sip.domain.ru-00000003", "Voicemail is '110'") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:19] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?s-CHANUNAVAIL,1") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:20] NoOp("SIP/test123_sip.domain.ru-00000003", "Sending to Voicemail box 110") in new stack
-- Executing [s@macro-sip.domain.ru-exten-vm:21] Macro("SIP/test123_sip.domain.ru-00000003", "sip.domain.ru-vm,110,CHANUNAVAIL,") in new stack
-- Executing [s@macro-sip.domain.ru-vm:1] ExecIf("SIP/test123_sip.domain.ru-00000003", "0?Goto(exit-NOVM,1)") in new stack
-- Executing [s@macro-sip.domain.ru-vm:2] Macro("SIP/test123_sip.domain.ru-00000003", "sip.domain.ru-user-callerid,SKIPTTL") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:1] Set("SIP/test123_sip.domain.ru-00000003", "EXTUSER=108") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:2] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?report") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:3] ExecIf("SIP/test123_sip.domain.ru-00000003", "0?Set(REALCALLERIDNUM=108)") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:4] Set("SIP/test123_sip.domain.ru-00000003", "EXTUSER=108") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:5] Set("SIP/test123_sip.domain.ru-00000003", "EXTUSERCIDNAME=test123") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:6] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?report") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:7] Set("SIP/test123_sip.domain.ru-00000003", "EXTUSERCID=108") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:8] Set("SIP/test123_sip.domain.ru-00000003", "CALLERID(all)="test123" <108>") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:9] ExecIf("SIP/test123_sip.domain.ru-00000003", "1?Set(CHANNEL(language)=en)") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:10] ExecIf("SIP/test123_sip.domain.ru-00000003", "1?Set(CHANNEL(language)=ru)") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:11] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?continue") in new stack
-- Goto (macro-sip.domain.ru-user-callerid,s,20)
-- Executing [s@macro-sip.domain.ru-user-callerid:20] Set("SIP/test123_sip.domain.ru-00000003", "CALLERID(number)=108") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:21] Set("SIP/test123_sip.domain.ru-00000003", "CALLERID(name)=test123") in new stack
-- Executing [s@macro-sip.domain.ru-user-callerid:22] NoOp("SIP/test123_sip.domain.ru-00000003", "Using CallerID "test123" <108>") in new stack
-- Executing [s@macro-sip.domain.ru-vm:3] Set("SIP/test123_sip.domain.ru-00000003", "VMGAIN=""") in new stack
-- Executing [s@macro-sip.domain.ru-vm:4] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?vmx,1") in new stack
-- Goto (macro-sip.domain.ru-vm,vmx,1)
-- Executing [vmx@macro-sip.domain.ru-vm:1] Set("SIP/test123_sip.domain.ru-00000003", "MEXTEN=110") in new stack
-- Executing [vmx@macro-sip.domain.ru-vm:2] Set("SIP/test123_sip.domain.ru-00000003", "MMODE=CHANUNAVAIL") in new stack
-- Executing [vmx@macro-sip.domain.ru-vm:3] Set("SIP/test123_sip.domain.ru-00000003", "RETVM=") in new stack
-- Executing [vmx@macro-sip.domain.ru-vm:4] Set("SIP/test123_sip.domain.ru-00000003", "MODE=unavail") in new stack
-- Executing [vmx@macro-sip.domain.ru-vm:5] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?chknomsg") in new stack
-- Goto (macro-sip.domain.ru-vm,vmx,7)
-- Executing [vmx@macro-sip.domain.ru-vm:7] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?s-CHANUNAVAIL,1") in new stack
-- Executing [vmx@macro-sip.domain.ru-vm:8] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?notdirect") in new stack
-- Goto (macro-sip.domain.ru-vm,vmx,10)
-- Executing [vmx@macro-sip.domain.ru-vm:10] NoOp("SIP/test123_sip.domain.ru-00000003", "Checking if ext 110 is enabled: disabled") in new stack
-- Executing [vmx@macro-sip.domain.ru-vm:11] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?s-CHANUNAVAIL,1") in new stack
-- Goto (macro-sip.domain.ru-vm,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-sip.domain.ru-vm:1] Macro("SIP/test123_sip.domain.ru-00000003", "sip.domain.ru-get-vmcontext,110") in new stack
-- Executing [s@macro-sip.domain.ru-get-vmcontext:1] Set("SIP/test123_sip.domain.ru-00000003", "VMCONTEXT=sip.domain.ru-default") in new stack
-- Executing [s@macro-sip.domain.ru-get-vmcontext:2] GotoIf("SIP/test123_sip.domain.ru-00000003", "0?200:300") in new stack
-- Goto (macro-sip.domain.ru-get-vmcontext,s,300)
-- Executing [s@macro-sip.domain.ru-get-vmcontext:300] NoOp("SIP/test123_sip.domain.ru-00000003", "") in new stack
-- Executing [s-CHANUNAVAIL@macro-sip.domain.ru-vm:2] VoiceMail("SIP/test123_sip.domain.ru-00000003", "110@sip.domain.ru-default,u""") in new stack
> 0x7f6e70007970 -- Probation passed - setting RTP source address to 127.0.0.1:11108
-- <SIP/test123_sip.domain.ru-00000003> Playing 'vm-theperson.slin' (language 'ru')
> 0x7f6e70007970 -- Probation passed - setting RTP source address to 127.0.0.1:11108
-- <SIP/test123_sip.domain.ru-00000003> Playing 'digits/1.slin' (language 'ru')
-- <SIP/test123_sip.domain.ru-00000003> Playing 'digits/1.slin' (language 'ru')
-- <SIP/test123_sip.domain.ru-00000003> Playing 'digits/0.slin' (language 'ru')
-- <SIP/test123_sip.domain.ru-00000003> Playing 'vm-isunavail.slin' (language 'ru')
-- <SIP/test123_sip.domain.ru-00000003> Playing 'vm-intro.slin' (language 'ru')
-- <SIP/test123_sip.domain.ru-00000003> Playing 'beep.slin' (language 'ru')
-- Recording the message
-- x=0, open writing: /var/spool/asterisk/voicemail/sip.domain.ru-default/110/tmp/q7s1rG format: wav49, 0x7f6e6c030a08
-- x=1, open writing: /var/spool/asterisk/voicemail/sip.domain.ru-default/110/tmp/q7s1rG format: gsm, 0x7f6e6c021b98
-- x=2, open writing: /var/spool/asterisk/voicemail/sip.domain.ru-default/110/tmp/q7s1rG format: wav, 0x7f6e6c030de8
-- User hung up
== Parsing '/var/spool/asterisk/voicemail/sip.domain.ru-default/110/INBOX/msg0001.txt': Found
== Parsing '/var/spool/asterisk/voicemail/sip.domain.ru-default/110/INBOX/msg0001.txt': Found
== Parsing '/var/spool/asterisk/voicemail/sip.domain.ru-default/110/INBOX/msg0001.txt': Found
== Spawn extension (macro-sip.domain.ru-vm, s-CHANUNAVAIL, 2) exited non-zero on 'SIP/test123_sip.domain.ru-00000003' in macro 'sip.domain.ru-vm'
== Spawn extension (macro-sip.domain.ru-exten-vm, s, 21) exited non-zero on 'SIP/test123_sip.domain.ru-00000003' in macro 'sip.domain.ru-exten-vm'
== Spawn extension (sip.domain.ru-from-internal, 110, 2) exited non-zero on 'SIP/test123_sip.domain.ru-00000003'
-- Executing [h@sip.domain.ru-from-internal:1] Macro("SIP/test123_sip.domain.ru-00000003", "sip.domain.ru-hangupcall") in new stack
-- Executing [s@macro-sip.domain.ru-hangupcall:1] ExecIf("SIP/test123_sip.domain.ru-00000003", "1?Set(CDR(organization_domain)=sip.domain.ru)") in new stack
-- Executing [s@macro-sip.domain.ru-hangupcall:2] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?endmixmoncheck") in new stack
-- Goto (macro-sip.domain.ru-hangupcall,s,7)
-- Executing [s@macro-sip.domain.ru-hangupcall:7] NoOp("SIP/test123_sip.domain.ru-00000003", "End of MIXMON check") in new stack
-- Executing [s@macro-sip.domain.ru-hangupcall:8] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?nomeetmemon") in new stack
-- Goto (macro-sip.domain.ru-hangupcall,s,14)
-- Executing [s@macro-sip.domain.ru-hangupcall:14] NoOp("SIP/test123_sip.domain.ru-00000003", "MEETME_RECORDINGFILE=") in new stack
-- Executing [s@macro-sip.domain.ru-hangupcall:15] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?noautomon") in new stack
-- Goto (macro-sip.domain.ru-hangupcall,s,23)
-- Executing [s@macro-sip.domain.ru-hangupcall:23] NoOp("SIP/test123_sip.domain.ru-00000003", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-sip.domain.ru-hangupcall:24] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?noautomon2") in new stack
-- Goto (macro-sip.domain.ru-hangupcall,s,31)
-- Executing [s@macro-sip.domain.ru-hangupcall:31] NoOp("SIP/test123_sip.domain.ru-00000003", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-sip.domain.ru-hangupcall:32] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?skiprg") in new stack
-- Goto (macro-sip.domain.ru-hangupcall,s,35)
-- Executing [s@macro-sip.domain.ru-hangupcall:35] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?skipblkvm") in new stack
-- Goto (macro-sip.domain.ru-hangupcall,s,38)
-- Executing [s@macro-sip.domain.ru-hangupcall:38] GotoIf("SIP/test123_sip.domain.ru-00000003", "1?theend") in new stack
-- Goto (macro-sip.domain.ru-hangupcall,s,40)
-- Executing [s@macro-sip.domain.ru-hangupcall:40] Hangup("SIP/test123_sip.domain.ru-00000003", "") in new stack
== Spawn extension (macro-sip.domain.ru-hangupcall, s, 40) exited non-zero on 'SIP/test123_sip.domain.ru-00000003' in macro 'sip.domain.ru-hangupcall'
== Spawn extension (sip.domain.ru-from-internal, h, 1) exited non-zero on 'SIP/test123_sip.domain.ru-00000003'
test123 имеет номер 108
boris_home имеет номер 109

Re: Номер недоступен

Добавлено: 14 июн 2015, 13:37
april22
UNREACHABLE -
не зарегистрированы - поэтому и не доступны .

Re: Номер недоступен

Добавлено: 14 июн 2015, 15:09
tranger
Так может подскажете в чём причина?
Почему, если оба телефона получают внешний IP, то звонки проходят, а когда они за натом, то нет?

Re: Номер недоступен

Добавлено: 14 июн 2015, 20:18
ded
Прочитайте
1) опеределение - "новичком на этом форуме называют ..."
2) книгу Астериск - будущее телефонии"

вопросы и примеры совсем неадекватны.

Согласно утверждению
test123 имеет номер 108
boris_home имеет номер 109

но видим что трубки не две, а куча всяких пиров числом семь, в том числе и бессмысленных - 127.0.0.1

Код: Выделить всё

Name/username Host Dyn Forcerport Comedia ACL Port Status Description Realtime
108/108                       (Unspecified) D Yes Yes 0      UNREACHABLE Cached RT
boris_homeIM_sip.domain.ru    (Unspecified) D Yes Yes A 0    UNREACHABLE Cached RT
boris_home_sip.domain.ru      127.0.0.1     D Yes Yes A 5060 UNREACHABLE Cached RT
test123IM_sip.domain.ru       (Unspecified) D Yes Yes A 0    UNREACHABLE Cached RT
test123_sip.domain.ru         (Unspecified) D Yes Yes A 0    UNREACHABLE Cached RT
7 sip peers [Monitored: 0 online, 7 offline Unmonitored: 0 online, 0 offline]
тут и просто 108
108/108 (Unspecified) D Yes Yes 0 UNREACHABLE
и ещё
test123_sip.domain.ru Unspecified) D Yes Yes A 0 UNREACHABLE

Поле Realtime и значение там Cached RT говорит о том, что у вас работает модель Realtime.
Вопрос: разве Вы сами это всё запускали?
Если ответ - да, то второй вопрос: Вы точно понимаете что Вы делаете?
По уровню вопросов/ответов - нет на оба вопроса.

Ответ на Ваш вопрос - это теория поведения SIP устройства за НАТом. Устройство может регистрироваться и работать из-за НАТа, если
а) firewall/NAT-устройство позволяет это делать
б) созданная трансляция ИП-адреса через верхние порты firewall/NAT-устройства будет поддерживаться либо SIP-телефоном через NAT keepalive, или со стороны Астериска - через qualify=yes пакетами OPTIONS.

Вы можете видеть попытки регистрации через tcpdump.