[Freeswitch-users] Variable no longer showing in channels

Ken Rice krice at freeswitch.org
Thu Mar 7 17:22:08 UTC 2019


Nothing has changed on this in quite a while.

 

See https://freeswitch.org/confluence/display/FREESWITCH/XML+Dialplan and also checkout the inline=”true” option. 

 

 

 

 

From: FreeSWITCH-users <freeswitch-users-bounces at lists.freeswitch.org> On Behalf Of Rick Jarvis
Sent: Thursday, March 7, 2019 9:18 AM
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Variable no longer showing in channels

 

Sorry to nudge...

 


From: Rick Jarvis  <mailto:rick at magicmail.mooo.com> <rick at magicmail.mooo.com>
Reply: Rick Jarvis  <mailto:rick at magicmail.mooo.com> <rick at magicmail.mooo.com>
Date: 25 February 2019 at 23:04:17
To: FreeSWITCH Users Help  <mailto:freeswitch-users at lists.freeswitch.org> <freeswitch-users at lists.freeswitch.org>
Subject:  Re: [Freeswitch-users] Variable no longer showing in channels 





Sorry Mike, can you expand on that? It was all working fine before, so I’m not sure either what “has changed” or what “needs to change”, if you see what I mean!

 


From: Mike Jerris  <mailto:mike at freeswitch.org> <mike at freeswitch.org>
Reply: FreeSWITCH Users Help  <mailto:freeswitch-users at lists.freeswitch.org> <freeswitch-users at lists.freeswitch.org>
Date: 25 February 2019 at 21:08:18
To: FreeSWITCH Users Help  <mailto:freeswitch-users at lists.freeswitch.org> <freeswitch-users at lists.freeswitch.org>
Subject:  Re: [Freeswitch-users] Variable no longer showing in channels





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 <mailto: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?

 

 

_________________________________________________________________________
Professional FreeSWITCH Services
sales at freeswitch.com <mailto:sales at 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 at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org> 
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com

_________________________________________________________________________
Professional FreeSWITCH Services
sales at freeswitch.com <mailto:sales at 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 at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org> 
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20190307/c80ad7b8/attachment.html>


More information about the FreeSWITCH-users mailing list