[asterisk-users] Idiot's question
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Sat Jun 14 07:38:51 CDT 2008
On Friday 13 June 2008 23:48:24 Fred Posner wrote:
> You could always do something like this, but I think it may pull more
> proc than on 2 lines:
>
> exten => s,n,Set(CALLERID(num)=${IF($["foo${CALLERID(num)}" = "foo"]?
> 0000000000:${CALLERID(num)})})
For some reason, your post reminded me of how to do it:
Set(CALLERID(num)=${SPRINTF(%010lld,0${CALLERID(num)})})
--
Tilghman
More information about the asterisk-users
mailing list