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
Versions:Frequency of
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 port 2069
 == CURL command '${CURL(http://erp2.mwdev.net/index.php?method=Voipmanager_SipRegs.handleResConfig&action=/update?name=mw-521,ipaddr=}'
Disconnected from Asterisk server
Executing last minute cleanups

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!