<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
You could of course edit app_voicemail.c to pass more info...<br>
<br>
Round about line 2329:<br>
if (!ast_strlen_zero(externnotify)) {<br>
if (messagecount(ext_context, &newvoicemails,
&oldvoicemails)) {<br>
ast_log(LOG_ERROR, "Problem in calculating
number of voicemail messages available for extension %s\n", extension);<br>
} else {<br>
<b>snprintf(arguments, sizeof(arguments), "%s
%s %s %d&", externnotify, context, extension, newvoicemails);</b><br>
ast_log(LOG_DEBUG, "Executing %s\n", arguments);<br>
ast_safe_system(arguments);<br>
}<br>
}<br>
<br>
M<br>
<br>
RR wrote:
<blockquote
cite="middcde51f20611290021m10879314q5e70b6120ead0b4e@mail.gmail.com"
type="cite">On 11/29/06, Marnus van Niekerk <a class="moz-txt-link-rfc2396E" href="mailto:m@mjvn.net"><m@mjvn.net></a> wrote:
<br>
<blockquote type="cite">You can have your own external script to do
whatever you want when vm is
<br>
left
<br>
<br>
from voicemail.conf:
<br>
; If you need to have an external program, i.e. /usr/bin/myapp
<br>
; called when a voicemail is left, delivered, or your voicemailbox
<br>
; is checked, uncomment this:
<br>
;externnotify=/usr/bin/myapp
<br>
<br>
M
<br>
</blockquote>
<br>
Hi Marnus,
<br>
<br>
externnotify, of course. I always end up spending months away from
<br>
asterisk so by the time I come back to it, I've forgotten half the
<br>
stuff. Thanks for the reminder. Now, maybe I'm stupid but how exactly
<br>
do I get details to it regarding all those VM variables that are
<br>
inserted when the email is normally sent out from voicemail. You know
<br>
the VM_NAME, VM_DUR etc etc? I quickly tested this but as per the
<br>
doco. for it, it automatically passes only 3 variables to the
<br>
externotify script. Do I go parsing msgxxxx.txt file for the rest of
<br>
the info? I may not have that in the case I'm using RealTime
<br>
Voicemail.
<br>
_______________________________________________
<br>
--Bandwidth and Colocation provided by Easynews.com --
<br>
<br>
asterisk-users mailing list
<br>
To UNSUBSCRIBE or update options visit:
<br>
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
<br>
<br>
</blockquote>
<br>
</body>
</html>