[asterisk-bugs] [Asterisk 0010907]: "port" configuration parameter conflicts with runtime status

noreply at bugs.digium.com noreply at bugs.digium.com
Sun Dec 30 14:37:19 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10907 
====================================================================== 
Reported By:                dimas
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10907
Category:                   PBX/pbx_realtime
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.11  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             10-06-2007 14:53 CDT
Last Modified:              12-30-2007 14:37 CST
====================================================================== 
Summary:                    "port" configuration parameter conflicts with
runtime status
Description: 
When IAX/SIP updates realtime database on peer registration etc, it updates
(among others) "ipaddr" and "host" columns. The problem is that "port" is 
also an input parameter for peer configuration.

Why this is a problem:

1. It is just not good that one of important peer configuration parameters
gets overwritten with runtime data. As I understand currently it is not a
problem but what if in the future, "input" port parameter will allow
specifying multiple ports or name instead of value for example? As soon as
channel driver registers the peer and updates realtime, original
configuration value is lost.

2. Realtime behaviour is just inconsistent with what you do with the text
file config. With text files, you can completely omit "port" parameter from
both [general] section and from specific peer sections. This will cause
default port to be used. With realtime, you HAVE TO specify port. Otherwise
default 0/NULL value will be used and nothing will work.

====================================================================== 

---------------------------------------------------------------------- 
 sergee - 12-30-07 14:37  
---------------------------------------------------------------------- 
dimas,

For SIP, asterisk updates port only for dynamic peers (peers that send
REGISTER message). Usualy they has host field set to 'dynamic'. I can't
imagine , why would you need to configurre port for peers where you don't
know exact ip address. Asterisk doesn't update static peers (with host !=
dynamic) at all.

as for port, you must configure it for static peer, for dynamic peers it
will be calculated (and stored) during Registration.

If you have default value for port 0 or NULL, maybe it is a problem of
your RDBMS? maybe you should change 0/NULL to proper default value
(5060/4569)? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-30-07 14:37  sergee         Note Added: 0076161                          
======================================================================




More information about the asterisk-bugs mailing list