Commit 4c451480 authored by Hemlata's avatar Hemlata Committed by Yalu Zhang
Browse files

from header handling

parent 1f2027d8
......@@ -1130,10 +1130,13 @@ configure_extensions_provider() {
local call_ivr call_queue extension
echo "exten => $user,n,Set(__TRANSFER_CONTEXT=\${CHANNEL(endpoint)}-transfer)" >> $tmp
# replace prefix '+' with '00'
echo "exten => $user,n,GotoIf($[\"\${CALLERID(NUM):0:1}\" = \"+\"]?rewrite:norewrite)" >> $tmp
echo "exten => $user,n(rewrite),Set(CALLERID(num)=\"00\${CALLERID(num):1}\"))" >> $tmp
echo "exten => $user,n(norewrite),NoOp()">> $tmp
# 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(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(ignore),NoOp()" >> $tmp
if [ "$cbbs_type" = "external" ] ; then
# detect ringback call and update caller id
......
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