[Freeswitch-users] Assigning a variable with a value from a system command?

Seven Du dujinfang at gmail.com
Sun Dec 5 00:58:53 UTC 2021


try exec-set

On Thu, Dec 2, 2021 at 11:46 PM Antony Stone <
Antony.Stone at freeswitch.open.source.it> wrote:

> On Thursday 02 December 2021 at 11:04:12, Dragos Oancea wrote:
>
> > Do it through environment.
> >  <X-PRE-PROCESS cmd="env-set" data="var=$VAL"/>
>
> So, that allows a FreeSwitch variable to have the value of an environment
> variable?
>
> That's not quite the same as running a command and assigning the result to
> a
> variable, which is what I need.
>
> > We also have "exec-set".
>
> Ah, now *that* looks like what I'm looking for - thanks :)
>
>
> Antony
>
> --
> Bill Gates has personally assured the Spanish Academy that he will never
> allow
> the upside-down question mark to disappear from Microsoft word-processing
> programs, which must be reassuring for millions of Spanish-speaking
> people,
> though just a piddling afterthought as far as he's concerned.
>
>  - Lynne Truss, "Eats, Shoots and Leaves"
>
>                                                    Please reply to the
> list;
>                                                          please *don't* CC
> me.
>
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> Professional FreeSWITCH Services
> 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
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com



-- 
About: http://about.me/dujinfang
Blog: http://www.dujinfang.com
Proj:  http://www.freeswitch.org.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20211205/7e74e4f7/attachment.html>


More information about the FreeSWITCH-users mailing list