I am using callerid superfecta, and my sip provider sends the callerid with a +1. I need to strip the +1 before passing to callerid lookup, can anyone help me with the please? I have tried the below context change on the trunk, but it doesn’t pass the name. It only strips the +1, and doesn’t pass the callerid “name”
[custom-from-trunk]
exten => _X!,1,NoOp(Caller ID name received from provider is ${CALLERID(name)})
exten => _X!,n,GotoIf($["${CALLERID(num):0:2}" != “+1”]?noplusatstart)
exten => _X!,n,NoOp(Changing Caller ID number from ${CALLERID(num)} to ${CALLERID(num):2})
exten => _X!,n,Set(CALLERID(num)=${CALLERID(num):2})
exten => _X!,n(noplusatstart),Goto(from-trunk,${EXTEN},1)
exten => h,1,Macro(hangupcall,)