LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-17-2008, 06:22 PM   #1
sxa
Senior Member
 
Registered: Aug 2003
Location: Austin, TX
Distribution: Mac OS 10.7 / CentOS 6(servers) / xubuntu 13.04
Posts: 1,186

Rep: Reputation: 49
Configuring voicemail.conf to allow for customer subjects in vm emails on asterisk


So here is the deal. I have an Asterisk server here at work that I have recently taken over and the boss is wanting the server to do a lot of things that it didn't do before. I have already configured much of what he wanted including a voice messaging line where anyone can call in and leave a message and then he would get that message in his email. However, the boss wants his email subject to read something like "This is an urgent message through the HISG voice messaging system" so he knows that that message came through that number as opposed to his voicemail box that already gets forwarded there. The default is the "[PBX]: New Message 10 in mailbox 0307". At second glance he would know which voicemail box is his line but he wants things to be different and so I am trying to make that happen.

I know there is the 'emailsubject' option. I haven't tried this yet but my concern is that it will set the subject the same on every single box (obviously what the command is designed for). I can I customize a voicemail message so that if something comes in on our 0307 line it has a certain message and then we might get a message on 1942 line that we want a different subject.

I am new to Asterisk, only been messing with it for a couple of weeks. Any thoughts?
 
Old 09-18-2008, 03:02 AM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
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

Last edited by comprookie2000; 09-18-2008 at 03:16 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Voicemail email troubles with Asterisk server sxa Linux - Server 2 09-13-2008 02:05 AM
asterisk [incoming] extension.conf question Lantzvillian Linux - Networking 1 03-16-2008 08:39 PM
BASH:Howto let festival read the subjects of the new gmail incoming emails every30min frenchn00b Linux - General 1 03-16-2008 05:39 AM
LXer: Junction Networks uses Asterisk to tailor VoIP to customer demands LXer Syndicated Linux News 0 02-05-2008 12:11 AM
Asterisk extensions.conf!! Law1213 Linux - Software 2 01-07-2006 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration