[Home]

Summary:ASTERISK-08309: Asterisk Ignoring port parameter in sip.conf
Reporter:Alex lake (alexlake)Labels:
Date Opened:2006-12-08 04:14:32.000-0600Date Closed:2006-12-08 08:56:36.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I've been trying to get Asterisk SVN-trunk-r48338 listening for SIP traffic on port 5061 instead of 5060, and it seems to be totally ignoring the setting "port = 5061" in /etc/asterisk/sip.conf.

Please advise if any diagnostics are required. I reproduce below a bit of the console output of /usr/sbin/asterisk -vvvgg:


^[[1;30;40m  == ^[[0;37;40mParsing '/etc/asterisk/sip.conf': Found
^[[1;30;40m  == ^[[0;37;40mParsing '/etc/asterisk/users.conf': Found
^[[1;30;40m  == ^[[0;37;40mSIP Listening on 0.0.0.0:5060
^[[1;30;40m  == ^[[0;37;40mUsing SIP TOS: CS0
^[[1;30;40m  == ^[[0;37;40mParsing '/etc/asterisk/sip_notify.conf': Found
^[[1;30;40m  == ^[[0;37;40mRegistered channel type 'SIP' (Session Initiation Protocol (SIP))

And the bit of sip.conf is:

[general]
context         = default
port            = 5061
bindaddr        = 0.0.0.0
nat             = no
reinvite        = no
canreinvite     = no
disallow        = all
allow           = alaw
trustrpid       = yes
sendrpid        = yes
t38pt_udptl     = yes

There is no overriding of the port setting in any individual peer.
Comments:By: Olle Johansson (oej) 2006-12-08 08:56:04.000-0600

The name is "bindport".

By: Olle Johansson (oej) 2006-12-08 08:56:34.000-0600

If you check sip.conf.sample it's now "bindport" and "bindaddr".

By: Serge Vecher (serge-v) 2006-12-08 08:56:36.000-0600

the option you need to use is 'bindport' . 'port' is for remote server when registering.