Moderator: jubjang
ngrep -d eth0 host 58.1.0.1 and port 5060
interface: eth0 (192.168.1.0/255.255.255.0)
filter: (ip) and ( host 202.129.60.29 and port 5060 )
#
U 202.129.60.29:5060 -> 192.168.1.4:5060
INVITE sip:24026098@192.168.1.4:5060 SIP/2.0..Max-Forwards: 70..Session-Expires: 3600;Refresher=uac..Supported: timer..To: 24026098 <sip:24026098@202.129.60.29>..F
rom: <sip:0814094966@202.129.60.29:5060>;tag=3477214985-111498..Contact: <sip:0814094966@202.129.60.29:5060;tgrp="cat-non-ss7">..P-Asserted-Identity:<sip:081409496
6@202.129.60.29>..P-Preferred-Identity:<sip:0814094966@202.129.60.29>..Privacy: none..Call-ID: 239222-3477214985-111466@cat-msc1.mydomain.com..CSeq: 1 INVITE..Via:
SIP/2.0/UDP 202.129.60.29:5060;branch=z9hG4bKba9d1f444fd802716345227755014053..Content-Type: application/sdp..Content-Length: 217....v=0..o=cat-msc1 0 0 IN IP4 20
2.129.60.29..s=sip call..c=IN IP4 202.129.60.28..t=0 0..m=audio 41416 RTP/AVP 18 4 0 8 101..a=fmtp:101 0-15..a=rtpmap:101 telephone-event/8000..a=fmtp:18 annexb=no
..a=rtpmap:18 G729/8000..
#
U 192.168.1.4:5060 -> 202.129.60.29:5060
SIP/2.0 100 Trying..Via: SIP/2.0/UDP 202.129.60.29:5060;branch=z9hG4bKba9d1f444fd802716345227755014053;received=202.129.60.29..From: <sip:0814094966@202.129.60.29:
5060>;tag=3477214985-111498..To: 24026098 <sip:24026098@202.129.60.29>..Call-ID: 239222-3477214985-111466@cat-msc1.mydomain.com..CSeq: 1 INVITE..User-Agent: Asteri
sk PBX..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO..Supported: replaces..Contact: <sip:24026098@192.168.1.4>..Content-Length: 0....
#
U 192.168.1.4:5060 -> 202.129.60.29:5060
SIP/2.0 183 Session Progress..Via: SIP/2.0/UDP 202.129.60.29:5060;branch=z9hG4bKba9d1f444fd802716345227755014053;received=202.129.60.29..From: <sip:0814094966@202.
129.60.29:5060>;tag=3477214985-111498..To: 24026098 <sip:24026098@202.129.60.29>;tag=as093accb5..Call-ID: 239222-3477214985-111466@cat-msc1.mydomain.com..CSeq: 1 I
NVITE..User-Agent: Asterisk PBX..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO..Supported: replaces..Contact: <sip:24026098@192.168.1.4>
..Content-Type: application/sdp..Content-Length: 261....v=0..o=root 11571 11571 IN IP4 192.168.1.4..s=session..c=IN IP4 192.168.1.4..t=0 0..m=audio 15470 RTP/AVP 1
8 101..a=rtpmap:18 G729/8000..a=fmtp:18 annexb=no..a=rtpmap:101 telephone-event/8000..a=fmtp:101 0-16..a=silenceSupp:off - - - -..a=ptime:20..a=sendrecv..
#
U 202.129.60.29:5060 -> 192.168.1.4:5060
CANCEL sip:24026098@192.168.1.4:5060 SIP/2.0..Max-Forwards: 70..To: 24026098 <sip:24026098@202.129.60.29>..From: <sip:0814094966@202.129.60.29:5060>;tag=3477214985
-111498..Contact: <sip:0814094966@202.129.60.29:5060;tgrp="cat-non-ss7">..Call-ID: 239222-3477214985-111466@cat-msc1.mydomain.com..CSeq: 1 CANCEL..Via: SIP/2.0/UDP
202.129.60.29:5060;branch=z9hG4bKba9d1f444fd802716345227755014053..Content-Length: 0....
#
U 192.168.1.4:5060 -> 202.129.60.29:5060
SIP/2.0 487 Request Terminated..Via: SIP/2.0/UDP 202.129.60.29:5060;branch=z9hG4bKba9d1f444fd802716345227755014053;received=202.129.60.29..From: <sip:0814094966@20
2.129.60.29:5060>;tag=3477214985-111498..To: 24026098 <sip:24026098@202.129.60.29>;tag=as093accb5..Call-ID: 239222-3477214985-111466@cat-msc1.mydomain.com..CSeq: 1
INVITE..User-Agent: Asterisk PBX..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO..Supported: replaces..Content-Length: 0....
#
U 192.168.1.4:5060 -> 202.129.60.29:5060
SIP/2.0 200 OK..Via: SIP/2.0/UDP 202.129.60.29:5060;branch=z9hG4bKba9d1f444fd802716345227755014053;received=202.129.60.29..From: <sip:0814094966@202.129.60.29:5060
>;tag=3477214985-111498..To: 24026098 <sip:24026098@202.129.60.29>;tag=as093accb5..Call-ID: 239222-3477214985-111466@cat-msc1.mydomain.com..CSeq: 1 CANCEL..User-Ag
ent: Asterisk PBX..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO..Supported: replaces..Content-Length: 0....
#
U 202.129.60.29:5060 -> 192.168.1.4:5060
ACK sip:24026098@192.168.1.4:5060 SIP/2.0..Max-Forwards: 70..From: <sip:0814094966@202.129.60.29:5060>;tag=3477214985-111498..To: 24026098 <sip:24026098@202.129.60
.29>;tag=as093accb5..Call-ID: 239222-3477214985-111466@cat-msc1.mydomain.com..CSeq: 1 ACK..Via: SIP/2.0/UDP 202.129.60.29:5060;branch=z9hG4bKba9d1f444fd80271634522
7755014053..Content-Length: 0....
-- Executing [24026098@from-internal:1] ResetCDR("SIP/from-trunk-CATIN-b7203270", "") in new stack
-- Executing [24026098@from-internal:2] NoCDR("SIP/from-trunk-CATIN-b7203270", "") in new stack
-- Executing [24026098@from-internal:3] Wait("SIP/from-trunk-CATIN-b7203270", "1") in new stack
-- Executing [24026098@from-internal:4] Playback("SIP/from-trunk-CATIN-b7203270", "silence/1&cannot-complete-as-dialed&check-number-dial-again|noanswer") in new stack
-- <SIP/from-trunk-CATIN-b7203270> Playing 'silence/1' (language 'en')
-- <SIP/from-trunk-CATIN-b7203270> Playing 'cannot-complete-as-dialed' (language 'en')
-- <SIP/from-trunk-CATIN-b7203270> Playing 'check-number-dial-again' (language 'en')
-- Executing [24026098@from-internal:5] Wait("SIP/from-trunk-CATIN-b7203270", "1") in new stack
== Spawn extension (from-internal, 24026098, 5) exited non-zero on 'SIP/from-trunk-CATIN-b7203270'
-- Executing [h@from-internal:1] Macro("SIP/from-trunk-CATIN-b7203270", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/from-trunk-CATIN-b7203270", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/from-trunk-CATIN-b7203270", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/from-trunk-CATIN-b7203270", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/from-trunk-CATIN-b7203270", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/from-trunk-CATIN-b7203270' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/from-trunk-CATIN-b7203270'
-- Executing [24026098@from-internal:1] ResetCDR("SIP/from-trunk-CATIN-b7204898", "") in new stack
-- Executing [24026098@from-internal:2] NoCDR("SIP/from-trunk-CATIN-b7204898", "") in new stack
-- Executing [24026098@from-internal:3] Wait("SIP/from-trunk-CATIN-b7204898", "1") in new stack
-- Executing [24026098@from-internal:4] Playback("SIP/from-trunk-CATIN-b7204898", "silence/1&cannot-complete-as-dialed&check-number-dial-again|noanswer") in new stack
-- <SIP/from-trunk-CATIN-b7204898> Playing 'silence/1' (language 'en')
-- <SIP/from-trunk-CATIN-b7204898> Playing 'cannot-complete-as-dialed' (language 'en')
-- <SIP/from-trunk-CATIN-b7204898> Playing 'check-number-dial-again' (language 'en')
-- Executing [24026098@from-internal:5] Wait("SIP/from-trunk-CATIN-b7204898", "1") in new stack
== Spawn extension (from-internal, 24026098, 5) exited non-zero on 'SIP/from-trunk-CATIN-b7204898'
-- Executing [h@from-internal:1] Macro("SIP/from-trunk-CATIN-b7204898", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/from-trunk-CATIN-b7204898", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/from-trunk-CATIN-b7204898", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/from-trunk-CATIN-b7204898", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/from-trunk-CATIN-b7204898", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/from-trunk-CATIN-b7204898' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/from-trunk-CATIN-b7204898'
-- Remote UNIX connection
-- Remote UNIX connection disconnected
voip4share เขียน:สังเกตุตรง Invite นะครับ เบอร์เป็น 24026xxx มันไม่มี 0 ข้างหน้า แต่ตอนคุณ nepenthes คอนฟิก Inbound Route ตรงช่อง DID Number มี 0 นำหน้าหน่ะครับ มันเลยถือว่าเป็นคนละเบอร์กัน ตัด 0 ข้างหน้าออกครับ
voip4share เขียน:ดูคอนฟิกก็ถูกนะครับ SIP Trunk ใช้ context=from-internal และเบอร์ Extension 100 ก็ context=from-internal เหมือนกัน
งั้นแก้ตรงที่เซ็ต Trunk ครับ ที่ USER Context ใส่ from-internal ไปเลย
ไม่ทราบว่าเป็น Elastix เวอร์ชั่นอะไรครับ ที่ผมลองเป็นเวอร์ชั่น 1.3 เก่าแล้ว ผมรู้สึกว่ามันจะไม่ได้ใช้ค่าตรง USER Context
ย้อนกลับไปยัง Elastix - Unified Communications Software
กำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และ บุคคลทั่วไป 21 ท่าน