[Freeswitch-users] How to set FS variable to the value returned by linux command
DJB International
djbinter at gmail.com
Tue Mar 11 00:14:14 MSK 2014
If you are using cdr_csv, then you should be able to differentiate by
hostname variable.
On Mon, Mar 10, 2014 at 2:07 PM, Victor Chukalovskiy <
victor.chukalovskiy at gmail.com> wrote:
> Hello,
>
> I run the same config on multiple boxes. Need to tell apart which box CDR
> is coming from without setting it manually per-box.
>
> Is there a way to set a global variable to the output of linux 'hostname
> -s' command?
>
> E.g. instead of:
> <X-PRE-PROCESS cmd="set" data="sbc_hostname=sbc1"/>
> <X-PRE-PROCESS cmd="set" data="sbc_hostname=sbc2"/>
> .....
> <X-PRE-PROCESS cmd="set" data="sbc_hostname=sbcN"/>
>
> I need something like:
> <X-PRE-PROCESS cmd="set" data="'hostname -s'"/>\
>
> Thank you,
> -Victor
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.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
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140310/91dadb5a/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list