[asterisk-bugs] [Asterisk 0011858]: Trunk requires externip=ip:port if bindport!=5060
noreply at bugs.digium.com
noreply at bugs.digium.com
Tue Jan 29 09:28:09 CST 2008
The following issue has been ASSIGNED.
======================================================================
http://bugs.digium.com/view.php?id=11858
======================================================================
Reported By: hmodes
Assigned To: file
======================================================================
Project: Asterisk
Issue ID: 11858
Category: Channels/chan_sip/General
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 100679
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 01-28-2008 19:31 CST
Last Modified: 01-29-2008 09:28 CST
======================================================================
Summary: Trunk requires externip=ip:port if bindport!=5060
Description:
Contrary to the configs/sip.conf in trunk, which states (regarding
externip=)
; If a port number is not present, use the "bindport" value (which
is
; not guaranteed to work correctly, because a NAT box might remap
the
; port number as well as the address).
SVN-trunk-r100679M does _not_ append bindport to externip when creating a
Via field on invite (see attached sip debug) but instead defaults to 5060.
This causes a natted sip client (cisco 7960 with nat_enable = 1) to
transmit responses to the wrong port. Specifying externip=ip:bindport
causes the Via to be created with the correct port and the phone to respond
correctly.
Relevant sip.conf general section:
[general]
context=default ; Default context for incoming calls
recordhistory=yes ; Record SIP history by default
realm=matrix.gs ; Realm for digest authentication
bindport=5066 ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
tos_audio=184
videosupport=no ; Turn on support for SIP video
sdpsession=session
allow=all
useragent=matrix.gs asterisk ; Allows you to change the user agent string
externip = *my external ip here w/o port specified*
localnet=172.27.28.0/255.255.255.0; All RFC 1918 addresses are local
networks
======================================================================
----------------------------------------------------------------------
svnbot - 01-29-08 09:28
----------------------------------------------------------------------
Repository: asterisk
Revision: 100833
U trunk/channels/chan_sip.c
------------------------------------------------------------------------
r100833 | file | 2008-01-29 09:28:08 -0600 (Tue, 29 Jan 2008) | 4 lines
Make externip work as documented. If no port is specified it will use the
value of bindport instead of always being 5060.
(closes issue http://bugs.digium.com/view.php?id=11858)
Reported by: hmodes
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=100833
Issue History
Date Modified Username Field Change
======================================================================
01-29-08 09:28 svnbot Note Added: 0081322
01-29-08 09:28 svnbot Status new => assigned
01-29-08 09:28 svnbot Assigned To => file
======================================================================
More information about the asterisk-bugs
mailing list