Matt. I gave your ideas a try and made it work with a twist. Use a macro but... Here is the good part, call the macro from a call file using application, passed parameters like name of the sound file, telephone to call, etc. .... Voila! Works great!
Thx for the hints Matt. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Riddell Sent: Martes, 29 de Marzo de 2005 12:36 a.m. To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] call files run at certain times Ok, so you have a context: [mycallouts] exten => _X.,1,Answer exten => _X.,2,Background(mycall${EXTEN}) exten => _X.,3,Dial(ZAP/g1/${EXTEN}) and when you do the record you can do [myrecording] exten => 98,1,Answer exten => 98,2,Background(please_enter_99_followed_by_number) exten => 99.,1,Record(mycall${EXTEN:2}) Or something similar. Hope that makes sense. So the record will create a file called mycall5551234 or whatever the number is, and then from the call file you'd send it to the context mycallouts with the extension set to whatever the number was and then it would play the correct file, and then call the number. -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss) _______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
