Neat asterisk trick I discovered: You ca ... / 2008-09-17

2008-09-17 Neat asterisk trick I discovered: You ca ...
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.

exten => s,1,Answer()
exten => s,n,Dial(local/s@metarspoken-eham,60,m)


; 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.

Tags: , , ,

IPv6 check

Running test...
, reachable as PGP encrypted e-mail preferred. PGP key 5BA9 368B E6F3 34E4 local copy PGP key 5BA9 368B E6F3 34E4 via keyservers

Meningen zijn die van mezelf, wat ik schrijf is beschermd door auteursrecht. Sommige publicaties bevatten een expliciete vermelding dat ze ongevraagd gedeeld mogen worden.
My opinions are my own, what I write is protected by copyrights. Some publications contain an explicit license statement which allows sharing without asking permission.
Other webprojects: Camp Wireless, wireless Internet access at campsites, The Virtual Bookcase, book reviews
This page generated by $Id: newsitem.cgi,v 1.58 2022/12/12 15:34:31 koos Exp $ in 0.009098 seconds.