ปัญหาดังกล่าวเกิดขึ้นแบบสุ่ม คือเป็นสลับไม่เป็นอยู่ตลอดเวลาครับ ผมได้ capture ด้วย ngrep มาเพื่อเปรียบเทียบดังนี้ครับ
ตอนที่โทรได้ปกติ จะเห็นว่ามีการส่ง Audio ไป-มา ทั้งสองฝั่ง
- โค้ด: เลือกทั้งหมด
U 203.113.125.82:5060 -> 192.168.52.33:5060
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 192.168.52.33:5060;received=58.xxx.xxx.1;branch=z9hG4bK6fdb9379;rport=5060.
From: "326" <sip:06000xxxxx@203.113.125.82>;tag=as50ffcb34.
To: <sip:02512xxxx@203.113.125.82:5060>;tag=SDg36d299-ucDA231D9B.
Call-ID: 6c1e47506182aa9450a2d35158fe96e1@203.113.125.82.
CSeq: 102 INVITE.
Content-Type: application/sdp.
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,UPDATE,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,MESSAGE.
Contact: <sip:02512xxxx@203.113.125.82:5060;transport=udp>.
Content-Length: 241.
.
v=0.
o=UTSTARCOM 0 0 IN IP4 203.113.125.82.
s=-.
c=IN IP4 203.113.125.82.
t=0 0.
m=audio 21176 RTP/AVP 0 101 18 8 4 102 105.
a=sendrecv.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=rtpmap:102 vbd/8000.
a=rtpmap:105 CLEARMODE/8000.
U 192.168.52.33:13270 -> 203.113.125.82:21176
...e....@........~.~}.|w|yv{yxwv{}~.~..~..y{}wz}|{|}.}}~zxx{vw.{t{~yy{}.{{..~~{ywuy{ww.|w.}t|yv{{..~}.~wy}|wt}}w{}|}..}..||}xxxusv{z}|{~|||xu{.yxxx|yw}{x..z|~{z|}}~}}~yy}|.
U 203.113.125.82:21176 -> 192.168.52.33:13270
.....j..(.dO.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7
U 192.168.52.33:13270 -> 203.113.125.82:21176
...f...p@....xz~uv.{uz.|z..tz.yz.xw}zz~.{{..~......yx..}|.{{.yxysz|vz{}yv}zy..{..||yvy{xw|}ywyvx}~}wxy|~|......~...~}zy|.~z|zwzxtv|{x|..~~.||.~~.wuxyzx|.wy.zt{xv}|x{|}.~|~z
U 203.113.125.82:21176 -> 192.168.52.33:13270
.....j..(.dO.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7
U 192.168.52.33:13270 -> 203.113.125.82:21176
...g....@...z..z~.zy.yv{wz.zu~~y{{yy{.|x~zw..~.{w|.}z|z{|~}z{~wz}usxyux~.}}........~}xwxyy{~.}~.{}{wzttzvv{wy|y..{..{w|.vy....~.z}.|zyzz~{xzxzzy|wz.zz.}}...}|..~zyysu{tuxuz
U 203.113.125.82:21176 -> 192.168.52.33:13270
.....j.)(.dO.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7
U 192.168.52.33:13270 -> 203.113.125.82:21176
...h....@....~{~~..~....|xy||y{~xx}|zxwvuwyz}|z..~....{uzyw{}}|}.}z.~w|~yw|}xv{}{~~zyxwvzwt{~{}...}|wu{|z}...~}~.}xy}.}}}||{yz}}x{.}|..}}yru}xu..||}{wx.....~...|v{.|}.zz|~.
U 203.113.125.82:21176 -> 192.168.52.33:13270
.....j..(.dO.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7.*)),1=]..........I7
อันนี้เป็นตอนไม่ปกติ จะเห็นว่าทาง TOT ไม่ได้ส่ง Audio มา หรือว่าส่งมาแล้วไม่ผ่าน NAT Router มาถึง Elastix?
- โค้ด: เลือกทั้งหมด
U 203.113.125.82:5060 -> 192.168.52.33:5060
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 192.168.52.33:5060;received=58.xxx.xxx.1;branch=z9hG4bK055caad4;rport=5060.
From: "326" <sip:06000xxxxx@203.113.125.82>;tag=as3bf683bf.
To: <sip:02512xxxx@203.113.125.82:5060>;tag=SDm75vf99-ucFD35BDD3.
Call-ID: 51ca8d4f2c1173bf4f74254e7871c0d1@203.113.125.82.
CSeq: 102 INVITE.
Content-Type: application/sdp.
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,UPDATE,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,MESSAGE.
Contact: <sip:02512xxxx@203.113.125.82:5060;transport=udp>.
Content-Length: 241.
.
v=0.
o=UTSTARCOM 0 0 IN IP4 203.113.125.82.
s=-.
c=IN IP4 203.113.125.82.
t=0 0.
m=audio 23144 RTP/AVP 0 101 18 8 4 102 105.
a=sendrecv.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=rtpmap:102 vbd/8000.
a=rtpmap:105 CLEARMODE/8000.
U 192.168.52.33:15090 -> 203.113.125.82:23144
..7.....mp..yz}|z{}~}{{}~{x|..{vz|z|~||}{{..|z~{y}~}|~{vy..ww.....|{||~.}vu~.ur{.|z||z|..}...x{|z|}yxzzz~..y{~{{}zvsw~}uv~}{|~~ytv{~.....~.....{x|.zru{}|wtz.zutw{}zuy...~..
U 192.168.52.33:15090 -> 203.113.125.82:23144
..7.....mp..~...{{|~|xuw...~..yx~.~qnsy}}{yyywxxx{.~{yz|~..z|}~~|{...~xv|..|spw|yy~.zyvsuz||||}...{...~}{uty}}..|x...|{~|tu{wu}.}{...xrsz~zz.~|..ztx}|{yx{|}|{}.|wvxyy}}vv{}
U 192.168.52.33:15090 -> 203.113.125.82:23144
..7....Hmp...|x}........}wv|.{yz||xu{}|.~||yz~.}}|}.....z|.|vvz|zz}ztuvstvwy|{y...{}~{wwzzz|{}.{x|.....}~...}y}.|zz{}zwz~|vtvuuwz}.~~....|}...}|zwy~|uv~}wxzvv|}wsw}}|||..{x
U 192.168.52.33:15090 -> 203.113.125.82:23144
..7.....mp.....~}xvy......~}~.~}~..}|..|uv|.zvyzurvzyvz......~..zyyy{|{x{..{x|}ytuy||xwwutz~|z|..~|{ywy}~.}|~....{||z}.}z{}|ywy|yxz|.~zy|{|..~}}...}vwzvv{|y|}wuvwwsrvxuu|..
U 192.168.52.33:15090 -> 203.113.125.82:23144
..7.....mp..{|..yz...~..zx~..}yx}~xtyzrnrxww|...{}.|xy}}yz{y|......~{...wz~zwz{{yvvuvwty.|{~~}....}.....}|xx..||...}|}zqotvtuww|.}~..|y..{|....~z~~vu..yv}~zyz|}{|||~~~~{|{u
U 192.168.52.33:15090 -> 203.113.125.82:23144
..7....(mp..v~.....}yx{}yyzz|{xz|{|{xwyz|}~}|yuy{z}.{v{.~~..}~~{y{|{{{yz}|{zww}..}yz}}|{|{wx~..|y|.~xw|{wx}|xx{yz}}..{...zwxvsx~ztt{..{{...{{}.....~|{yxxxxwxz}~}}|zwy~~{{{z
U 192.168.52.33:15090 -> 203.113.125.82:23144
..7.....mp..yxy}zx......{z|~.~{|zx{..{w{}|{yy|{z...{~.}}..xutrwzuqpv........~|wvz..}wz.|x{..wuvwyyx{yvz.}z~.....x~.zw|}wvxtt|.yw..|z|~}zyz{}..}}|ytuz{wy{x{~{{.|utz.~.......
U 192.168.52.33:15090 -> 203.113.125.82:23144
..7....hmp.....{xw{}z}.{~..xsx~}yyz|~ytwxvrrz.|y{|z}....{wy......|}~uptvux|xz.}xx{yvy..xtz.......}x|..}~}zzwvy{z{}{{yww{.....y{..zxxvx~..}|~{z{|...~}{ysqy~|zrou{}}~.~y{}yw{
หมายเหตุ: เนื่องจาก ADSL ของผมเป็น Fixed IP ผมได้ลองตั้งค่า externip และ localnet พร้อม forward port จาก Router ดูแล้ว ปัญหาก็ยังเป็นเหมือนเดิมครับ ไม่แตกต่างกันเลย
รบกวนแนะนำวิธีแก้ปัญหาด้วยครับ
ขอบคุณมากครับ