Page 467 - Asterisk™: The Future of Telephony
P. 467

Stops playing the currently playing tone list.

                   exten => 123,1,Playtones(busy)
                   exten => 123,2,Wait(2)
                   exten => 123,3,StopPlaytones()
                   exten => 123,4,Playtones(congestion)
                   exten => 123,5,Wait(2)
                   exten => 123,6,StopPlaytones()
                   exten => 123,7,Goto(1)
               See Also
               Playtones(), indications.conf


               StopMusicOnHold()                                            Stops music on hold
               StopMusicOnHold()

               Ends playing music on hold on a channel. If music on hold was not already playing,
               has no effect.
                   ; transfer telemarketers to this extension to keep them busy
                   exten => 123,1,Answer()
                   exten => 123,2,Playback(tt-allbusy)
                   exten => 123,3,StartMusicOnHold(default)
                   exten => 123,4,Wait(600)
                   exten => 123,5,StopMusicOnHold()
               See Also

               WaitMusicOnHold(), StartMusicOnHold()


               System()                                         Executes an operating system command
               System(command)

               Executes a command in the underlying operating system. This application sets a channel
               variable named SYSTEMSTATUS to either FAILURE or SUCCESS, depending on whether or
               not Asterisk was successfully able to run the command.
               This application is very similar to the TrySystem() application, except that it will return
               -1 if it is unable to execute the system command, whereas the TrySystem() application
               will always return 0.
                   exten => 123,1,System(echo hello > /tmp/hello.txt)

               See Also
               TrySystem()





                                                                       StopMusicOnHold() | 439
   462   463   464   465   466   467   468   469   470   471   472