2011-01-20 3 views
1

私はアスタリスクサーバーがインストールされていると私はNATの設定(アスタリスク)

*CLI> sip show peers 

Name/username   Host   Dyn Nat ACL Port  Status  

2000/2000    (Unspecified) D   5060  Unmonitored 


2005/2005    (Unspecified) D *N * 0  Unmonitored 

6 sip peers [Monitored: 0 online, 0 offline Unmonitored: 5 online, 1 offline] 

をしようとすると、いくつかのSIPユーザーを登録している私は、このためのような特定のSIPユーザのNAT設定を構成する方法を教えてくださいケース2000はNATをブランクに、2005にNATをNとして設定します。

答えて

0

CLIを使用してsip * .confを編集することができます(設定に従って)。今アスタリスクNATサポートは、これらのオプションに進化してきたことで

nat = no    ; Do no special NAT handling other than RFC3581 
nat = force_rport  ; Pretend there was an rport parameter even if there wasn't 
nat = comedia   ; Send media to the port Asterisk received it from regardless of where the SDP says to send it. 
nat = auto_force_rport ; Set the force_rport option if Asterisk detects NAT (default) 
nat = auto_comedia  ; Set the comedia option if Asterisk detects NAT 

nattedユーザーのためcanreinvite =なしを設定することを忘れないでください。

Iは、ユーザのために、以下の実施例を示した681

[681] 
deny=0.0.0.0/0.0.0.0 
type=friend 
secret=123456 
qualify=yes 
port=5060 
nat=yes 
dtmfmode=rfc2833 
dial=SIP/681 
context=from-internal 
canreinvite=no 
callgroup= 
callerid=device <681> 
accountcode= 
call-limit=50 
関連する問題