ข้างล่างจะเป็นที่ผมเก็บจาก Ngrep มาครับ และก็ไฟล์ Config ต่างๆครับ
#
U 192.168.0.41:60843 -> 192.168.0.8:5060
ACK sip:50863278001@192.168.0.8 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.41:6084
3;branch=z9hG4bK-d8754z-5553ea318407c97a-1---d8754z-;rport..To: "5086327800
1"<sip:50863278001@192.168.0.8>;tag=as636bb438..From: "170"<sip:170@192.168
.0.8>;tag=3f61df40..Call-ID: NjRiNWE2OTdiNWEwNTk1MDVhMTExMzg5MmMwNzhiMGQ...
CSeq: 2 ACK..Content-Length: 0....
#
U 61.90.255.132:5060 -> 192.168.0.8:5060
SIP/2.0 100 Trying..Via: SIP/2.0/UDP 192.168.0.8:5060;received=124.157.137.
171;branch=z9hG4bK634dcee8;rport=27088..From: "Tor" <sip:98100006479@61.90.
255.132>;tag=as44e2a3da..To: <sip:0863278001@61.90.255.132>..Call-ID: 29bc6
8230fb5ac5b3c90beb90d33d7b8@61.90.255.132..CSeq: 102 INVITE....
#
U 192.168.0.8:5060 -> 61.90.255.132:5060
CANCEL sip:0863278001@61.90.255.132 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.8:5
060;branch=z9hG4bK634dcee8;rport..From: "Tor" <sip:98100006479@61.90.255.13
2>;tag=as44e2a3da..To: <sip:0863278001@61.90.255.132>..Call-ID: 29bc68230fb
5ac5b3c90beb90d33d7b8@61.90.255.132..CSeq: 102 CANCEL..User-Agent: chokdeed
imsum..Max-Forwards: 70..Content-Length: 0....
#
U 61.90.255.132:5060 -> 192.168.0.8:5060
SIP/2.0 403 Forbidden..Via: SIP/2.0/UDP 192.168.0.8:5060;received=124.157.1
37.171;branch=z9hG4bK634dcee8;rport=27088..From: "Tor" <sip:98100006479@61.
90.255.132>;tag=as44e2a3da..To: <sip:0863278001@61.90.255.132>;tag=aprqngfr
t-3ktkhn10000c6..Call-ID: 29bc68230fb5ac5b3c90beb90d33d7b8@61.90.255.132..C
Seq: 102 INVITE....
#
U 192.168.0.8:5060 -> 61.90.255.132:5060
ACK sip:0863278001@61.90.255.132 SIP/2.0..Via: SIP/2.0/UDP 192.168.0.8:5060
;branch=z9hG4bK634dcee8;rport..From: "Tor" <sip:98100006479@61.90.255.132>;
tag=as44e2a3da..To: <sip:0863278001@61.90.255.132>;tag=aprqngfrt-3ktkhn1000
0c6..Contact: <sip:98100006479@192.168.0.8>..Call-ID: 29bc68230fb5ac5b3c90b
eb90d33d7b8@61.90.255.132..CSeq: 102 ACK..User-Agent: chokdeedimsum..Max-Fo
rwards: 70..Content-Length: 0....
#
U 61.90.255.132:5060 -> 192.168.0.8:5060
SIP/2.0 200 OK..Via: SIP/2.0/UDP 192.168.0.8:5060;received=124.157.137.171;
branch=z9hG4bK634dcee8;rport=27091..From: "Tor" <sip:98100006479@61.90.255.
132>;tag=as44e2a3da..To: <sip:0863278001@61.90.255.132>;tag=aprqngfrt-3ktkh
n10000c6..Call-ID: 29bc68230fb5ac5b3c90beb90d33d7b8@61.90.255.132..CSeq: 10
2 CANCEL....
Sip.conf- โค้ด: เลือกทั้งหมด
[general]
context=default
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
tlsenable=no
tlsbindaddr=0.0.0.0
srvlookup=yes
maxexpiry=300
minexpiry=60
defaultexpiry=120
disallow=all
allow=g729
allow=g723
allow=alaw
allow=ulaw
canreinvite=no
nat=yes
realm=chokdeedimsum.com
callerid=chokdeedimsum
useragent=chokdeedimsum
sdpsession=chokdeedimsum
usereqphone=yes
dtmfmode=rfc2833
videosupport=no
t38pt_udptl=yes
t38pt_usertpsource=yes
registertimeout=60
registerattempts=0
canreinvite=no
pedantic=yes
#include sip_registers.conf
#include sip_trunks.conf
#include sip_clients.conf
sip_trunks.conf- โค้ด: เลือกทั้งหมด
[TrueVOIP]
host=61.90.255.132
fromdomain=61.90.255.132
outboundproxy=61.90.255.132
insecure=port,invite
realm=huawei
port=5060
username=98100006478
secret=password
type=peer
disallow=all
allow=g729
allow=g723
dtmfmode=rfc2833
fromuser=98100006478
context=default
call-limit=1
qualify=yes
[TrueVOIP2]
host=61.90.255.132
fromdomain=61.90.255.132
outboundproxy=61.90.255.132
insecure=port,invite
realm=huawei
port=5060
username=98100006479
secret=password
type=peer
disallow=all
allow=g729
allow=g723
dtmfmode=rfc2833
fromuser=98100006479
context=default
call-limit=1
qualify=yes
extensions_true_nettalk.conf- โค้ด: เลือกทั้งหมด
[from-trunk-true-nettalk]
exten => _8X.,1,Goto(from-internal,100,1)
exten => _8X.,n,Hangup
exten => _9X.,1,Goto(from-internal,100,1)
exten => _9X.,n,Hangup
exten => _50X.,1,Dial(SIP/${EXTEN:1}@TrueVOIP,30,tT)
exten => _50X.,n,Dial(SIP/${EXTEN:1}@TrueVOIP2,30,tT)
exten => _50X.,n,Goto(1)
exten => _59[89]XXXXXXXXXX,1,Dial(SIP/${EXTEN:1}@true_nettalk,30,tT)
exten => _59[89]XXXXXXXXXX,n,Hangup