[asterisk-bugs] [JIRA] (ASTERISK-28083) res_agi: Asterisk truncates result of get_variable to 1024 characters

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Mon Oct 1 04:33:54 CDT 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=245023#comment-245023 ] 

Joshua C. Colp commented on ASTERISK-28083:
-------------------------------------------

Yes, res_agi has a fixed 1024 sized buffer in the handle_getvariable function. I'm accepting this issue but if you want to submit a patch to change that, then it can be resolved faster.

> res_agi: Asterisk truncates result of get_variable to 1024 characters
> ---------------------------------------------------------------------
>
>                 Key: ASTERISK-28083
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28083
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_agi
>    Affects Versions: 15.6.0
>         Environment: linux
>            Reporter: Daan Roet
>            Severity: Minor
>
> In asterisk, you can set a very long variable (>1024 characters) using:
> $agi->set_variable("test", $longString);
> You can verify this by running the verbose() function and checking the asterisk console, however when you then try and retrieve the same variable using:
> $result = $agi->get_variable("test");
> The variable gets truncated and limited to 1024 characters, making it impossible to retrieve the original string 



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list