[asterisk-users] Caller ID has extra digits to strip

Ira ira at extrasensory.com
Sat Sep 2 16:48:44 MST 2006


At 03:37 PM 9/2/2006, you wrote:
>What can I do to strip these digits from Caller ID before answering 
>the call so CDR and Voice Mail Caller ID announcement show correct number?

I probably mis-typed something here, but something like this should do:

exten => s,n,gotoif($[length(${CALLERID(number)}) = 11]?goodID)
exten => s,n,set(CALLERID(number)=${CALLERID(number):2})
exten => s,n(goodID), noop() 




More information about the asterisk-users mailing list