Re: [asterisk-users] Custom Voicemail Notification Email

2006-11-29 Thread RR

On 11/29/06, Marnus van Niekerk [EMAIL PROTECTED] wrote:

You can have your own external script to do whatever you want when vm is
left

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

M


Hi Marnus,

externnotify, of course. I always end up spending months away from
asterisk so by the time I come back to it, I've forgotten half the
stuff. Thanks for the reminder. Now, maybe I'm stupid but how exactly
do I get details to it regarding all those VM variables that are
inserted when the email is normally sent out from voicemail. You know
the VM_NAME, VM_DUR etc etc? I quickly tested this but as per the
doco. for it, it automatically passes only 3 variables to the
externotify script. Do I go parsing msg.txt file for the rest of
the info? I may not have that in the case I'm using RealTime
Voicemail.
___
--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


Re: [asterisk-users] Custom Voicemail Notification Email

2006-11-29 Thread Marnus van Niekerk
Your script will have to read the extra info from the msg.txt files 
or it's realtime equivalent.


M


Now, maybe I'm stupid but how exactly
do I get details to it regarding all those VM variables that are
inserted when the email is normally sent out from voicemail. You know
the VM_NAME, VM_DUR etc etc? I quickly tested this but as per the
doco. for it, it automatically passes only 3 variables to the
externotify script. Do I go parsing msg.txt file for the rest of
the info? I may not have that in the case I'm using RealTime
Voicemail.


___
--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


Re: [asterisk-users] Custom Voicemail Notification Email

2006-11-29 Thread Marnus van Niekerk




You could of course edit app_voicemail.c to pass more info...

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);
    }
    }

M

RR wrote:
On 11/29/06, Marnus van Niekerk [EMAIL PROTECTED] wrote:
  
  You can have your own external script to do
whatever you want when vm is

left


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


M

  
  
Hi Marnus,
  
  
externnotify, of course. I always end up spending months away from
  
asterisk so by the time I come back to it, I've forgotten half the
  
stuff. Thanks for the reminder. Now, maybe I'm stupid but how exactly
  
do I get details to it regarding all those VM variables that are
  
inserted when the email is normally sent out from voicemail. You know
  
the VM_NAME, VM_DUR etc etc? I quickly tested this but as per the
  
doco. for it, it automatically passes only 3 variables to the
  
externotify script. Do I go parsing msg.txt file for the rest of
  
the info? I may not have that in the case I'm using RealTime
  
Voicemail.
  
___
  
--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
  
  





___
--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


Re: [asterisk-users] Custom Voicemail Notification Email

2006-11-29 Thread RR

On 11/29/06, Marnus van Niekerk [EMAIL PROTECTED] wrote:


 You could of course edit app_voicemail.c to pass more info...

 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);
 }
 }

 M


Right, I was looking at the sending email part to instead of sending
out the email, write a file with the relevant info and then I use
externnotify to pick up that file stick it into a template and send it
out.

Also, note changing the Content Type: text/html and recompiling has
allowed me to send and display emails as HTMLS. I'll just frigging
create an entire HTML page as one LONG string with pics and stuff and
give that a GO :)
___
--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


[asterisk-users] Custom Voicemail Notification Email

2006-11-28 Thread RR

Hello all,

does anyone have a clever way of creating a customised email that goes
out as result of the voicemail notification. And I don't mean Editing
what you want in the emailbody, emailsubject, serveremail etc
keywords. I mean custom in the sense that it has that info but the
email is stylised to a certain format, with company logos and images
etc. Is this more a sendmail question or do I need to do something
within the app_voicemail.c code to make this to happen?

Thanks,
\R
___
--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


Re: [asterisk-users] Custom Voicemail Notification Email

2006-11-28 Thread Marnus van Niekerk
You can have your own external script to do whatever you want when vm is 
left


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

M

RR wrote:

Hello all,

does anyone have a clever way of creating a customised email that goes
out as result of the voicemail notification. And I don't mean Editing
what you want in the emailbody, emailsubject, serveremail etc
keywords. I mean custom in the sense that it has that info but the
email is stylised to a certain format, with company logos and images
etc. Is this more a sendmail question or do I need to do something
within the app_voicemail.c code to make this to happen?

Thanks,
\R
___
--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



___
--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


Re: [asterisk-users] Custom Voicemail Notification Email

2006-11-28 Thread Marnus van Niekerk
Details about externnotify and its arguments can be found here 
http://www.voip-info.org/wiki-Asterisk+config+voicemail.conf


M


RR wrote:

Hello all,

does anyone have a clever way of creating a customised email that goes
out as result of the voicemail notification. And I don't mean Editing
what you want in the emailbody, emailsubject, serveremail etc
keywords. I mean custom in the sense that it has that info but the
email is stylised to a certain format, with company logos and images
etc. Is this more a sendmail question or do I need to do something
within the app_voicemail.c code to make this to happen?

Thanks,
\R
___
--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



___
--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



___
--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