提示: 作者被禁止或刪除 內容自動屏蔽

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

原帖由 yhfung 於 2009-7-6 16:30 發表
在extensions.conf里

exten => _3X.,1,Dial(SIP/${EXTEN:1}@iptel,,r)

上面的iptel是一个在sip.conf里的iptel label,它会吧lable下的host=iptel.org放回去,如果你用iptel.org, 跟本不是用registered SIP Channel打, ...



在網上查過trixbox® Maintenance Guides了,One Way Audio Issues的確是跟NAT有關係,解決方案真的是要把nat 改為 yes的。YHFung兄沒有發生此問題,我只能說句"YMMV"。

Solving One Way Audio Issues

If you are experiencing one way audio, you have not set up the sip_nat.conf file. It needs to be set up as follows:

edit /etc/asterisk/sip_nat.conf

For those using a static internet IP Address, insert the following into the sip_nat.conf file:
nat=yes
externip=your internet IP Address here
localnet=192.168.0.0/255.255.255.0

You must replace 192.168.0 with the first three parts of your network IP Address


For those using a dynamic internet IP Address, you need to configure dynamic DNS on your network. You can simply set up a host on http://www.dyndns.org. Once set up, you can configure your sip_nat.conf file as follows:
nat=yes
externhost=your dyndns hostname here
localnet=192.168.0.0/255.255.255.0

You must replace 192.168.0 with the first three parts of your network IP Address

After configuring your sip_nat.conf file, you need to restart Asterisk

TOP

原帖由 yhfung 於 2009-7-6 19:50 發表
不知道bubblestar兄的问题解决没有呢?

角色



並沒有解決全部問題。我慣性尋根究底,一定要查出原因,所以進度會比較慢。明白了及SETTLE之後自然會加快的。

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

原帖由 yhfung 於 2009-7-7 09:29 發表
單邊聲音問題,用nat=yes去解決

因為bubblestar兄的話機單邊聲音問題,我特意把我的SPA2100做factory reset後,PC port沒有做Bridge mode,沿用NAT mode,然後我用fixed IP接入SPA2100 WAN口。

在sip.conf文體裡,nat=no或者na ...

如果有用asterisk, 建議從以下方式解決
在asterisk console輸入
sip set debug on
rtp set debug on
在通話時, console會不斷出 訊息, 在哪個ip收到rtp訊息, 正常來說, 雙方通話時會應有兩個ip...
(for no re-invite only)
以下為example:
Sent RTP packet to      192.168.0.250:16422 (type 00, seq 030272, ts 186016, len 000160)
Got  RTP packet from    192.168.0.250:16422 (type 00, seq 005591, ts 275746554, len 000160)
Sent RTP packet to      202.85.241.100:19930 (type 00, seq 061008, ts 275746552, len 000160)
Got  RTP packet from    202.85.241.100:19930 (type 00, seq 014329, ts 1394316638, len 000080)
Got  RTP packet from    202.85.241.100:19930 (type 00, seq 014330, ts 1394316718, len 000080)
Sent RTP packet to      192.168.0.250:16422 (type 00, seq 030273, ts 186176, len 000160)
Got  RTP packet from    192.168.0.250:16422 (type 00, seq 005592, ts 275746714, len 000160)
Sent RTP packet to      202.85.241.100:19930 (type 00, seq 061009, ts 275746712, len 000160)
Got  RTP packet from    202.85.241.100:19930 (type 00, seq 014331, ts 1394316798, len 000080)
Got  RTP packet from    202.85.241.100:19930 (type 00, seq 014332, ts 1394316878, len 000080)
Sent RTP packet to      192.168.0.250:16422 (type 00, seq 030274, ts 186336, len 000160)
Got  RTP packet from    192.168.0.250:16422 (type 00, seq 005593, ts 275746874, len 000160)
Sent RTP packet to      202.85.241.100:19930 (type 00, seq 061010, ts 275746872, len 000160)
Got  RTP packet from    202.85.241.100:19930 (type 00, seq 014333, ts 1394316958, len 000080)

從以上得知, 192.168.0.250 和 202.85.241.100 (pennytel) 都能夠成功發送/接收asterisk發出的rtp資料..(岩岩順便試過用pccw/hkbn tracert 202.85.241.100, pccw連線能力及穩定性遠較hkbn好)


在sip header 中也會看到如下...
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 276

v=0
o=root 152398553 152398554 IN IP4 [SERVER PUBLIC IP]
s=LamSoft PBX
c=IN IP4 [SERVER PUBLIC IP]
t=0 0
m=audio 20006 RTP/AVP 0 18 101
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

asterisk 會正確告訴給peers知道用甚麼ip進行rtp訊息交換, 這兒那個[SERVER PUBLIC IP]不可能會是internal IP, 如果是的話, 要修改sip.conf的設定了

TOP

|------------------------------------------------------------------------------------------|
|                                      WinMTR statistics                                   |
|                       Host              -   %  | Sent | Recv | Best | Avrg | Wrst | Last |
|------------------------------------------------|------|------|------|------|------|------|
|                --------------------------------------- -    0 |  230 |  230 |    0 |    2 |  203 |   31 |
|                061093019129.ctinets.com -    0 |  230 |  230 |    0 |    6 |   47 |    0 |
|                061238169049.ctinets.com -    0 |  230 |  230 |    0 |    2 |  172 |    0 |
|                061244232250.ctinets.com -    0 |  230 |  230 |    0 |   10 |  219 |    0 |
|                061244232186.ctinets.com -    0 |  230 |  230 |    0 |    2 |   16 |    0 |
|                        att-RGE.hkix.net -   11 |  229 |  205 |    0 |    3 |   31 |    0 |
|         ausydn2102er1-2-0.au.ip.att.net -    0 |  229 |  229 |  125 |  148 |  250 |  141 |
|                            32.114.120.6 -    0 |  229 |  229 |  125 |  336 | 3641 |  172 |
|                          202.85.241.100 -    2 |  229 |  225 |  140 |  157 |  266 |  203 |
|________________________________________________|______|______|______|______|______|______|
   WinMTR - 0.8. Copyleft @2000-2002 Vasile Laurentiu Stanimir  ( stanimir@cr.nivis.com )

HKBN連接海外gateway時有11% loss, 連接pennytel server有2% loss
在語音通話時, 如果有高達5% loss時會開始感覺到音質受到影響了
同時也要注意, ping值時高時低, 十分不穩定...最低有140ms, 最高達266ms, 以asterisk每20ms傳送一個rtp packet , 接受的那方會有機會收到不順序的rtp packet...

TOP