Ticket #4681 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

SIP and IAX Settings pages: Deprecated: Comments starting with '#' are deprecated

Reported by: bill_hiatt1 Assigned to: p_lindheimer
Priority: minor Milestone: 2.9
Component: Asterisk SIP Settings Version: 2.8-branch
Keywords: Deprecated: Comments '#' Cc:
Confirmation: Unreviewed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

Version 2.8.0.4. SIP and IAX Settings pages:

Seeing multiple copies of the following error, once for each #include line in the sip.conf and iax.conf files. Example, this is from teh SIP Settings page and repeats for sip.conf lines 30, 43, 49, 54, 55, 59, 60 and 69. Similar situation on IAX Settings page. Deprecated: Comments starting with '#' are deprecated in /etc/asterisk/sip.conf on line 30 in /var/www/asterisk/admin/modules/sipsettings/page.sipsettings.php on line 973

Forum thread: http://www.freepbx.org/forum/freepbx/users/comments-starting-with-error-on-sip-and-iax-settings-pages-2-8-0-4

Submitting as bug per response from FreePBX Project Leader in thread.

Suggested resolution: the line in question in page.sipsettings.php is:

$sip_conf = parse_ini_file($file,true);

if that is the case, try changing it to:

$sip_conf = @parse_ini_file($file,true);

This worked for both page.sipsettings.php and page.iaxsettings.php

Change History

12/09/10 15:34:08 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.

(In [10672]) fixes #4681 precede parse_ini_file() @ to remove warnings about '#' from includes in the .conf files

12/14/10 22:46:04 changed by p_lindheimer

(In [10709]) Merged revisions 10672-10675,10687,10708 via svnmerge from http://www.freepbx.org/v2/svn/modules/branches/2.8

........

r10672 | p_lindheimer | 2010-12-09 15:34:08 -0500 (Thu, 09 Dec 2010) | 1 line

fixes #4681 precede parse_ini_file() @ to remove warnings about '#' from includes in the .conf files

........

r10708 | p_lindheimer | 2010-12-14 21:52:06 -0500 (Tue, 14 Dec 2010) | 1 line

closes #4689 have CFU followed if CHANUNAVAIL

........