[asterisk-bugs] [Asterisk 0010882]: Settings in sip.conf are not processed

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Oct 4 08:52:42 CDT 2007


The following issue has been REOPENED. 
====================================================================== 
http://bugs.digium.com/view.php?id=10882 
====================================================================== 
Reported By:                BuddyButterfly
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   10882
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
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-04-2007 00:34 CDT
Last Modified:              10-04-2007 08:52 CDT
====================================================================== 
Summary:                    Settings in sip.conf are not processed
Description: 
OSes:
 1. SuSE 9.3, Kernel 2.6.11
 2. Debian etch 4.0, Kernel 2.6.18

Asterisk version: 1.4.11

When I started with Asterisk I really lost some of my hair due to this
problem. The result was that specific settings in sip.conf did not work and
didn't show up in the debug files. It seemed they were ignored. I used the
standard template
 and left the comments in it as an help. To separate configuration from
comments
 I added all settings at the end of the comment section. The problem was,
that
 the settings like externhost, sipdebug etc. did not work. By chance I
discovered that setting the sipdebug by activating it at the place where it
was
 commented out, it worked. So placing all settings at the beginning of the

comment section just after the [general] context solved the problem. This
can
be easily reproduced by placing the properties directly at the end of the

comment section (for example sipdebug, externhost).

To me this looks like that properties are ignored depending on the
position in
the config file.

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

---------------------------------------------------------------------- 
 BuddyButterfly - 10-04-07 08:52  
---------------------------------------------------------------------- 
Hi,

thanks for the clarification. I am sorry but I do not totally agree. The
following
listed config structures should be the same and should not lead to ignore
settings:

(1)
   [generell]
   context=default
   sipdebug=true
   externhost=host
   externrefresh=600

   localnet=...
   localnet=...
   localnet=...
   localnet=...

   [othercontext1]
   [othercontext2]
   [othercontext3]
   [othercontext4]
   .
   .
   .

(2)
   [generell]
   context=default

   ;
   ; lots of documentation and commented out settings
   ; as in the default template configuration
   ; ...
   ;

   sipdebug=true
   externhost=host
   externrefresh=600

   localnet=...
   localnet=...
   localnet=...
   localnet=...

   [othercontext1]
   [othercontext2]
   [othercontext3]
   [othercontext4]
   .
   .
   .

Both configurations should be working! I can not see the location in the
documentation that states that this is not working. Just by placing some
settings in the same context after comment blocks should not lead to
errors.
Is this really intended? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-04-07 08:52  BuddyButterfly Note Added: 0071452                          
======================================================================




More information about the asterisk-bugs mailing list