...
Request-Line: INVITE sip:130@192.168.10.192 SIP/2.0
Via: SIP/2.0/UDP 192.168.10.41:5060;branch=z9hG4bK13660973;rport=5060
To: sip:130@192.168.10.192
From: "401" <sip:401@192.168.10.41>;tag=as0f5d570a
....
Ответ
Status-Line: SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.10.41:5060;branch=z9hG4bK13660973;rport=5060
To: sip:130@192.168.10.192
From: "401" <sip:401@192.168.10.41>;tag=as0f5d570a
...
И сразу после:
Status-Line: SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.10.41:5060;branch=z9hG4bK13660973;rport=5060
To: sip:130@192.168.10.192;tag=7009
From: "401" <sip:401@192.168.10.41>;tag=as0f5d570a
..
SIP Debugging Enabled for IP: 192.168.10.192:5060
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Executing [130@from-internal:1] Set("SIP/401-00000387", "INTRACOMPANYROUT E=YES") in new stack
-- Executing [130@from-internal:2] Macro("SIP/401-00000387", "user-callerid, SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/401-00000387", "AMPUSER=401" ) in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/401-00000387", "0?report" ) in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/401-00000387", "1?Set(REA LCALLERIDNUM=401)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/401-00000387", "AMPUSER=401" ) in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/401-00000387", "AMPUSERCIDNA ME=401") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/401-00000387", "0?report" ) in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/401-00000387", "AMPUSERCID=4 01") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/401-00000387", "CALLERID(all )="401" <401>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/401-00000387", "0?Set(CHA NNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/401-00000387", "1?contin ue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/401-00000387", "Using Call erID "401" <401>") in new stack
-- Executing [130@from-internal:3] Set("SIP/401-00000387", "_NODEST=") in ne w stack
-- Executing [130@from-internal:4] Macro("SIP/401-00000387", "record-enable, 401,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/401-00000387", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/401-00000387", "recordingche ck,20121219-163136,1355927496.903") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20121219-163136,1355927496.903: Outbound recording not enabled
-- <SIP/401-00000387>AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/401-00000387", "") in new stack
-- Executing [130@from-internal:5] Macro("SIP/401-00000387", "dialout-trunk, 3,130,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/401-00000387", "DIAL_TRUNK=3 ") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/401-00000387", "0?sub-pi ncheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/401-00000387", "0?disable trunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/401-00000387", "DIAL_NUMBER= 130") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/401-00000387", "DIAL_TRUNK_O PTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/401-00000387", "OUTBOUND_GRO UP=OUT_3") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/401-00000387", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/401-00000387", "0?chanful l") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/401-00000387", "1?skipout cid") in new stack
-- Goto (macro-dialout-trunk,s,12)
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/401-00000387", "1?AGI(fi xlocalprefix)") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
== fixlocalprefix: Dialpattern 1XX matched. 130 -> 130
-- <SIP/401-00000387>AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/401-00000387", "OUTNUM=130" ) in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/401-00000387", "custom=SIP/ utde") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/401-00000387", "0?Set(DI AL_TRUNK_OPTIONS=M(setmusic^)tr)") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/401-00000387", "dialout-t runk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/401-00000 387", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/401-00000387", "0?bypass ,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/401-00000387", "0?custom trunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/401-00000387", "SIP/utde/1 30,300,tr") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
Audio is at 192.168.10.41 port 14994
Adding codec 0x8 (alaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 192.168.10.192:5060:
INVITE sip:130@192.168.10.192:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.10.41:5060;branch=z9hG4bK05082477;rport
Max-Forwards: 70
From: "401" <sip:utde@192.168.10.41>;tag=as59af615f
To: <sip:130@192.168.10.192:5060>
Contact: <sip:utde@192.168.10.41>
Call-ID: 7ef31267686fd3a76f318ca416079a42@192.168.10.41
CSeq: 102 INVITE
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
Date: Wed, 19 Dec 2012 14:31:36 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 278
v=0
o=root 1247902061 1247902061 IN IP4 192.168.10.41
s=Asterisk PBX 1.6.0.26-FONCORE-r78
c=IN IP4 192.168.10.41
t=0 0
m=audio 14994 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
---
-- Called utde/130
trixbox1*CLI>
<--- SIP read from UDP://192.168.10.192:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.10.41:5060;branch=z9hG4bK05082477;rport=5060
To: sip:130@192.168.10.192
From: "401" <sip:utde@192.168.10.41>;tag=as59af615f
Call-ID: 7ef31267686fd3a76f318ca416079a42@192.168.10.41
CSeq: 102 INVITE
Content-Length: 0
<------------->
--- (7 headers 0 lines) ---
trixbox1*CLI>
<--- SIP read from UDP://192.168.10.192:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.10.41:5060;branch=z9hG4bK05082477;rport=5060
To: sip:130@192.168.10.192;tag=7138
From: "401" <sip:utde@192.168.10.41>;tag=as59af615f
Call-ID: 7ef31267686fd3a76f318ca416079a42@192.168.10.41
CSeq: 102 INVITE
Allow: INVITE,ACK,CANCEL,BYE,PRACK,OPTIONS,REGISTER,INFO,UPDATE
Server: Panasonic-MPR07-VSIPGW/V3.0007
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Transmitting (no NAT) to 192.168.10.192:5060:
ACK sip:130@192.168.10.192:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.10.41:5060;branch=z9hG4bK05082477;rport
Max-Forwards: 70
From: "401" <sip:utde@192.168.10.41>;tag=as59af615f
To: <sip:130@192.168.10.192:5060>;tag=7138
Contact: <sip:utde@192.168.10.41>
Call-ID: 7ef31267686fd3a76f318ca416079a42@192.168.10.41
CSeq: 102 ACK
User-Agent: Asterisk PBX 1.6.0.26-FONCORE-r78
Content-Length: 0
---
-- SIP/utde-00000388 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-dialout-trunk:20] Goto("SIP/401-00000387", "s-CONGESTI ON,1") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,1)
-- Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf("SIP/401-00000387", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,3)
-- Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp("SIP/401-00000387", " TRUNK Dial failed due to CONGESTION - failing through to other trunks") in new s tack
-- Executing [130@from-internal:6] Macro("SIP/401-00000387", "outisbusy,") i n new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/401-00000387", "all-circuit s-busy-now,noanswer") in new stack
-- <SIP/401-00000387> Playing 'all-circuits-busy-now.ulaw' (language 'en')
Really destroying SIP dialog '7ef31267686fd3a7...@192.168.10.41' Me thod: INVITE
-- Executing [s@macro-outisbusy:2] Playback("SIP/401-00000387", "pls-try-cal l-later,noanswer") in new stack
-- <SIP/401-00000387> Playing 'pls-try-call-later.ulaw' (language 'en')
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/401-0000038 7' in macro 'outisbusy'
== Spawn extension (from-internal, 130, 6) exited non-zero on 'SIP/401-0000038 7'
-- Executing [h@from-internal:1] Macro("SIP/401-00000387", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/401-00000387", "1?skiprg") i n new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/401-00000387", "1?skipblkvm" ) in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/401-00000387", "1?theend") i n new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/401-00000387", "") in new st ack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/401-000003 87' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/401-00000387'
trixbox1*CLI>
<--- SIP read from UDP://192.168.10.192:5060 --->
<------------->
"Дальше чтобы входящий звонок распознал panasonik нужно его отправлять с префиксом который прописан на panasonike в пункте 1.1 Slot -> IPCMPR -> sipgw16 (prot property) -> Account -> user id и authentication id
Дальше поступивший звонок попадает в таблицу DDI/DID, там я прописал эти номера полностью с префиксом и номер назначения."