[asterisk-users] Dial cmd help

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Mon Jul 6 10:33:46 CDT 2009


On Monday 06 July 2009 12:15:03 am Joseph L. Casale wrote:
> >exten => s,n,ExecIf($["${ARG1}" = "1${ARG1:1}"
> > ]?Set(Dialnum=${ARG1:1}):Set(Dialnum=${ARG1}))
>
> Much simpler Dhaval, thanks!

Even simpler:
exten => s,n,Set(Dialnum=${IF($["${ARG1:0:1}"="1"]?${ARG1:1}:${ARG1})})

-- 
Tilghman



More information about the asterisk-users mailing list