On Tue, 2004-09-14 at 14:25, Randy Bush wrote:> i am in a macro. ${ARG2} is a phone number, which might be
> seven, ten, or eleven digits. i wish to canonicalize it to
> be a full 11 digit number. if this was a normal exten, i
> would
>
> exten => _1XXXXXXXXXX,1,GoTo(dial-gateway,${EXTEN},1)
> exten => _XXXXXXXXXX,1,GoTo(dial-gateway,1${EXTEN},1)
> exten => _XXXXXXX,1,GoTo(pstn,1${areacode}${EXTEN},1)
>
> but how to hack it inside a macro?
exten => s,1,Goto(${MACRO_EXTEN},1)
--
Eric Wieling * BTEL Consulting * 504-899-1387 x2111
"In a related story, the IRS has recently ruled that the cost of Windows
upgrades can NOT be deducted as a gambling loss."