2008-09-17 Neat asterisk trick I discovered: You ca ... 11 years ago
Neat asterisk trick I discovered: You can play musiconhold while waiting for a script to finish! Just use the Local pseudo channel and set up a call to the extension that can take a while to process. I wanted this for a situation where the phone was already answered but longer processing was happening from an external script.[metarwaittest] exten => s,1,Answer() exten => s,n,Dial(local/s@metarspoken-eham,60,m) [metarspoken-eham] ; EHAM = Amsterdam Schiphol airport exten => s,1,Ringing exten => s,n,System('/usr/lib/asterisk/scripts/getmetarforasterisk EHAM') exten => s,n,Answer()The processing in the script can take quite some time, so the music on hold is played while waiting.