Bug 3367 - Asterisk fastagi does not work
Summary: Asterisk fastagi does not work
Status: RESOLVED FIXED
Alias: None
Product: uClibc
Classification: Unclassified
Component: Networking (show other bugs)
Version: unspecified
Hardware: Other Linux
: P5 critical
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-03 15:21 UTC by Peter Katzmann
Modified: 2011-08-15 07:39 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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