Dear netman :
It's strange : the shell script is executed between a call dialplan , it just for demo callerid number .
when call out , execute "cat /tmp/var.txt "
my name is service.104.mobile3
my number is
then execute
"bash -x iptone.sh"
+ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
+ export PATH
+ NAME=
+ set NUM=07010994416
+ echo ' my name is '
+ '[' '' = 'ceo.*' ']'
+ '[' '' = 'boss.*' ']'
+ '[' '' = 'dayze.*' ']'
+ '[' '' = 'kevin.*' ']'
+ '[' '' = 'ava.*' ']'
+ '[' '' = 'carol.*' ']'
+ '[' '' = 'leo.*' ']'
+ '[' '' = 'vincent.*' ']'
+ '[' '' = 'gary.*' ']'
+ '[' '' = 'kt.*' ']'
+ '[' '' = 'service.*' ']'
+ =07010994410
iptone.sh: line 37: =07010994410: command not found
+ echo ' my number is '
then I execute "cat /tmp/var.txt "
my name is
my number is
why it is so strange ?
thanks !