[Freeswitch-users] Variable no longer showing in channels
Mike Jerris
mike at freeswitch.org
Mon Feb 25 21:07:34 UTC 2019
The dial plan is parsed and extensions created, and then they are run. The ${callsubject} in your log line is evaluated in routing state, before httapi is run in execute state
> On Feb 25, 2019, at 12:08 PM, Rick Jarvis <rick at magicmail.mooo.com> wrote:
>
> I got this working (with the help of this list) some time ago, but for some reason it seems to have stopped working.
>
> I’m setting a variable ‘callsubject’ in the dialplan via httapi, for which I added a column in the channels table:
>
> ALTER TABLE channels ADD COLUMN callsubject VARCHAR(256)
>
>
>
> <action application="httapi" data="{url=https://server/${destination_number}}”/ <https://server/$%7Bdestination_number%7D%7D%E2%80%9D/>> <!-- gets variable callsubject as ’test’, amongst other stuff -->
> <action application="log" data="CRIT callsubject: ${callsubject}”/> <!-- correctly shows ’test’ -->
>
>
> And yet, whilst the column shows up in ’show channels’, the leg in question has an empty value.
>
> What am I missing, maybe?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20190225/dd9cc97a/attachment.html>
More information about the FreeSWITCH-users
mailing list