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
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="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?
_________________________________________________________________________
Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com