[asterisk-bugs] [Asterisk 0016018]: Asterisk 1.6.2 RC2: func_curl crashes Asterisk

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Oct 26 10:03:07 CDT 2009


The following issue has been CLOSED 
====================================================================== 
https://issues.asterisk.org/view.php?id=16018 
====================================================================== 
Reported By:                lkneschke
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16018
Category:                   Functions/func_curl
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.2.0-rc2 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-10-05 08:49 CDT
Last Modified:              2009-10-26 10:03 CDT
====================================================================== 
Summary:                    Asterisk 1.6.2 RC2: func_curl crashes Asterisk
Description: 
I'm using res_config_curl to fetch sippeers from a webserver executing a
php script.

During the development the script sometimes creates very much debug
output, when an exception is thrown for example. Maybe this creates to much
unparseable output for func_curl.

I patched res_config_curl to log the func_curl command and the return
value. Below you can find the console output:

Asterisk Ready.
  == Parsing '/etc/asterisk/cli.conf':   == Found
  == CURL command
'${CURL(http://erp2.mwdev.net/index.php?method=Voipmanager_SipRegs.handleResConfig&action=/update?name=mw-521,fullcontact=&ipaddr=&port=&regseconds=0&defaultuser=&regserver=&useragent=&lastms=)}'
  == CURL return -1
    -- Registered SIP 'mw-521' at 10.133.2.223 port 2069
  == CURL command
'${CURL(http://erp2.mwdev.net/index.php?method=Voipmanager_SipRegs.handleResConfig&action=/update?name=mw-521,ipaddr=10.133.2.223&port=2069&regseconds=1254650264&defaultuser=21&useragent=snom320%2f7.3.23&lastms=-1&fullcontact=sip%3amw-521%4010.133.2.223%3a2069%3bline%3dzx4dezz5&regserver=phonebox01)}'
phonebox01*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
phonebox01:~#

I'll attach the HTTP response as a separate file.


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

---------------------------------------------------------------------- 
 (0112740) lmadsen (administrator) - 2009-10-26 10:03
 https://issues.asterisk.org/view.php?id=16018#c112740 
---------------------------------------------------------------------- 
Closed due to lack of feedback. If the reporter is able to provide the
requested information, please reopen this issue. Thanks! 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-26 10:03 lmadsen        Note Added: 0112740                          
2009-10-26 10:03 lmadsen        Status                   feedback => closed  
======================================================================




More information about the asterisk-bugs mailing list