Bug 3367

Summary: Asterisk fastagi does not work
Product: uClibc Reporter: Peter Katzmann <peter.katzmann>
Component: NetworkingAssignee: unassigned
Status: RESOLVED FIXED    
Severity: critical CC: uclibc-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

Description Peter Katzmann 2011-03-03 15:21:14 UTC
asterisk fastagi works with uclicb 0.9.30 well but since 0.9.31 it fails.

it seems that the return value at creating a network connection is not what expected.
The log spills out :
[Jan  1 03:10:50] WARNING[2585]: res_agi.c:1390 launch_netscript: Connect failed with unexpected error: Success
[Jan  1 03:10:51] WARNING[2587]: manager.c:4564 get_input: poll() returned error: Success
[Jan  1 03:10:53] WARNING[2585]: channel.c:3718 __ast_read: read() failed: Success

The code for this message is:

        if (connect(s, (struct sockaddr *)&addr_in, sizeof(addr_in)) && (errno != EINPROGRESS)) {
                ast_log(LOG_WARNING, "Connect failed with unexpected error: %s\n", strerror(errno));
                close(s);
                return AGI_RESULT_FAILURE;
        }
Comment 1 Bernhard Reutner-Fischer 2011-06-14 15:10:56 UTC
Please attach your .config and retry with 0.9.32.
Comment 2 Bernhard Reutner-Fischer 2011-06-14 16:39:26 UTC
(In reply to comment #1)
> Please attach your .config and retry with 0.9.32.

(and if that fails please provide the relevant strace output).
thanks,
Comment 3 Peter Katzmann 2011-08-15 07:39:34 UTC
Works with uClibc 0.9.32 and buildroot 2011.08