Auto dial to also include variables such as saydigit()

Hi,

I’m currently using something like this with the /var/spool/asterisk/outbound folder, it dials users and advises they have an invoice outstanding for over 60 days. What I’d like to do is be able to insert SayDigit to the recording…

i.e.

1./ Call user
2./ Say prerecorded message "You have an outstanding invoice"
3./ SayDigit(1024)
4./ Say prerecorded message "with total balance of"
5./ SayDigit(22.14)
6./ Say prerecorded message “dolars, please press 1 to ackknoledge or 2 to leave a message”

How possible would this be?

Hello, I’m guessing you are using a callfile to playback some pre recorded message when the user answers. What you could possibly do is when the user answers send them into your dialplan somewhere ->

Example:

Channel: SIP/Foo
Context: answered
Extension: s
Priority: 1
Set: amount=100

[answered]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Playback(you-owe)
exten => s,n,Saydigits(${amount});
exten => s,n,Playback(in-your-currency)
exten => s,n,Hangup

-TheLostPacket
TheLostPacket@gmail.com