[Freeswitch-users] Assigning a variable with a value from a system command?
Dragos Oancea
dragos at freeswitch.org
Thu Dec 2 10:04:12 UTC 2021
Do it through environment.
<X-PRE-PROCESS cmd="env-set" data="var=$VAL"/>
We also have "exec-set".
https://freeswitch.org/confluence/display/FREESWITCH/Understanding+the+Configuration+Files
On Wed, Dec 1, 2021 at 4:03 PM Antony Stone <
Antony.Stone at freeswitch.open.source.it> wrote:
> Hi.
>
> I have a need to assign a variable in vars.xml with the value output from
> a
> system command (in this specific instance "hostname -s", but I'd like to
> have a
> generic solution for future use).
>
> How can I do that?
>
> Any suggestions are welcome, as is pointing at any documentation I've so
> far
> failed to find :)
>
>
> Thanks,
>
>
> Antony.
>
> --
> Having been asked for a reference for this man,
> I can confirm that you will be very lucky indeed
> if you can get him to work for you.
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20211202/8e30c95e/attachment-0001.html>
More information about the FreeSWITCH-users
mailing list