การรับเบอร์ DID มาทาง SIP Trunk

Elastix IP Pbx

Moderator: jubjang

Re: การรับเบอร์ DID มาทาง SIP Trunk

โพสต์โดย voip4share » 22 มี.ค. 2010 17:56

งั้น
insecure=very
ครับ
:D
voip4share
Administrator
 
โพสต์: 656
ลงทะเบียนเมื่อ: 18 พ.ย. 2009 11:26
ที่อยู่: รามคำแหง กรุงเทพฯ

Re: การรับเบอร์ DID มาทาง SIP Trunk

โพสต์โดย nepenthes » 22 มี.ค. 2010 18:09

แก้ สลับก็ยังเป็นสายไม่ว่าง
โค้ด: เลือกทั้งหมด
  * 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....
nepenthes
Gold Member
 
โพสต์: 113
ลงทะเบียนเมื่อ: 09 มี.ค. 2010 10:46

Re: การรับเบอร์ DID มาทาง SIP Trunk

โพสต์โดย nepenthes » 22 มี.ค. 2010 19:32

พี่หนุ่ย ผมไปลองตั้งตาม คุณ ccjpn มันโทรติดเลยครับ

มันต่างกันยังไงครับ งง อยู่

โค้ด: เลือกทั้งหมด
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
nepenthes
Gold Member
 
โพสต์: 113
ลงทะเบียนเมื่อ: 09 มี.ค. 2010 10:46

Re: การรับเบอร์ DID มาทาง SIP Trunk

โพสต์โดย nepenthes » 22 มี.ค. 2010 19:33

ตอนนี้ มันโทรแล้วจะเป็น the number is not service please check number and try again

ประมาณนี้ เดี๋ยวงมก่อน แล้วจะมาถามใหม่ครับ
nepenthes
Gold Member
 
โพสต์: 113
ลงทะเบียนเมื่อ: 09 มี.ค. 2010 10:46

Re: การรับเบอร์ DID มาทาง SIP Trunk

โพสต์โดย voip4share » 22 มี.ค. 2010 21:07

Trunk เพิ่มบรรทัดไรบ้างครับเนี่ย

ตอนโทรเข้าผมเห็นมีแบบนี้ด้วยครับ

INVITE sip:s@192.168.1.4:5060

ตัว s มันไม่มีอยู่ใน context from-trunk ก็เลยมีเสียงบอกว่ากดเบอร์ผิดครับ แต่ทำไม CAT ไม่ส่งมาเป็น INVITE sip:24026399@192.168.1.4:5060 งง เพราะก่อนหน้านี้ยังส่งมาเป็นแบบนี้เลยครับ
voip4share
Administrator
 
โพสต์: 656
ลงทะเบียนเมื่อ: 18 พ.ย. 2009 11:26
ที่อยู่: รามคำแหง กรุงเทพฯ

Re: การรับเบอร์ DID มาทาง SIP Trunk

โพสต์โดย nepenthes » 23 มี.ค. 2010 00:07

ลืมใส่ /username ตรง regsiter ครับ


ตอนนี้โทรเข้าแล้ว

ผมใช้โค๊ดแบบนี้อยู่
โค้ด: เลือกทั้งหมด
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



แต่ มัน ตอนนี้ มันโทรแล้วจะเป็น the number is not service please check number and try again


โค้ด: เลือกทั้งหมด
[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....
nepenthes
Gold Member
 
โพสต์: 113
ลงทะเบียนเมื่อ: 09 มี.ค. 2010 10:46

Re: การรับเบอร์ DID มาทาง SIP Trunk

โพสต์โดย voip4share » 23 มี.ค. 2010 09:13

แสดงว่าไม่ได้เกี่ยวอะไรกับ 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 มันถึงจะมีผล

ลองดูครับ
voip4share
Administrator
 
โพสต์: 656
ลงทะเบียนเมื่อ: 18 พ.ย. 2009 11:26
ที่อยู่: รามคำแหง กรุงเทพฯ

Re: การรับเบอร์ DID มาทาง SIP Trunk

โพสต์โดย nepenthes » 23 มี.ค. 2010 09:54

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 มันถึงจะมีผล

ลองดูครับ


ครับ เดี๋ยวลองดูก่อนนะครับ

ว่าแต่ พี่ใช้ DID ที่ไหน เผื่อไปลองเอามาใช้มั่ง
nepenthes
Gold Member
 
โพสต์: 113
ลงทะเบียนเมื่อ: 09 มี.ค. 2010 10:46

Re: การรับเบอร์ DID มาทาง SIP Trunk

โพสต์โดย voip4share » 23 มี.ค. 2010 10:13

เป็นเบอร์ DID ที่เอามาใช้งานเอง ตอนแรกมีเพียบเลยเพราะกะว่าคงจะมีคนนิยมเป็นแน่ ไม่ต้องเสียค่าติดตั้ง ไม่ต้องเสียค่าเดินสายโทรศัพท์ แต่ปรากฏว่าไม่มีคนนิยม นานประมาณ 2 ปีมาแล้วครับ (สงสัยเทคโนโลยียังใหม่อยู่อ่ะครับ) ก็เลยคืนเจ้าของเขาไปแล้ว เหลือใช้เองไม่กี่เบอร์ ให้ยืมลองเล่นได้นะครับแต่ได้ไม่นาน สักอาทิตย์นึง :) คุณ nepenthes อยากเทสก็เมล์มาได้ครับ

เอ่อ ไม่ทราบคุณ nepenthes ชื่ออะไรครับ ชื่อเล่นก็ได้
voip4share
Administrator
 
โพสต์: 656
ลงทะเบียนเมื่อ: 18 พ.ย. 2009 11:26
ที่อยู่: รามคำแหง กรุงเทพฯ

Re: การรับเบอร์ DID มาทาง SIP Trunk

โพสต์โดย nepenthes » 24 มี.ค. 2010 16:59

ผมชื่อ ทิม ครับ พี่หนุ่ย เดี๋ยวต้นๆเดือนหน้าขอนัดพี่กินข้าวหน่อย อยากเจอตัวเป็นๆ :D

ลองแก้ เป็นแบบนี้ครับ
[outbound]
โค้ด: เลือกทั้งหมด
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



[inbound]
โค้ด: เลือกทั้งหมด
username=2402xxxx
user=2402xxxx
type=peer
insecure=port,invite
host=202.129.60.29
fromdomain=202.129.60.29
dtmfmode=rfc2833
context=from-trunk


Register string
โค้ด: เลือกทั้งหมด
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....


เอาไงดีหนอ

ถ้าทำสำเร็จผมของเขียนบทความนี้นะครับ

การรับ DID จาก CAT ฮ่าาๆๆๆ
nepenthes
Gold Member
 
โพสต์: 113
ลงทะเบียนเมื่อ: 09 มี.ค. 2010 10:46

ย้อนกลับต่อไป

ย้อนกลับไปยัง Elastix - Unified Communications Software

ผู้ใช้งานขณะนี้

่กำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และ บุคคลทั่วไป 1 ท่าน

cron