Moderator: jubjang
* Name : 24026399
Secret : <Not set>
MD5Secret : <Not set>
Context : from-internal
Subscr.Cont. : <Not set>
Language :
AMA flags : Unknown
Transfer mode: open
CallingPres : Presentation Allowed, Not Screened
Callgroup :
Pickupgroup :
Mailbox :
VM Extension : *97
LastMsgsSent : 32767/65535
Call limit : 0
Dynamic : No
Callerid : "" <>
MaxCallBR : 384 kbps
Expire : -1
Insecure : port,invite
Nat : RFC3581
ACL : No
T38 pt UDPTL : No
CanReinvite : Yes
PromiscRedir : No
User=Phone : No
Video Support: No
Trust RPID : No
Send RPID : No
Subscriptions: Yes
Overlap dial : Yes
DTMFmode : rfc2833
LastMsg : 0
ToHost : 202.129.60.29
Addr->IP : 202.129.60.29 Port 5060
Defaddr->IP : 0.0.0.0 Port 0
Def. Username:
SIP Options : (none)
Codecs : 0x109 (g723|alaw|g729)
Codec Order : (g723:30,g729:20,alaw:20)
Auto-Framing: No
Status : Unmonitored
Useragent :
Reg. Contact :
[root@elastix ~]# ngrep -d eth0 host 202.129.60.29 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 192.168.1.4:5060 -> 202.129.60.29:5060
REGISTER sip:202.129.60.29 SIP/2.0..Via: SIP/2.0/UDP 192.168.1.4:5060;branc
h=z9hG4bK6b854aee;rport..From: <sip:24026399@202.129.60.29>;tag=as43183eec.
.To: <sip:24026399@202.129.60.29>..Call-ID: 6ae59daa361d3c84448d81a04a7bac9
6@127.0.0.1..CSeq: 125 REGISTER..User-Agent: Asterisk PBX..Max-Forwards: 70
..Authorization: Digest username="24026399", realm="NexTone", algorithm=MD5
, uri="sip:202.129.60.29", nonce="6184ba74756", response="674d4761d034c6434
b63ebb46a44c5e8"..Expires: 120..Contact: <sip:s@192.168.1.4>..Event: regist
ration..Content-Length: 0....
#
U 202.129.60.29:5060 -> 192.168.1.4:5060
SIP/2.0 200 OK..Via: SIP/2.0/UDP 192.168.1.4:5060;received=124.122.178.122;
received=124.122.178.122;branch=z9hG4bK6b854aee;rport..From: <sip:24026399@
202.129.60.29>;tag=as43183eec..To: <sip:24026399@202.129.60.29>..Call-ID: 6
ae59daa361d3c84448d81a04a7bac96@127.0.0.1..CSeq: 125 REGISTER..Expires: 120
..Contact: <sip:s@192.168.1.4>..Content-Length: 0....
#
U 202.129.60.29:5060 -> 192.168.1.4:5060
INVITE sip:s@192.168.1.4:5060 SIP/2.0..Max-Forwards: 70..Session-Expires: 3
600;Refresher=uac..Supported: timer..To: 24026399 <sip:24026399@202.129.60.
29>..From: <sip:0814094966@202.129.60.29:5060>;tag=3478245088-408316..Conta
ct: <sip:0814094966@202.129.60.29:5060;tgrp="cat-non-ss7">..P-Asserted-Iden
tity:<sip:0814094966@202.129.60.29>..P-Preferred-Identity:<sip:0814094966@2
02.129.60.29>..Privacy: none..Call-ID: 305946-3478245088-408282@cat-msc1.my
domain.com..CSeq: 1 INVITE..Via: SIP/2.0/UDP 202.129.60.29:5060;branch=z9hG
4bK9cdcd2df9adb4388d277bb9ce277006d..Content-Type: application/sdp..Content
-Length: 217....v=0..o=cat-msc1 0 0 IN IP4 202.129.60.29..s=sip call..c=IN
IP4 202.129.60.28..t=0 0..m=audio 14272 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 G72
9/8000..
#
U 192.168.1.4:5060 -> 202.129.60.29:5060
SIP/2.0 407 Proxy Authentication Required..Via: SIP/2.0/UDP 202.129.60.29:5
060;branch=z9hG4bK9cdcd2df9adb4388d277bb9ce277006d;received=202.129.60.29..
From: <sip:0814094966@202.129.60.29:5060>;tag=3478245088-408316..To: 240263
99 <sip:24026399@202.129.60.29>;tag=as27980a73..Call-ID: 305946-3478245088-
408282@cat-msc1.mydomain.com..CSeq: 1 INVITE..User-Agent: Asterisk PBX..All
ow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO..Supp
orted: replaces..Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk"
, nonce="44c4c8c0"..Content-Length: 0....
#
U 202.129.60.29:5060 -> 192.168.1.4:5060
ACK sip:s@192.168.1.4:5060 SIP/2.0..Max-Forwards: 70..From: <sip:0814094966
@202.129.60.29:5060>;tag=3478245088-408316..To: 24026399 <sip:24026399@202.
129.60.29>;tag=as27980a73..Call-ID: 305946-3478245088-408282@cat-msc1.mydom
ain.com..CSeq: 1 ACK..Via: SIP/2.0/UDP 202.129.60.29:5060;branch=z9hG4bK9cd
cd2df9adb4388d277bb9ce277006d..Content-Length: 0....
#
U 202.129.60.29:5060 -> 192.168.1.4:5060
INVITE sip:s@192.168.1.4:5060 SIP/2.0..Max-Forwards: 70..Session-Expires: 3
600;Refresher=uac..Supported: timer..To: 24026399 <sip:24026399@202.129.60.
29>..From: <sip:0814094966@202.129.60.29:5060>;tag=3478245088-616197..Conta
ct: <sip:0814094966@202.129.60.29:5060;tgrp="cat-non-ss7">..P-Asserted-Iden
tity:<sip:0814094966@202.129.60.29>..P-Preferred-Identity:<sip:0814094966@2
02.129.60.29>..Privacy: none..Call-ID: 305947-3478245088-616157@cat-msc1.my
domain.com..CSeq: 1 INVITE..Via: SIP/2.0/UDP 202.129.60.29:5060;branch=z9hG
4bK87fb42b5868cf9a8b74838ba7dc9f825..Content-Type: application/sdp..Content
-Length: 217....v=0..o=cat-msc1 0 0 IN IP4 202.129.60.29..s=sip call..c=IN
IP4 202.129.60.28..t=0 0..m=audio 14276 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 G72
9/8000..
#
U 192.168.1.4:5060 -> 202.129.60.29:5060
SIP/2.0 407 Proxy Authentication Required..Via: SIP/2.0/UDP 202.129.60.29:5
060;branch=z9hG4bK87fb42b5868cf9a8b74838ba7dc9f825;received=202.129.60.29..
From: <sip:0814094966@202.129.60.29:5060>;tag=3478245088-616197..To: 240263
99 <sip:24026399@202.129.60.29>;tag=as581ab1bc..Call-ID: 305947-3478245088-
616157@cat-msc1.mydomain.com..CSeq: 1 INVITE..User-Agent: Asterisk PBX..All
ow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO..Supp
orted: replaces..Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk"
, nonce="7a1ce6eb"..Content-Length: 0....
#
U 202.129.60.29:5060 -> 192.168.1.4:5060
ACK sip:s@192.168.1.4:5060 SIP/2.0..Max-Forwards: 70..From: <sip:0814094966
@202.129.60.29:5060>;tag=3478245088-616197..To: 24026399 <sip:24026399@202.
129.60.29>;tag=as581ab1bc..Call-ID: 305947-3478245088-616157@cat-msc1.mydom
ain.com..CSeq: 1 ACK..Via: SIP/2.0/UDP 202.129.60.29:5060;branch=z9hG4bK87f
b42b5868cf9a8b74838ba7dc9f825..Content-Length: 0....
Outgoing
============
username=xxxxxxxx
type=friend
secret=aaaaaaaaa
realm=10.10.2.20
outboundproxy=202.129.60.29
nat=yes
insecure=very
fromuser=xxxxxxxxxxx
fromdomain=202.129.60.29
dtmfmode=rfc2833
canreinvite=no
call-limit=5
allow=g729&alaw&ulaw
Incoming
==============
username=xxxxxxxxx
user=xxxxxxxxxx
type=friend
insecure=very
host=202.129.60.29
fromdomain=202.129.60.29
dtmfmode=rfc2833
context=from-trunk
Register String
================
xxxxxxxx:aaaaaaaaa@202.129.60.29/xxxxxxxxxxx
Outgoing
============
username=xxxxxxxx
type=friend
secret=aaaaaaaaa
realm=10.10.2.20
outboundproxy=202.129.60.29
nat=yes
insecure=very
fromuser=xxxxxxxxxxx
fromdomain=202.129.60.29
dtmfmode=rfc2833
canreinvite=no
call-limit=5
allow=g729&alaw&ulaw
Incoming
==============
username=xxxxxxxxx
user=xxxxxxxxxx
type=friend
insecure=very
host=202.129.60.29
fromdomain=202.129.60.29
dtmfmode=rfc2833
context=from-trunk
Register String
================
xxxxxxxx:aaaaaaaaa@202.129.60.29/xxxxxxxxxxx
[root@elastix ~]# ngrep -d eth0 host 202.129.60.29 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:24026399@192.168.1.4:5060 SIP/2.0..Max-Forwards: 70..Session-Expires: 3600;Refresher=uac..Supported: timer..To: 24026399 <sip:24026399@202.129.60.29>..F
rom: <sip:0814094966@202.129.60.29:5060>;tag=3478266348-778758..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: 307087-3478266348-778720@cat-msc1.mydomain.com..CSeq: 1 INVITE..Via:
SIP/2.0/UDP 202.129.60.29:5060;branch=z9hG4bK06740c19bb28c85415769d7ee0f21c3e..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 13808 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=z9hG4bK06740c19bb28c85415769d7ee0f21c3e;received=202.129.60.29..From: <sip:0814094966@202.129.60.29:
5060>;tag=3478266348-778758..To: 24026399 <sip:24026399@202.129.60.29>..Call-ID: 307087-3478266348-778720@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:24026399@192.168.1.4>..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=z9hG4bK06740c19bb28c85415769d7ee0f21c3e;received=202.129.60.29..From: <sip:0814094966@202.129.60.29:5060
>;tag=3478266348-778758..To: 24026399 <sip:24026399@202.129.60.29>;tag=as01ff8fee..Call-ID: 307087-3478266348-778720@cat-msc1.mydomain.com..CSeq: 1 INVITE..User-Ag
ent: Asterisk PBX..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO..Supported: replaces..Contact: <sip:24026399@192.168.1.4>..Content-Type
: application/sdp..Content-Length: 307....v=0..o=root 3072 3072 IN IP4 192.168.1.4..s=session..c=IN IP4 192.168.1.4..t=0 0..m=audio 15174 RTP/AVP 18 8 0 101..a=rtp
map:18 G729/8000..a=fmtp:18 annexb=no..a=rtpmap:8 PCMA/8000..a=rtpmap:0 PCMU/8000..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
ACK sip:24026399@192.168.1.4 SIP/2.0..Max-Forwards: 70..To: 24026399 <sip:24026399@202.129.60.29>;tag=as01ff8fee..From: <sip:0814094966@202.129.60.29:5060>;tag=347
8266348-778758..Contact: <sip:0814094966@202.129.60.29:5060;tgrp="cat-non-ss7">..Call-ID: 307087-3478266348-778720@cat-msc1.mydomain.com..CSeq: 1 ACK..Via: SIP/2.0
/UDP 202.129.60.29:5060;branch=z9hG4bK9b5595dd69688e8308038917990da058..Content-Length: 0....
#
U 202.129.60.29:5060 -> 192.168.1.4:5060
BYE sip:24026399@192.168.1.4 SIP/2.0..Max-Forwards: 70..To: 24026399 <sip:24026399@202.129.60.29>;tag=as01ff8fee..From: <sip:0814094966@202.129.60.29:5060>;tag=347
8266348-778758..Contact: <sip:0814094966@202.129.60.29:5060;tgrp="cat-non-ss7">..Call-ID: 307087-3478266348-778720@cat-msc1.mydomain.com..CSeq: 2 BYE..Via: SIP/2.0
/UDP 202.129.60.29:5060;branch=z9hG4bK768e742e7644e5b6a3364365bbccfd34..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=z9hG4bK768e742e7644e5b6a3364365bbccfd34;received=202.129.60.29..From: <sip:0814094966@202.129.60.29:5060
>;tag=3478266348-778758..To: 24026399 <sip:24026399@202.129.60.29>;tag=as01ff8fee..Call-ID: 307087-3478266348-778720@cat-msc1.mydomain.com..CSeq: 2 BYE..User-Agent
: Asterisk PBX..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO..Supported: replaces..Content-Length: 0....
voip4share เขียน:แสดงว่าไม่ได้เกี่ยวอะไรกับ insecure=very งั้นลองแก้กลับไปเป็นแบบเดิมครับ
--inbound--
insecure=port,invite
type=peer
context=from-trunk
บนตัว Elastix ที่ผมใช้อยู่ ผมเซ็ต Trunk (Inbound) รับ DID เข้ามา แล้วก็ไปเซ็ต Inbound Route เพื่อส่งเบอร์ DID ไปยังเบอร์ Extension หรือ IVR หรือ Queues หน่ะครับ
ส่วนบรรทัด context= หน่ะไม่ได้ใช้เลย จริงๆครับ ยกเว้นเราจะเอาเบอร์ DID นั้นไปทำอะไรก่อนที่จะส่งเข้า Inbound Route มันถึงจะมีผล
ลองดูครับ
username=2402xxxx
type=friend
secret=87256400xxxx
realm=10.10.2.20
outboundproxy=202.129.60.29
nat=yes
insecure=very
fromuser=2402xxxx
fromdomain=202.129.60.29
dtmfmode=rfc2833
canreinvite=no
call-limit=5
allow=g729&alaw&ulaw
username=2402xxxx
user=2402xxxx
type=peer
insecure=port,invite
host=202.129.60.29
fromdomain=202.129.60.29
dtmfmode=rfc2833
context=from-trunk
2402xxxx:8725640xxxxx@202.129.60.29:5060/2402xxxx
[root@elastix ~]# ngrep -d eth0 host 202.129.60.29 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:24026399@192.168.1.4:5060 SIP/2.0..Max-Forwards: 70..Session-Exp
ires: 3600;Refresher=uac..Supported: timer..To: 24026399 <sip:24026399@202.
129.60.29>..From: <sip:027518885@202.129.60.29:5060>;tag=3478413096-111339.
.Contact: <sip:027518885@202.129.60.29:5060;tgrp="cat-non-ss7">..P-Asserted
-Identity:<sip:027518885@202.129.60.29>..P-Preferred-Identity:<sip:02751888
5@202.129.60.29>..Privacy: none..Call-ID: 314892-3478413096-111282@cat-msc1
.mydomain.com..CSeq: 1 INVITE..Via: SIP/2.0/UDP 202.129.60.29:5060;branch=z
9hG4bK3f40c268761d3a9345103fc566bdbb16..Content-Type: application/sdp..Cont
ent-Length: 217....v=0..o=cat-msc1 0 0 IN IP4 202.129.60.29..s=sip call..c=
IN IP4 202.129.60.28..t=0 0..m=audio 23260 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=z9hG4bK3f40c
268761d3a9345103fc566bdbb16;received=202.129.60.29..From: <sip:027518885@20
2.129.60.29:5060>;tag=3478413096-111339..To: 24026399 <sip:24026399@202.129
.60.29>..Call-ID: 314892-3478413096-111282@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:24026399
@192.168.1.4>..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=z9hG4bK3f40c2687
61d3a9345103fc566bdbb16;received=202.129.60.29..From: <sip:027518885@202.12
9.60.29:5060>;tag=3478413096-111339..To: 24026399 <sip:24026399@202.129.60.
29>;tag=as75749e4f..Call-ID: 314892-3478413096-111282@cat-msc1.mydomain.com
..CSeq: 1 INVITE..User-Agent: Asterisk PBX..Allow: INVITE, ACK, CANCEL, OPT
IONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO..Supported: replaces..Contact: <s
ip:24026399@192.168.1.4>..Content-Type: application/sdp..Content-Length: 30
7....v=0..o=root 3080 3080 IN IP4 192.168.1.4..s=session..c=IN IP4 192.168.
1.4..t=0 0..m=audio 17626 RTP/AVP 18 8 0 101..a=rtpmap:18 G729/8000..a=fmtp
:18 annexb=no..a=rtpmap:8 PCMA/8000..a=rtpmap:0 PCMU/8000..a=rtpmap:101 tel
ephone-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
ACK sip:24026399@192.168.1.4 SIP/2.0..Max-Forwards: 70..To: 24026399 <sip:2
4026399@202.129.60.29>;tag=as75749e4f..From: <sip:027518885@202.129.60.29:5
060>;tag=3478413096-111339..Contact: <sip:027518885@202.129.60.29:5060;tgrp
="cat-non-ss7">..Call-ID: 314892-3478413096-111282@cat-msc1.mydomain.com..C
Seq: 1 ACK..Via: SIP/2.0/UDP 202.129.60.29:5060;branch=z9hG4bK3a55f81c5965c
764aaeca31f1062d866..Content-Length: 0....
#
U 202.129.60.29:5060 -> 192.168.1.4:5060
BYE sip:24026399@192.168.1.4 SIP/2.0..Max-Forwards: 70..To: 24026399 <sip:2
4026399@202.129.60.29>;tag=as75749e4f..From: <sip:027518885@202.129.60.29:5
060>;tag=3478413096-111339..Contact: <sip:027518885@202.129.60.29:5060;tgrp
="cat-non-ss7">..Call-ID: 314892-3478413096-111282@cat-msc1.mydomain.com..C
Seq: 2 BYE..Via: SIP/2.0/UDP 202.129.60.29:5060;branch=z9hG4bK4449ab5cabb9c
dd2fe5ae00b564559d6..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=z9hG4bK4449ab5ca
bb9cdd2fe5ae00b564559d6;received=202.129.60.29..From: <sip:027518885@202.12
9.60.29:5060>;tag=3478413096-111339..To: 24026399 <sip:24026399@202.129.60.
29>;tag=as75749e4f..Call-ID: 314892-3478413096-111282@cat-msc1.mydomain.com
..CSeq: 2 BYE..User-Agent: Asterisk PBX..Allow: INVITE, ACK, CANCEL, OPTION
S, BYE, REFER, SUBSCRIBE, NOTIFY, INFO..Supported: replaces..Content-Length
: 0....
ย้อนกลับไปยัง Elastix - Unified Communications Software
กำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และ บุคคลทั่วไป 6 ท่าน