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