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

defaults to the INBOX folder. If the varname argument is passed, this application assigns
               the number of messages in the specified folder to that variable.
               If the options argument is set to the letter j, then Asterisk will send the call to priority
               n+101 if there is voicemail in the specified folder.
                   ; check to see if there's any voicemail at all in INBOX of mailbox 123
                   ; in the default voicemail context
                   exten => 123,1,Answer()
                   exten => 123,2,HasVoicemail(123@default,COUNT)
                   exten => 123,3,GotoIf(${VMSTATUS}?1000)
                   exten => 123,4,Playback(vm-youhave)
                   exten => 123,5,Playback(vm-no)
                   exten => 123,6,Playback(vm-messages)
                   exten => 123,1000,Playback(vm-youhave)
                   exten => 123,1001,SayNumber($COUNT)
                   exten => 123,1002,Playback(vm-messages)
               See Also

               The HasVoicemail(), MailboxExists()

               IAX2Provision()                                       Provisions a calling IAXy device

               IAX2Provision([template])

               Provisions a calling IAXy device (assuming that the calling entity is an IAXy) with the
               given template. If no template is specified, the default template is used. IAXy provi-
               sioning templates are defined in the iaxprov.conf configuration file.
                   ; provision IAXy devices with the default template when they dial this extension
                   exten => 123,1,IAX2Provision(default)


               ICES()                                              Streams audio to an Icecast server
               ICES([config])

               Streams audio to an Icecast (or compatible) server using the ices application.
               See contrib/asterisk-ices.xml for a sample config file.
                   exten => 123,1,Answer()
                   exten => 123,n,ICES(/tmp/my-ices-config.xml)


               ImportVar()                     Sets a variable based on a channel variable from a different channel
               ImportVar(newvar=channel,variable)

               Sets variable newvar to variable as evaluated on the specified channel (instead of the
               current channel). If newvar is prefixed with _, single inheritance is assumed. If prefixed
               with _ _, infinite inheritance is assumed.


               402 | Appendix B: Application Reference
   425   426   427   428   429   430   431   432   433   434   435