Commit 5bda0220 authored by Hemlata's avatar Hemlata Committed by Yalu Zhang
Browse files

Fix errors in config_asterisk.sh for caller ID manipulation

parent 902d80a6
......@@ -1131,10 +1131,10 @@ configure_extensions_provider() {
# replace prefix '+' with '00' OR +44 with 0
echo "exten => $user,n,GotoIf($[[\"\${CALLERID(NUM):0:3}\" = \"+44\"] & [\"\${CALLERID(NUM):0:1}\" = \"+\"]]?rewrite:norewrite)" >> $tmp
echo "exten => $user,n(rewrite),Set(CALLERID(num)=\"0\${CALLERID(num):3}\")" >> $tmp
echo "exten => $user,n(rewrite),Set(CALLERID(num)=0\${CALLERID(num):3})" >> $tmp
echo "exten => $user,n(norewrite),NoOp()" >> $tmp
echo "exten => $user,n,GotoIf($[$[\"\${CALLERID(NUM):0:1}\"] = \"+\"]?write:ignore)" >> $tmp
echo "exten => $user,n(write,Set(CALLERID(num)=\"00\${CALLERID(num):1}\")" >> $tmp
echo "exten => $user,n(write),Set(CALLERID(num)=00\${CALLERID(num):1})" >> $tmp
echo "exten => $user,n(ignore),NoOp()" >> $tmp
if [ "$cbbs_type" = "external" ] ; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment