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: [email protected]
[mailto:[email protected]] On Behalf Of Szasz Szabolcs
Sent: Thursday, January 14, 2010 3:55 AM
To: [email protected]
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
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users