Hello,
On 08/28/06 16:11, Zenone wrote:
Hi! I have an error when I try to run this in my openser.cfg:
exec_msg("TAG=$(echo $SIP_HF_FROM|cut -f2 -d=);FROM=$(echo $SIP_HF_FROM|cut -f2 -d<|cut -f1 -d>|cut -f1-2 -d:);/usr/local/openser-1.1.0-tls/uri-folder/record $FROM $SIP_USER $TAG");
The obtained error is:
Aug 28 15:11:21 localhost /usr/local/sbin/openser[32748]: ERROR:xl_parse_spec: bad pvar name "echo $SIP_HF_FROM|cut -f2 -d=);FROM=$(echo $SIP_HF_FROM|cut -f2 -d<|cut -f1 -d>|cut -f1-2 -d:);/usr/local/openser-1.1.0-tls/uri-folder/record $FROM $SIP_USER $TAG"
you get it because the $ is the starter for pseudo-variables and is the same for environment variables of shell. Try;
exec_msg("TAG=$(echo $$SIP_HF_FROM|cut -f2 -d=);FROM=$$(echo $$SIP_HF_FROM|cut -f2 -d<|cut -f1 -d>|cut -f1-2 -d:);/usr/local/openser-1.1.0-tls/uri-folder/record $$FROM $$SIP_USER $$TAG");
Cheers, Daniel
Thanks in advance for your help! Michel
Message sent using UebiMiau 2.7.8
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users