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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Oct 5 08:49:54 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16018 
====================================================================== 
Reported By:                lkneschke
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16018
Category:                   Functions/func_curl
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
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 08:49 CDT
====================================================================== 
Summary:                    Asterisk 1.6.2 RC2: func_curl crashes Astersik
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.


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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-05 08:49 lkneschke      New Issue                                    
2009-10-05 08:49 lkneschke      Asterisk Version          => 1.6.2.0-rc2     
2009-10-05 08:49 lkneschke      Regression                => No              
2009-10-05 08:49 lkneschke      SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list