[asterisk-bugs] [JIRA] (ASTERISK-24687) Asterisk behind NAT sets wrong Contact Header
Lukas Hauser (JIRA)
noreply at issues.asterisk.org
Mon Jan 26 03:57:34 CST 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-24687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=224635#comment-224635 ]
Lukas Hauser commented on ASTERISK-24687:
-----------------------------------------
I now tried the same process again with asterisk 11.7.0~dfsg-1ubuntu1.
It works fine, I also attach some debug messages:
As we can see the Reg. Contact is exactly the same.
{code}
asterisk11*CLI> sip show peer 799
* Name : 799
Description :
Secret : <Set>
MD5Secret : <Not set>
Remote Secret: <Not set>
Context : localsets-common
Record On feature : automon
Record Off feature : automon
Subscr.Cont. : <Not set>
Language :
Tonezone : <Not set>
AMA flags : Unknown
Transfer mode: open
CallingPres : Presentation Allowed, Not Screened
Callgroup :
Pickupgroup :
Named Callgr :
Nam. Pickupgr:
MOH Suggest :
Mailbox :
VM Extension : asterisk
LastMsgsSent : 32767/65535
Call limit : 0
Max forwards : 0
Dynamic : Yes
Callerid : "" <>
MaxCallBR : 384 kbps
Expire : 3545
Insecure : no
Force rport : Yes
Symmetric RTP: Yes
ACL : No
DirectMedACL : No
T.38 support : Yes
T.38 EC mode : FEC
T.38 MaxDtgrm: 400
DirectMedia : No
PromiscRedir : No
User=Phone : No
Video Support: No
Text Support : No
Ign SDP ver : No
Trust RPID : No
Send RPID : No
Subscriptions: Yes
Overlap dial : No
DTMFmode : auto
Timer T1 : 500
Timer B : 32000
ToHost :
Addr->IP : PhonesPublicIP:2048
Defaddr->IP : (null)
Prim.Transp. : UDP
Allowed.Trsp : UDP
Def. Username: 799
SIP Options : 100rel from-change replaces replace timer
Codecs : (ulaw|alaw|g722)
Codec Order : (g722:20,alaw:20,ulaw:20)
Auto-Framing : No
Status : OK (53 ms)
Useragent : snom300/8.7.3.25.5
Reg. Contact : sip:799 at 192.168.1.41:2048;line=5jw4uomf
Qualify Freq : 60000 ms
Keepalive : 0 ms
Sess-Timers : Accept
Sess-Refresh : uas
Sess-Expires : 1800 secs
Min-Sess : 90 secs
RTP Engine : asterisk
Parkinglot :
Use Reason : No
Encryption : No
{code}
> Asterisk behind NAT sets wrong Contact Header
> ---------------------------------------------
>
> Key: ASTERISK-24687
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-24687
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_sip/General
> Affects Versions: 13.1.0
> Environment: ubuntu 14.04.1
> Reporter: Lukas Hauser
> Assignee: Lukas Hauser
> Severity: Critical
> Attachments: debug.log, sip-settings.log
>
>
> If asterisk is behind a statically configured NAT (e.g. with iptables), the externaddr or localnet option does not work.
> The Contact Header still contains the private IP address.
> The media_address option works.
> It also works as defined with version 11.7.0~dfsg-1ubuntu1.
> The Contact Header does not get updated in version 13.1 and 13.1.0-rc2.
> Therefore, I guess it is a bug in 13?
> Thanks!
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list