Hi Daniel!
I have just tried your solution and it doesn't work... Have you got
another idea?
Thanks!
Michel
On Mon, 2006-08-28 at 16:30 +0300, Daniel-Constantin Mierla wrote:
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(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users