[Home]

Summary:ASTERISK-14938: Asterisk 1.6.2 RC2: func_curl crashes Asterisk
Reporter:Lars Kneschke (lkneschke)Labels:
Date Opened:2009-10-05 08:49:54Date Closed:2011-06-07 14:00:49
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Functions/func_curl
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) asterisk_crash_http_request.txt
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.

Comments:By: Leif Madsen (lmadsen) 2009-10-05 10:33:00

Could you provide the backtrace of the crash per the doc/backtrace.txt file in your Asterisk source? Thanks!

By: Leif Madsen (lmadsen) 2009-10-26 10:03:07

Closed due to lack of feedback. If the reporter is able to provide the requested information, please reopen this issue. Thanks!