Страница 4 из 12

Re: Asterisk -> Dvg6004s -> panasonic и обратно

Добавлено: 08 ноя 2013, 19:56
pikachu937
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: лог1
7001 это sip trunk
2020 это номер сип телефона(софтфона)
101 это номер на аналоговой атс panasonic
звонок пришел извне
Вот лог после поднятия трубке на ip телефоне(софтфоне) и при попытке перевести звонок на номер 101 через комбинацию *2:
-- Locally bridging SIP/7001-00000012 and SIP/2020-00000013
-- Started music on hold, class 'default', on SIP/7001-00000012
-- <SIP/2020-00000013> Playing 'pbx-transfer.gsm' (language 'en')
-- Executing [101@from-internal-xfer:1] Macro("Local/101@from-internal-xfer-00000003;2", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("Local/101@from-internal-xfer-00000003;2", "AMPUSER=2020") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("Local/101@from-internal-xfer-00000003;2", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("Local/101@from-internal-xfer-00000003;2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("Local/101@from-internal-xfer-00000003;2", "CALLERID(number)=2020") in new stack
-- Executing [s@macro-user-callerid:20] Set("Local/101@from-internal-xfer-00000003;2", "CALLERID(name)=device") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("Local/101@from-internal-xfer-00000003;2", "Using CallerID "device" <2020>") in new stack
-- Executing [101@from-internal-xfer:2] NoOp("Local/101@from-internal-xfer-00000003;2", "Calling Out Route: out_ast") in new stack
-- Executing [101@from-internal-xfer:3] Set("Local/101@from-internal-xfer-00000003;2", "MOHCLASS=default") in new stack
-- Executing [101@from-internal-xfer:4] ExecIf("Local/101@from-internal-xfer-00000003;2", "0?Set(TRUNKCIDOVERRIDE=7001)") in new stack
-- Executing [101@from-internal-xfer:5] Set("Local/101@from-internal-xfer-00000003;2", "_NODEST=") in new stack
-- Executing [101@from-internal-xfer:6] Macro("Local/101@from-internal-xfer-00000003;2", "record-enable,2020,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("Local/101@from-internal-xfer-00000003;2", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("Local/101@from-internal-xfer-00000003;2", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("Local/101@from-internal-xfer-00000003;2", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("Local/101@from-internal-xfer-00000003;2", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("Local/101@from-internal-xfer-00000003;2", "1?MacroExit()") in new stack
-- Executing [101@from-internal-xfer:7] Macro("Local/101@from-internal-xfer-00000003;2", "dialout-trunk,2,101,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("Local/101@from-internal-xfer-00000003;2", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("Local/101@from-internal-xfer-00000003;2", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("Local/101@from-internal-xfer-00000003;2", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("Local/101@from-internal-xfer-00000003;2", "DIAL_NUMBER=101") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("Local/101@from-internal-xfer-00000003;2", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("Local/101@from-internal-xfer-00000003;2", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("Local/101@from-internal-xfer-00000003;2", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("Local/101@from-internal-xfer-00000003;2", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("Local/101@from-internal-xfer-00000003;2", "DIAL_TRUNK_OPTIONS=tT") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("Local/101@from-internal-xfer-00000003;2", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("Local/101@from-internal-xfer-00000003;2", "1?Set(CALLERPRES()=allowed_not_screened)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("Local/101@from-internal-xfer-00000003;2", "1?Set(REALCALLERIDNUM=2020)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("Local/101@from-internal-xfer-00000003;2", "0?normcid") in new stack
-- Executing [s@macro-outbound-callerid:4] Set("Local/101@from-internal-xfer-00000003;2", "USEROUTCID=2020") in new stack
-- Executing [s@macro-outbound-callerid:5] GotoIf("Local/101@from-internal-xfer-00000003;2", "0?bypass") in new stack
-- Executing [s@macro-outbound-callerid:6] Set("Local/101@from-internal-xfer-00000003;2", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("Local/101@from-internal-xfer-00000003;2", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("Local/101@from-internal-xfer-00000003;2", "TRUNKOUTCID=7001") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("Local/101@from-internal-xfer-00000003;2", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("Local/101@from-internal-xfer-00000003;2", "1?Set(CALLERID(all)=7001)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("Local/101@from-internal-xfer-00000003;2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("Local/101@from-internal-xfer-00000003;2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("Local/101@from-internal-xfer-00000003;2", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("Local/101@from-internal-xfer-00000003;2", "0?sub-flp-2,s,1") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("Local/101@from-internal-xfer-00000003;2", "OUTNUM=101") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("Local/101@from-internal-xfer-00000003;2", "custom=SIP/7001") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("Local/101@from-internal-xfer-00000003;2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)tT)") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("Local/101@from-internal-xfer-00000003;2", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("Local/101@from-internal-xfer-00000003;2", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("Local/101@from-internal-xfer-00000003;2", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("Local/101@from-internal-xfer-00000003;2", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("Local/101@from-internal-xfer-00000003;2", "SIP/7001/101,300,tT") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/7001/101
-- Got SIP response 480 "Temporarily not available" back from 192.168.200.7:5060
-- SIP/7001-00000014 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-dialout-trunk:20] NoOp("Local/101@from-internal-xfer-00000003;2", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 19") in new stack
-- Executing [s@macro-dialout-trunk:21] Goto("Local/101@from-internal-xfer-00000003;2", "s-CONGESTION,1") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,1)
-- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("Local/101@from-internal-xfer-00000003;2", "RC=19") in new stack
-- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("Local/101@from-internal-xfer-00000003;2", "19,1") in new stack
-- Goto (macro-dialout-trunk,19,1)
-- Executing [19@macro-dialout-trunk:1] Goto("Local/101@from-internal-xfer-00000003;2", "continue,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] GotoIf("Local/101@from-internal-xfer-00000003;2", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,continue,3)
-- Executing [continue@macro-dialout-trunk:3] NoOp("Local/101@from-internal-xfer-00000003;2", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 19 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:4] Set("Local/101@from-internal-xfer-00000003;2", "CALLERID(number)=2020") in new stack
-- Executing [101@from-internal-xfer:8] Macro("Local/101@from-internal-xfer-00000003;2", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Progress("Local/101@from-internal-xfer-00000003;2", "") in new stack
-- Executing [s@macro-outisbusy:2] GotoIf("Local/101@from-internal-xfer-00000003;2", "0?emergency,1") in new stack
-- Executing [s@macro-outisbusy:3] GotoIf("Local/101@from-internal-xfer-00000003;2", "0?intracompany,1") in new stack
-- Executing [s@macro-outisbusy:4] Playback("Local/101@from-internal-xfer-00000003;2", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
-- <Local/101@from-internal-xfer-00000003;2> Playing 'all-circuits-busy-now.gsm' (language 'en')
-- <Local/101@from-internal-xfer-00000003;2> Playing 'pls-try-call-later.gsm' (language 'en')
-- Executing [s@macro-outisbusy:5] Congestion("Local/101@from-internal-xfer-00000003;2", "20") in new stack
-- Local/101@from-internal-xfer-00000003;1 is congested
-- <SIP/2020-00000013> Playing 'beep.gsm' (language 'en')
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'Local/101@from-internal-xfer-00000003;2' in macro 'outisbusy'
== Spawn extension (from-internal-xfer, 101, 8) exited non-zero on 'Local/101@from-internal-xfer-00000003;2'
-- Executing [h@from-internal-xfer:1] Macro("Local/101@from-internal-xfer-00000003;2", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("Local/101@from-internal-xfer-00000003;2", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("Local/101@from-internal-xfer-00000003;2", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("Local/101@from-internal-xfer-00000003;2", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,28)
-- Executing [s@macro-hangupcall:28] NoOp("Local/101@from-internal-xfer-00000003;2", "End of MEETME check") in new stack
-- Executing [s@macro-hangupcall:29] GotoIf("Local/101@from-internal-xfer-00000003;2", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] NoOp("Local/101@from-internal-xfer-00000003;2", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:35] GotoIf("Local/101@from-internal-xfer-00000003;2", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,41)
-- Executing [s@macro-hangupcall:41] NoOp("Local/101@from-internal-xfer-00000003;2", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:42] GotoIf("Local/101@from-internal-xfer-00000003;2", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,45)
-- Executing [s@macro-hangupcall:45] GotoIf("Local/101@from-internal-xfer-00000003;2", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,48)
-- Executing [s@macro-hangupcall:48] GotoIf("Local/101@from-internal-xfer-00000003;2", "1?theend") in new stack
-- Goto (macro-hangupcall,s,50)
-- Executing [s@macro-hangupcall:50] AGI("Local/101@from-internal-xfer-00000003;2", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <Local/101@from-internal-xfer-00000003;2>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:51] Hangup("Local/101@from-internal-xfer-00000003;2", "") in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'Local/101@from-internal-xfer-00000003;2' in macro 'hangupcall'
== Spawn extension (from-internal-xfer, h, 1) exited non-zero on 'Local/101@from-internal-xfer-00000003;2'
-- Stopped music on hold on SIP/7001-00000012
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: лог2
testvoip*CLI>
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [07001@from-pstn:1] Set("SIP/7001-00000021", "__FROM_DID=07001") in new stack
-- Executing [07001@from-pstn:2] Gosub("SIP/7001-00000021", "app-blacklist-check,s,1") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/7001-00000021", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/7001-00000021", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/7001-00000021", "") in new stack
-- Executing [07001@from-pstn:3] ExecIf("SIP/7001-00000021", "0 ?Set(CALLERID(name)=7001)") in new stack
-- Executing [07001@from-pstn:4] Ringing("SIP/7001-00000021", "") in new stack
-- Executing [07001@from-pstn:5] Set("SIP/7001-00000021", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [07001@from-pstn:6] Set("SIP/7001-00000021", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [07001@from-pstn:7] Goto("SIP/7001-00000021", "from-did-direct,2020,1") in new stack
-- Goto (from-did-direct,2020,1)
-- Executing [2020@from-did-direct:1] Macro("SIP/7001-00000021", "exten-vm,novm,2020") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/7001-00000021", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/7001-00000021", "AMPUSER=7001") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/7001-00000021", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/7001-00000021", "1?Set(REALCALLERIDNUM=7001)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/7001-00000021", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/7001-00000021", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/7001-00000021", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/7001-00000021", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/7001-00000021", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/7001-00000021", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("SIP/7001-00000021", "CALLERID(number)=7001") in new stack
-- Executing [s@macro-user-callerid:20] Set("SIP/7001-00000021", "CALLERID(name)=Anonymous") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("SIP/7001-00000021", "Using CallerID "Anonymous" <7001>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/7001-00000021", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/7001-00000021", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/7001-00000021", "__EXTTOCALL=2020") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/7001-00000021", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/7001-00000021", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/7001-00000021", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/7001-00000021", "record-enable,2020,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/7001-00000021", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/7001-00000021", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/7001-00000021", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/7001-00000021", "1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("SIP/7001-00000021", "1?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/7001-00000021", "dial-one,"",tTr,2020") in new stack
-- Executing [s@macro-dial-one:1] Set("SIP/7001-00000021", "DEXTEN=2020") in new stack
-- Executing [s@macro-dial-one:2] Set("SIP/7001-00000021", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("SIP/7001-00000021", "0?screen,1") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("SIP/7001-00000021", "0?cf,1") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("SIP/7001-00000021", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [s@macro-dial-one:8] GotoIf("SIP/7001-00000021", "0?nodial") in new stack
-- Executing [s@macro-dial-one:9] GotoIf("SIP/7001-00000021", "0?continue") in new stack
-- Executing [s@macro-dial-one:10] Set("SIP/7001-00000021", "EXTHASCW=") in new stack
-- Executing [s@macro-dial-one:11] GotoIf("SIP/7001-00000021", "1?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,12)
-- Executing [s@macro-dial-one:12] GotoIf("SIP/7001-00000021", "0?docfu:skip3") in new stack
-- Goto (macro-dial-one,s,16)
-- Executing [s@macro-dial-one:16] GotoIf("SIP/7001-00000021", "1?next2:continue") in new stack
-- Goto (macro-dial-one,s,17)
-- Executing [s@macro-dial-one:17] GotoIf("SIP/7001-00000021", "1?continue") in new stack
-- Goto (macro-dial-one,s,25)
-- Executing [s@macro-dial-one:25] GotoIf("SIP/7001-00000021", "0?nodial") in new stack
-- Executing [s@macro-dial-one:26] GosubIf("SIP/7001-00000021", "1?dstring,1:dlocal,1") in new stack
-- Executing [dstring@macro-dial-one:1] Set("SIP/7001-00000021", "DSTRING=") in new stack
-- Executing [dstring@macro-dial-one:2] Set("SIP/7001-00000021", "DEVICES=2020") in new stack
-- Executing [dstring@macro-dial-one:3] ExecIf("SIP/7001-00000021", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:4] ExecIf("SIP/7001-00000021", "0?Set(DEVICES=020)") in new stack
-- Executing [dstring@macro-dial-one:5] Set("SIP/7001-00000021", "LOOPCNT=1") in new stack
-- Executing [dstring@macro-dial-one:6] Set("SIP/7001-00000021", "ITER=1") in new stack
-- Executing [dstring@macro-dial-one:7] Set("SIP/7001-00000021", "THISDIAL=SIP/2020") in new stack
-- Executing [dstring@macro-dial-one:8] GosubIf("SIP/7001-00000021", "1?zap2dahdi,1") in new stack
-- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/7001-00000021", "0?Return()") in new stack
-- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/7001-00000021", "NEWDIAL=") in new stack
-- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/7001-00000021", "LOOPCNT2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/7001-00000021", "ITER2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/7001-00000021", "THISPART2=SIP/2020") in new stack
-- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/7001-00000021", "0?Set(THISPART2=DAHDI/2020)") in new stack
-- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/7001-00000021", "NEWDIAL=SIP/2020&") in new stack
-- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/7001-00000021", "ITER2=2") in new stack
-- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/7001-00000021", "0?begin2") in new stack
-- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/7001-00000021", "THISDIAL=SIP/2020") in new stack
-- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/7001-00000021", "") in new stack
-- Executing [dstring@macro-dial-one:9] Set("SIP/7001-00000021", "DSTRING=SIP/2020&") in new stack
-- Executing [dstring@macro-dial-one:10] Set("SIP/7001-00000021", "ITER=2") in new stack
-- Executing [dstring@macro-dial-one:11] GotoIf("SIP/7001-00000021", "0?begin") in new stack
-- Executing [dstring@macro-dial-one:12] Set("SIP/7001-00000021", "DSTRING=SIP/2020") in new stack
-- Executing [dstring@macro-dial-one:13] Return("SIP/7001-00000021", "") in new stack
-- Executing [s@macro-dial-one:27] GotoIf("SIP/7001-00000021", "0?nodial") in new stack
-- Executing [s@macro-dial-one:28] GotoIf("SIP/7001-00000021", "0?skiptrace") in new stack
-- Executing [s@macro-dial-one:29] GosubIf("SIP/7001-00000021", "1?ctset,1:ctclear,1") in new stack
-- Executing [ctset@macro-dial-one:1] Set("SIP/7001-00000021", "DB(CALLTRACE/2020)=7001") in new stack
-- Executing [ctset@macro-dial-one:2] Return("SIP/7001-00000021", "") in new stack
-- Executing [s@macro-dial-one:30] Set("SIP/7001-00000021", "D_OPTIONS=tTr") in new stack
-- Executing [s@macro-dial-one:31] ExecIf("SIP/7001-00000021", "0?SIPAddHeader(Alert-Info: )") in new stack
-- Executing [s@macro-dial-one:32] ExecIf("SIP/7001-00000021", "0?SIPAddHeader()") in new stack
-- Executing [s@macro-dial-one:33] ExecIf("SIP/7001-00000021", "0?Set(CHANNEL(musicclass)=)") in new stack
-- Executing [s@macro-dial-one:34] GosubIf("SIP/7001-00000021", "0?qwait,1") in new stack
-- Executing [s@macro-dial-one:35] Set("SIP/7001-00000021", "__CWIGNORE=") in new stack
-- Executing [s@macro-dial-one:36] Set("SIP/7001-00000021", "__KEEPCID=TRUE") in new stack
-- Executing [s@macro-dial-one:37] Dial("SIP/7001-00000021", "SIP/2020,"",tTr") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/2020
-- SIP/2020-00000022 is ringing
-- SIP/2020-00000022 is ringing
-- SIP/2020-00000022 answered SIP/7001-00000021
-- Started music on hold, class 'default', on SIP/7001-00000021
-- <SIP/2020-00000022> Playing 'pbx-transfer.gsm' (language 'en')
-- Executing [101@from-internal-xfer:1] Macro("Local/101@from-internal-xfer-00000002;2", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("Local/101@from-internal-xfer-00000002;2", "AMPUSER=2020") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("Local/101@from-internal-xfer-00000002;2", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("Local/101@from-internal-xfer-00000002;2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("Local/101@from-internal-xfer-00000002;2", "CALLERID(number)=2020") in new stack
-- Executing [s@macro-user-callerid:20] Set("Local/101@from-internal-xfer-00000002;2", "CALLERID(name)=device") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("Local/101@from-internal-xfer-00000002;2", "Using CallerID "device" <2020>") in new stack
-- Executing [101@from-internal-xfer:2] NoOp("Local/101@from-internal-xfer-00000002;2", "Calling Out Route: out_ast") in new stack
-- Executing [101@from-internal-xfer:3] Set("Local/101@from-internal-xfer-00000002;2", "INTRACOMPANYROUTE=YES") in new stack
-- Executing [101@from-internal-xfer:4] Set("Local/101@from-internal-xfer-00000002;2", "MOHCLASS=default") in new stack
-- Executing [101@from-internal-xfer:5] ExecIf("Local/101@from-internal-xfer-00000002;2", "0?Set(TRUNKCIDOVERRIDE=07001)") in new stack
-- Executing [101@from-internal-xfer:6] Set("Local/101@from-internal-xfer-00000002;2", "_NODEST=") in new stack
-- Executing [101@from-internal-xfer:7] Macro("Local/101@from-internal-xfer-00000002;2", "record-enable,2020,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("Local/101@from-internal-xfer-00000002;2", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("Local/101@from-internal-xfer-00000002;2", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("Local/101@from-internal-xfer-00000002;2", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("Local/101@from-internal-xfer-00000002;2", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("Local/101@from-internal-xfer-00000002;2", "1?MacroExit()") in new stack
-- Executing [101@from-internal-xfer:8] Macro("Local/101@from-internal-xfer-00000002;2", "dialout-trunk,2,101,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("Local/101@from-internal-xfer-00000002;2", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("Local/101@from-internal-xfer-00000002;2", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("Local/101@from-internal-xfer-00000002;2", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("Local/101@from-internal-xfer-00000002;2", "DIAL_NUMBER=101") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("Local/101@from-internal-xfer-00000002;2", "DIAL_TRUNK_OPTIONS=tTr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("Local/101@from-internal-xfer-00000002;2", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("Local/101@from-internal-xfer-00000002;2", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("Local/101@from-internal-xfer-00000002;2", "1?skipoutcid") in new stack
-- Goto (macro-dialout-trunk,s,12)
-- Executing [s@macro-dialout-trunk:12] GosubIf("Local/101@from-internal-xfer-00000002;2", "0?sub-flp-2,s,1") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("Local/101@from-internal-xfer-00000002;2", "OUTNUM=101") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("Local/101@from-internal-xfer-00000002;2", "custom=SIP/7001") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("Local/101@from-internal-xfer-00000002;2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)tTr)") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("Local/101@from-internal-xfer-00000002;2", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("Local/101@from-internal-xfer-00000002;2", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("Local/101@from-internal-xfer-00000002;2", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("Local/101@from-internal-xfer-00000002;2", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("Local/101@from-internal-xfer-00000002;2", "SIP/7001/101,300,tTr") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/7001/101
-- Local/101@from-internal-xfer-00000002;1 is ringing
-- Got SIP response 480 "Temporarily not available" back from 192.168.200.7:5060
-- SIP/7001-00000023 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-dialout-trunk:20] NoOp("Local/101@from-internal-xfer-00000002;2", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 19") in new stack
-- Executing [s@macro-dialout-trunk:21] Goto("Local/101@from-internal-xfer-00000002;2", "s-CONGESTION,1") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,1)
-- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("Local/101@from-internal-xfer-00000002;2", "RC=19") in new stack
-- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("Local/101@from-internal-xfer-00000002;2", "19,1") in new stack
-- Goto (macro-dialout-trunk,19,1)
-- Executing [19@macro-dialout-trunk:1] Goto("Local/101@from-internal-xfer-00000002;2", "continue,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] GotoIf("Local/101@from-internal-xfer-00000002;2", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,continue,3)
-- Executing [continue@macro-dialout-trunk:3] NoOp("Local/101@from-internal-xfer-00000002;2", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 19 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:4] Set("Local/101@from-internal-xfer-00000002;2", "CALLERID(number)=2020") in new stack
-- Executing [101@from-internal-xfer:9] Macro("Local/101@from-internal-xfer-00000002;2", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Progress("Local/101@from-internal-xfer-00000002;2", "") in new stack
-- Executing [s@macro-outisbusy:2] GotoIf("Local/101@from-internal-xfer-00000002;2", "0?emergency,1") in new stack
-- Executing [s@macro-outisbusy:3] GotoIf("Local/101@from-internal-xfer-00000002;2", "1?intracompany,1") in new stack
-- Goto (macro-outisbusy,intracompany,1)
-- Executing [intracompany@macro-outisbusy:1] Playback("Local/101@from-internal-xfer-00000002;2", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
-- <Local/101@from-internal-xfer-00000002;2> Playing 'all-circuits-busy-now.gsm' (language 'en')
-- <Local/101@from-internal-xfer-00000002;2> Playing 'pls-try-call-later.gsm' (language 'en')
-- Executing [intracompany@macro-outisbusy:2] Congestion("Local/101@from-internal-xfer-00000002;2", "20") in new stack
-- Local/101@from-internal-xfer-00000002;1 is congested
-- <SIP/2020-00000022> Playing 'beep.gsm' (language 'en')
== Spawn extension (macro-outisbusy, intracompany, 2) exited non-zero on 'Local/101@from-internal-xfer-00000002;2' in macro 'outisbusy'
== Spawn extension (from-internal-xfer, 101, 9) exited non-zero on 'Local/101@from-internal-xfer-00000002;2'
-- Executing [h@from-internal-xfer:1] Macro("Local/101@from-internal-xfer-00000002;2", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("Local/101@from-internal-xfer-00000002;2", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("Local/101@from-internal-xfer-00000002;2", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("Local/101@from-internal-xfer-00000002;2", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,28)
-- Executing [s@macro-hangupcall:28] NoOp("Local/101@from-internal-xfer-00000002;2", "End of MEETME check") in new stack
-- Executing [s@macro-hangupcall:29] GotoIf("Local/101@from-internal-xfer-00000002;2", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] NoOp("Local/101@from-internal-xfer-00000002;2", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:35] GotoIf("Local/101@from-internal-xfer-00000002;2", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,41)
-- Executing [s@macro-hangupcall:41] NoOp("Local/101@from-internal-xfer-00000002;2", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:42] GotoIf("Local/101@from-internal-xfer-00000002;2", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,45)
-- Executing [s@macro-hangupcall:45] GotoIf("Local/101@from-internal-xfer-00000002;2", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,48)
-- Executing [s@macro-hangupcall:48] GotoIf("Local/101@from-internal-xfer-00000002;2", "1?theend") in new stack
-- Goto (macro-hangupcall,s,50)
-- Executing [s@macro-hangupcall:50] AGI("Local/101@from-internal-xfer-00000002;2", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <Local/101@from-internal-xfer-00000002;2>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:51] Hangup("Local/101@from-internal-xfer-00000002;2", "") in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'Local/101@from-internal-xfer-00000002;2' in macro 'hangupcall'
== Spawn extension (from-internal-xfer, h, 1) exited non-zero on 'Local/101@from-internal-xfer-00000002;2'
-- Stopped music on hold on SIP/7001-00000021
-- Executing [h@macro-dial-one:1] Macro("SIP/7001-00000021", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/7001-00000021", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("SIP/7001-00000021", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/7001-00000021", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,28)
-- Executing [s@macro-hangupcall:28] NoOp("SIP/7001-00000021", "End of MEETME check") in new stack
-- Executing [s@macro-hangupcall:29] GotoIf("SIP/7001-00000021", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] NoOp("SIP/7001-00000021", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:35] GotoIf("SIP/7001-00000021", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,41)
-- Executing [s@macro-hangupcall:41] NoOp("SIP/7001-00000021", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:42] GotoIf("SIP/7001-00000021", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,45)
-- Executing [s@macro-hangupcall:45] GotoIf("SIP/7001-00000021", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,48)
-- Executing [s@macro-hangupcall:48] GotoIf("SIP/7001-00000021", "1?theend") in new stack
-- Goto (macro-hangupcall,s,50)
-- Executing [s@macro-hangupcall:50] AGI("SIP/7001-00000021", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <SIP/7001-00000021>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:51] Hangup("SIP/7001-00000021", "") in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/7001-00000021' in macro 'hangupcall'
== Spawn extension (macro-dial-one, h, 1) exited non-zero on 'SIP/7001-00000021'
== Spawn extension (macro-dial-one, s, 37) exited non-zero on 'SIP/7001-00000021' in macro 'dial-one'
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'SIP/7001-00000021' in macro 'exten-vm'
== Spawn extension (from-did-direct, 2020, 1) exited non-zero on 'SIP/7001-00000021'

Re: Asterisk -> Dvg6004s -> panasonic и обратно

Добавлено: 08 ноя 2013, 20:01
Vlad1983
четвертая страница, а ТС всё ещё не пытается разобраться почему
"-- Called SIP/7001/101
-- Got SIP response 480 "Temporarily not available" back from 192.168.200.7:5060
-- SIP/7001-00000014 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)"

и накой выкладывать один и тот же лог?
вы его сами читали хоть?

Re: Asterisk -> Dvg6004s -> panasonic и обратно

Добавлено: 08 ноя 2013, 20:36
pikachu937
Я пытаюсь, но не понимаю. у меня 4 окна браузера по 90 вкладок в каждом открыто. Маны в консоли открыты и 2 книжки по астериск(одна из них на английском), думал почитать от первоисточника. но нету у меня даже предположений. Неужели человек который знает ответ на вопрос будет задавать его?

Re: Asterisk -> Dvg6004s -> panasonic и обратно

Добавлено: 08 ноя 2013, 20:49
Vlad1983
если шлюз заведен одной учеткой, то в нем не настроен хантинг линий по занятости
если используется префиксная система распределения линий, то не настроен хантинг в астериске

Re: Asterisk -> Dvg6004s -> panasonic и обратно

Добавлено: 08 ноя 2013, 20:59
pikachu937
Я не совсем понял что вы имеете ввиду. могу сказать что:
на шлюзе в примере который был описан изначально 1 учетка 7001, звонок с сип телефона или софтфона на номер панаса происходит в случае со схемой описанной тут простым набором внутреннего например 101, в случае с тем как у меня в реальной жизни реализовано то с префиксом 7001+101, 7029+114 и т.д.

Re: Asterisk -> Dvg6004s -> panasonic и обратно

Добавлено: 08 ноя 2013, 21:10
Vlad1983
проверить можно ли сделать вызов на 101 с другого SIP-номера, при отвеченном входящем на DID=07001

Re: Asterisk -> Dvg6004s -> panasonic и обратно

Добавлено: 08 ноя 2013, 21:12
pikachu937
позвонил с номера 2121 на номер 101, звонок прошел трубку подняли,позвонил с номера 2020 на номер 102 звонок не прошел и выдало all-circuits-busy-now&pls-try-call-later Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 19

Re: Asterisk -> Dvg6004s -> panasonic и обратно

Добавлено: 08 ноя 2013, 21:59
april22
у Вас одна линия , и она занята

Re: Asterisk -> Dvg6004s -> panasonic и обратно

Добавлено: 08 ноя 2013, 22:17
pikachu937
это означает что:
1 - все плохо и сделать так как я хочу нельзя
2 - сделать можно, но надо что-то перенастроить или до настроить?

Re: Asterisk -> Dvg6004s -> panasonic и обратно

Добавлено: 08 ноя 2013, 22:32
april22
давайте проясним .
у вас Астериск и Ваш порнослоник , соединён по аналоговой линии , причем одной ....

при поступлении звонка из порнослоника в астериск - эта линия занимается и становится активной следовательно вернуть ее нельзя , по причине что это уже в астериске появилась цифровая линия , прервать ее нельзя по вашей hook flash , и для того что бы вернуть разговор обратно в порнослоник , надо сделать кольцо и занять вторую линию, которой нет .

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

завернуть его какими то системными настройками я думаю не реально ....

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