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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Oct 5 10:33:00 CDT 2009


The following issue requires your FEEDBACK. 
====================================================================== 
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:                     feedback
Asterisk Version:           1.6.2.0-rc2 
JIRA:                        
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-05 08:49 CDT
Last Modified:              2009-10-05 10:33 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.


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

---------------------------------------------------------------------- 
 (0111843) lmadsen (administrator) - 2009-10-05 10:33
 https://issues.asterisk.org/view.php?id=16018#c111843 
---------------------------------------------------------------------- 
Could you provide the backtrace of the crash per the doc/backtrace.txt file
in your Asterisk source? Thanks! 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-05 10:33 lmadsen        Note Added: 0111843                          
2009-10-05 10:33 lmadsen        Status                   new => feedback     
======================================================================




More information about the asterisk-bugs mailing list