[asterisk-users] how to strip + from the caller-ID

Danny Nicholas danny at debsinc.com
Thu Jan 14 08:11:35 CST 2010


I saw something like this in another answer, but here's an example that
should work (would on 1.4)

exten => s/_+X.,1,Set(TMPNAME=${CALLERID(name)})

exten => s/_+X.,n,Set(CLEANNAME=CUT(TMPNAME|\+|2))

exten => s/_+X.,n,Set(CALLERID(name)=${CLEANNAME})

 

in my installations ${X:1} is a hit or miss proposition;  CUT is a Known
quantity.

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Szasz Szabolcs
Sent: Thursday, January 14, 2010 3:55 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] how to strip + from the caller-ID

 

Hi,

How can I strip + from the front of the caller ID?
I have tried this:
exten => s/_+X.,1,Set(CALLERID(name)=${CALLERID(name):1})

But it is not working.


Szasz Szabolcs

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100114/d5f58ee3/attachment.htm 


More information about the asterisk-users mailing list