subject for email text for voicemail to email SOLVED

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

subject for email text for voicemail to email SOLVED

Postby Noah » Mon Oct 28, 2013 9:05 pm

Version Stuff: For Bill... :)
VERSION: 2.4-364a
BUILD: 120409-1136
Iso Install - Stock no customizations.
Single server

Description of the problem:
Email body for voicemail to email show's the wrong callerid info.
Where is that script or conf that defines the subject and email body?
The CallerID is coming across with the unique conference id identifier....need to make the adjustments. See below example.

---Example
Dear Customer Service Voicemail:

Just wanted to let you know you were just left a 0:33 long message (number 71)
in mailbox 5001 from Y0281143110000177522, on Monday, October 28, 2013 at 01:47:28 PM so you might
want to check it when you get a chance. Thanks!
End Example---

----Voicemail.conf---- Not here
;!
;! Automatically generated configuration file
;! Filename: voicemail.conf (/etc/asterisk/voicemail.conf)
;! Generator: AppVoicemail
;! Creation Date: Wed Jan 16 09:03:21 2013
;!
; WARNING- THIS FILE IS AUTO-GENERATED BY VICIDIAL, ANY EDITS YOU MAKE WILL BE LOST
; ONLY VOICEMAIL BOXES DEFINED IN VICIDIAL WILL BE ALLOWED IN THIS FILE
; IF YOU WANT TO ADD NON-VICIDIAL VOICEMAIL BOXES, ADD THEM IN A NEW
; CONTEXT BEFORE THE DEFAULT CONTEXT
[general]
format = wav49|gsm|wav
serveremail = asterisk
attach = yes
skipms = 3000
maxsilence = 10
silencethreshold = 128
maxlogins = 3
maxmsg = 300

[zonemessages]
eastern = America/New_York|'vm-received' Q 'digits/at' IMp
central = America/Chicago|'vm-received' Q 'digits/at' IMp
central24 = America/Chicago|'vm-received' q 'digits/at' H 'digits/hundred' M 'hours'
...

What's been checked thus far.
/usr/share/astguiclient/AST_vm_update.pl - Not here
grepped the /var/lib/asterisk/agi-bin for the subject text and main body text - Not there
grepped ---------------grep -r -i 'Just wanted to let you know you were' /etc/* - Didn't find the text
grepped ---------------grep -r -i 'Just wanted to let you know you were' /var/* - Didn't find the text
....?? Where is this text being generated?

-------------Solution---------------------Applies to multiple drop options
The AGI is the component handing off what the callerid id is to the Voicemail system.

In the agi-VDAD_ALL_inbound.agi - there exists a section referring to the inbound group drop action
Below Line Line 4653

In the section
if ($drop_action =~ /VOICEMAIL/)

changed line $newcallerid = "\"$VCcallerid <$transfer_cid>\"";
to
$newcallerid = $transfer_cid;

For No Agents No Queueing this will need to be changed as well.

Line 1599 under the section
if ($no_agent_action =~ /VOICEMAIL/)

Same change needed
$newcallerid = "\"$VCcallerid <$transfer_cid>\"";
to
$newcallerid = $transfer_cid;


This sends across the CUSTOMER callerid...
Last edited by Noah on Thu Nov 28, 2013 12:09 pm, edited 2 times in total.
MyCallCloud.com - Cool Vici Customizations - Hosted - Configured - Supported
Web: https://mycallcloud.com
P: 888-663-0760
E: sales@mycallcloud.com
Noah
 
Posts: 90
Joined: Tue Feb 08, 2011 7:14 pm

Re: Where is subject and email text for voicemail to email

Postby williamconley » Mon Oct 28, 2013 10:47 pm

Actually, that is a "Comedian mail" configuration question. We've changed it a few times for clients (and for fun).

Modify email body
Code: Select all
nano /etc/asterisk/voicemail.conf

Modify [general] context.

add value "emailbody=" to add your preferred text.

note that this must be a single line using \n and \t for formatting and variables such as VM_DUR.

Variables listed here: http://www.voip-info.org/wiki/view/Aste ... email.conf

Variables to use in emailsubject and emailbody
    VM_NAME
    VM_DUR
    VM_MSGNUM
    VM_MAILBOX
    VM_CIDNUM
    VM_CIDNAME
    VM_CALLERID
    VM_DATE
Sample:

Code: Select all
emailbody=Dear ${VM_NAME}:\n\n\tJust wanted to let you know you were just left a ${VM_DUR} long message (number ${VM_MSGNUM})\nin mailbox ${VM_MAILBOX} from ${VM_CIDNAME} ${VM_CIDNUM}, on ${VM_DATE}, so you might\nwant to check it when you get a chance.  Thanks!\n\n\t\t\t\t--PBX\n\n\nTesting http://ServerName.Domain.com/phpMyAdmin/sql.php?db=asterisk&table=call_log&sql_query=SELECT+*+FROM+%60call_log%60+ORDER+BY+%60call_log%60.%60uniqueid%60++DESC\n

Remember: ONE LINE with newlines and tabs as shown above. But no actual line returns.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Where is subject and email text for voicemail to email

Postby Noah » Mon Oct 28, 2013 11:02 pm

I'll give that a shot...
What happens when voicemail.conf get's overwritten, as when a new phone entry get's created?
MyCallCloud.com - Cool Vici Customizations - Hosted - Configured - Supported
Web: https://mycallcloud.com
P: 888-663-0760
E: sales@mycallcloud.com
Noah
 
Posts: 90
Joined: Tue Feb 08, 2011 7:14 pm

Re: Where is subject and email text for voicemail to email

Postby williamconley » Tue Oct 29, 2013 1:52 pm

If those instructions work out for you, you can modify the system to write voicemail.conf with your preferred content. If it actually does get overwritten (without keeping the general context intact), I'll be surprised. But if so, we probably have instructions to fix the vicidial perl scripts that do the mods to keep our changes. I didn't look when I extracted this content for you. But I can certainly check it out if it's needed. See if this works for you and let me know.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Where is subject and email text for voicemail to email

Postby Noah » Sat Nov 16, 2013 10:59 am

Some follow up to the problem.

The Callerid is the unique channel id Y1160842400000186404 or whatever it may be at the time when the call is dropped from an ingroup to voicemail.
----------------------
Just wanted to let you know you were just left a 0:01 long message (number 118)
in mailbox 5001 from Y1160842400000186404, on Saturday, November 16, 2013 at 10:43:36 AM so you might
want to check it when you get a chance. Thanks!
----------------------
Above ...From an inbound group -> Drop -> Voicemail.

************************************************
When the call is directed from a DID Route -> VoicemailBOX(5555) The callerid passes correctly in the email.
This is the formatted email message...
Dear mcc testing:

Just wanted to let you know you were just left a 0:07 long message (number 1)
in mailbox 5555 from 1720XXXXXXX, on Saturday, November 16, 2013 at 10:36:54 AM so you might
want to check it when you get a chance. Thanks! (For this post removed the last 7 of the phone number)

Any Thoughts as to where the CID conversion is occurring?
MyCallCloud.com - Cool Vici Customizations - Hosted - Configured - Supported
Web: https://mycallcloud.com
P: 888-663-0760
E: sales@mycallcloud.com
Noah
 
Posts: 90
Joined: Tue Feb 08, 2011 7:14 pm

Re: subject for email text for voicemail to email SOLVED

Postby williamconley » Sat Nov 16, 2013 1:26 pm

We modified that to use the cid number instead of cid name in the generation of the email. Which doesn't get changed if I recall correctly.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: subject for email text for voicemail to email SOLVED

Postby Noah » Mon Feb 03, 2014 6:05 pm

-------------Solution---------------------Applies to multiple drop options
The AGI is the component handing off what the callerid id is to the Voicemail system.

In the agi-VDAD_ALL_inbound.agi - there exists a section referring to the inbound group drop action
Below Line Line 4653

In the section
if ($drop_action =~ /VOICEMAIL/)

changed line $newcallerid = "\"$VCcallerid <$transfer_cid>\"";
to
$newcallerid = $transfer_cid;

For No Agents No Queueing this will need to be changed as well.

Line 1599 under the section
if ($no_agent_action =~ /VOICEMAIL/)

Same change needed
$newcallerid = "\"$VCcallerid <$transfer_cid>\"";
to
$newcallerid = $transfer_cid;


This sends across the CUSTOMER callerid...
MyCallCloud.com - Cool Vici Customizations - Hosted - Configured - Supported
Web: https://mycallcloud.com
P: 888-663-0760
E: sales@mycallcloud.com
Noah
 
Posts: 90
Joined: Tue Feb 08, 2011 7:14 pm

Re: subject for email text for voicemail to email SOLVED

Postby bghayad » Thu Jun 11, 2020 6:19 am

Hello;

I found this topic is talking about (or close to) something I need it.
Is it possible to display the DID or the IN-GROUP that the call entered it initially? Because I need to know to which group or agent the call war targeted, so it can be treated by the proper person.
How?

Regards
Bilal
bghayad
 
Posts: 579
Joined: Sun Jan 01, 2012 4:53 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 71 guests