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

Daan Roet (JIRA) noreply at issues.asterisk.org
Fri Sep 28 08:31:54 CDT 2018


Daan Roet created ASTERISK-28083:
------------------------------------

             Summary: 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


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