[asterisk-bugs] [JIRA] Created: (ASTERISK-20294) Asterisk is unable to execute AGI commands longer than 2048 bytes

Pavlo Lavrenenko (JIRA) noreply at issues.asterisk.org
Wed Aug 22 03:51:07 CDT 2012


Asterisk is unable to execute AGI commands longer than 2048 bytes
-----------------------------------------------------------------

                 Key: ASTERISK-20294
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20294
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_agi
    Affects Versions: 10.7.0
            Reporter: Pavlo Lavrenenko


Asterisk is unable to execute AGI commands longer than 2048 bytes, which are limited by statically allocated char buf[AGI_BUF_LEN]; buffer in res/res_agi.c::3466

What was done:
1. Asterisk 10.7.0 from http://svn.asterisk.org/svn/asterisk/tags/10.7.0 configured and installed with --refix=/opt/asterisk-10.7.0;
2. Sample configs have been installed with make samples;
3. Peer added to sip.conf, Linksys UA registered;
4. exten => 000112, 1, AGI(/home/santa/sandbox/testagi.pl) added to [default] context in extensions.conf;
5. testagi.pl executes Background AGI application with concatenated promts as a parameter and total length > 4k;
6. A test call has been made to 000112.

Expected results:
Asterisk plays all the prompts sequentially.

Real results:
Asterisk reads up to 2048 bytes on each fgets() iteration, the command is being cutted up and not all prompts are being played.

See agi log and testagi.pl code in attachment.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list