[Asterisk-Users] background SayDigits()?
C F
shmaltz at gmail.com
Mon Jan 23 16:19:22 MST 2006
Why not?
here is an example:
exten => s,1,Set(LCNT=${LEN(${CALLERID(num)})})
exten => s,2,Set(TCNT=0)
exten => s,3,Goto(10);this is where we start the actual saydigits
exten => s,10,GotoIf($[${TCNT} = ${LCNT}]?200);if the value is the
same then there is nothing more to say
exten => s,11,Background(digits/${CALLERID(num):${TCNT}:1}
exten => s,12,Set(TTCNT=${TCNT})
exten => s,13,Set(TCNT=$[${TTCNT} + 1])
exten => s,14,Goto(10)
exten => s,200,Hangup()
Hope this helps
On 1/23/06, asterisk at anime.net <asterisk at anime.net> wrote:
> Is it possible to background SayDigits()?
>
> I know you can manually Background() each digit individually, but this
> does not solve the problem when you need to do something like
> SayDigits(${EXTEN}) or SayDigits(${CALLERID(number)})
>
> -Dan
> _______________________________________________
> --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
>
More information about the asterisk-users
mailing list