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 _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users