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@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@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.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
http://www.freeswitch.org