Looks like the boss wants alot
something here may do it;
http://www.voip-info.org/wiki-Asterisk+VoiceMail
http://www.voip-info.org/wiki/view/A...voicemail.conf
or
from voicemail.conf:
; If you need to have an external program, i.e. /usr/bin/myapp
; called when a voicemail is left, delivered, or your voicemailbox
; is checked, uncomment this:
;externnotify=/usr/bin/myapp
or ?
You could edit app_voicemail.c to pass more info...
Code:
Round about line 2329:
if (!ast_strlen_zero(externnotify)) {
if (messagecount(ext_context, &newvoicemails, &oldvoicemails)) {
ast_log(LOG_ERROR, "Problem in calculating number of voicemail messages available for extension %s\n", extension);
} else {
snprintf(arguments, sizeof(arguments), "%s %s %s %d&", externnotify, context, extension, newvoicemails);
ast_log(LOG_DEBUG, "Executing %s\n", arguments);
ast_safe_system(arguments);
}
}
this mayhelp;
http://www.mail-archive.com/asterisk...msg166949.html
or you can ask on the mailing list;
http://lists.digium.com/mailman/listinfo/asterisk-users