[Asterisk-Users] How to find out if a new voicemail exists
Ben Higley
pbx at itsngroup.com
Tue Jan 17 17:55:00 MST 2006
There is the application HasNewVoicemail
server1*CLI> show application hasnewvoicemail
server1*CLI>
-= Info about application 'HasNewVoicemail' =-
[Synopsis]
Conditionally branches to priority + 101 with the right options set
[Description]
HasNewVoicemail(vmbox[/folder][@context][|varname[|options]])
Assumes folder 'INBOX' if folder is not specified. Optionally sets
<varname> to the number of messages
in that folder.
The option string may contain zero of the following character:
'j' -- jump to priority n+101, if there is new voicemail in folder
'folder' or INBOX
This application sets the following channel variable upon completion:
HASVMSTATUS The result of the new voicemail check
returned as a text string as follows
<# of messages in the folder, 0 for NONE>
> On Wednesday 18 January 2006 07:21, Sean Cook wrote:
>> Koopmann, Jan-Peter wrote:
>> > I would like to see if during a call a new voicemail was recorded. I
>> want
>> > to send a SMS to mobile phones if someone recorded a message on our
>> > voicemail system.
>> >
>> > I can use VMCOUNT to see if there are new messages in the Inbox but
>> this
>> > will result in new SMS being sent even if the caller hangs up during
>> the
>> > Voicemailpromt, at least if there are still unread/unheard messages in
>> > the inbox.
>> >
>> > Is there some option or variable I missed or is this a feature
>> request?
>> >
>>
>> I believe you can use the externnotify to accomplish this...
>
> Here[1] is a small, untested script that does something similar to what
> you
> are asking. Maybe you could modify it to you needs.
>
> HTH
>
> hads
>
> [1]http://astug.org.nz/pipermail/users/2005-November/000022.html
>
> --
> Everyone is more or less mad on one point.
> -- Rudyard Kipling
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list