[asterisk-bugs] [Asterisk 0018903]: Crash in res_phoneprov on reload

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Mar 2 08:52:58 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18903 
====================================================================== 
Reported By:                pdugas
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18903
Category:                   Resources/res_phoneprov
Reproducibility:            sometimes
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           1.8.2.3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-03-01 20:10 CST
Last Modified:              2011-03-02 08:52 CST
====================================================================== 
Summary:                    Crash in res_phoneprov on reload
Description: 
I've been working with a new 1.8.2.2 setup using the RPMs served up in the
YUM repository.  I'm using res_phoneprov and the built-in HTTP server to
configure a batch of Polycom phones.  All's usually working well.

Occasionally, when I "reload" from the CLI to apply some dialplan tweaks
or add some users.conf entries, I'm crashing Asterisk and getting core
files in /tmp.  I managed to get stack traces from a few of them tonight
and they're all the same.  See "Additional Information" below.

*** NOTE: The "Asterisk Version" field doesn't include 1.8.2.2 so I choose
1.8.2.3.  I hope this doesn't lead someone astray.
====================================================================== 

---------------------------------------------------------------------- 
 (0132526) pdugas (reporter) - 2011-03-02 08:52
 https://issues.asterisk.org/view.php?id=18903#c132526 
---------------------------------------------------------------------- 
The profile templates are working for me though I'll not argue that they're
not the cause of this crash.  I put all my common settings in the
[polycom-template] section then inherit them in the [polycom] and
[polycom-remote] sections where I set the REMOTE variable to 0 or 1.  In my
phone1_316-reg.xml file (which is used with a call to PP_EACH_EXTENSION()
in phone1_316.cfg) I can do things like so:

 
reg.${LINE}.server.1.address="${IF($[${REMOTE}=1]?${REMOTE_SERVER}:${SERVER})}"
 
reg.${LINE}.server.1.port="${IF($[${REMOTE}=1]?${REMOTE_SERVER_PORT}:${SERVER_PORT})}"

Entries in my users.conf file have autoprov=yes, macaddress is set, and
profile set to either "polycom" or "polycom-remote".  Stations that I give
to users who work from home use the later.  Local stations use the former.

This works fine. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-02 08:52 pdugas         Note Added: 0132526                          
======================================================================




More information about the asterisk-bugs mailing list