[asterisk-users] Caller ID Rewrite
Anselm Martin Hoffmeister
anselm at hoffmeister-online.de
Fri Dec 1 12:40:19 MST 2006
Am Freitag, den 01.12.2006, 14:26 +0000 schrieb David Bath:
> So onto the problem… I’m trying to write a quick on-liner which will
> fix up incoming UK format numbers (0 + 10digits) into (44 + 9 digits).
> I got as far as this:
>
>
>
> exten => <incoming extension>,1,Set(foo=${IF(REGEX("^0[1-9][0-9]\{9
> \}$" {CALLERID(number)})?Set(CALLERID(number)=44
> ${CALLERID(number):1})})
I would try something like
exten => _0[1-9]X.,1,Goto(0044${EXTEN:1},1)
(All numbers beginning "null" "not-null" will be rewritten to 0044 plus
the number without the leading zero)
Hth
Anselm
More information about the asterisk-users
mailing list