<div dir="ltr">If you are using cdr_csv, then you should be able to differentiate by hostname variable.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 10, 2014 at 2:07 PM, Victor Chukalovskiy <span dir="ltr"><<a href="mailto:victor.chukalovskiy@gmail.com" target="_blank">victor.chukalovskiy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
I run the same config on multiple boxes. Need to tell apart which
box CDR is coming from without setting it manually per-box.<br>
<br>
Is there a way to set a global variable to the output of linux
'hostname -s' command?<br>
<br>
E.g. instead of:<br>
<strike><X-PRE-PROCESS cmd="set" data="sbc_hostname=sbc1"/></strike><strike><br>
</strike><strike><X-PRE-PROCESS cmd="set"
data="sbc_hostname=sbc2"/></strike><strike><br>
</strike><strike>.....</strike><strike><br>
</strike><strike><X-PRE-PROCESS cmd="set"
data="sbc_hostname=sbcN"/></strike><strike><br>
</strike><br>
I need something like:<br>
<X-PRE-PROCESS cmd="set" data="'hostname -s'"/>\<br>
<br>
Thank you,<br>
-Victor<br>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>