[asterisk-bugs] [JIRA] (ASTERISK-18396) [patch] - Variables Truncated When Using Realtime Dialplan

Ross Beer (JIRA) noreply at issues.asterisk.org
Sun Oct 8 20:00:38 CDT 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-18396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ross Beer closed ASTERISK-18396.
--------------------------------

    Resolution: Done

> [patch] - Variables Truncated When Using Realtime Dialplan
> ----------------------------------------------------------
>
>                 Key: ASTERISK-18396
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-18396
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: PBX/pbx_realtime
>    Affects Versions: 1.8.6.0
>         Environment: Cent OS 5.5
>            Reporter: Ross Beer
>         Attachments: 20110913__ASTERISK-18396__2.diff.txt, 20110913__ASTERISK-18396.diff.txt
>
>
> When setting/using variables in a realtime MySQL database variables are truncated within Asterisk. The following is the output from the CLI:
> SET("<channel removed>", "GROUPDIAL=Local/10000*200 at vh-pbx-extension&Local/10000*201 at vh-pbx-extension&Local/10000*202 at vh-pbx-extension&Local/10000*203 at vh-pbx-extension&Local/10000*200 at vh-pbx-extension&Local/10000*200 at vh-pbx-extension&Local/10000*200 at vh-pbx-extension")
> When appending with an additional extension it is truncated (Using the same loop as the previous entries):
> SET("<channel removed>", "GROUPDIAL=Local/10000*200 at vh-pbx-extension&Local/10000*201 at vh-pbx-extension&Local/10000*202 at vh-pbx-extension&Local/10000*203 at vh-pbx-extension&Local/10000*200 at vh-pbx-extension&Local/10000*200 at vh-pbx-extension&Local/10000*200 at vh-pbx-extension&Local/1")
> If the same code is used in the extensions.conf this issue does not occur. However if you use the same variable once generated in the extensions.conf dial plan in a dial command from within a realtime dial plan the variable is once again truncated. It looks like the variable when being used in the real-time dial plan is cut short.
> The variable is totally generated from within asterisk and the channel names are stored separately within the database dial plan. i.e they do no fill the length of the column, therefore they are being truncated inside the asterisk core.



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



More information about the asterisk-bugs mailing list