HTML Display when a voicemail is left

Status
Not open for further replies.

jazziao

Joined
May 6, 2013
Messages
35
Reaction score
0
Hello Guys.

As you might know, the file "vm_email.inc" holds information to display when a voice mail is left and an email is sent, I have an output showing some global variables (VM_NAME, VM_MAILBOX, VM_CALLERID, etc etc). At the end there is a variable called "emailbody" when the output is displayed.

I have something that says: "Visit https://XXX.XXX.XXX.XXX/recordings/index.php?login=${VM_MAILBOX}".............

I want to display my full URL instead of the IP address, ie: https://pbx.mydomain.com/recordings......I change this in that file and reload and it shows the full URL but it only work for a while as this changes back to IP address again. That's why I suspect that Asterisk is taking this value from somewhere and displays the IP address instead of the URL I pass. I have been trying to troubleshoot and Google this a lot but to no avail.

Help will be greatly appreciated. Thanks in advance.
 
If you don't find the solution, one quick workaround would be to set that file only read permissions:
chmod 444 vm_email.inc
 
Thanks for the help, made the changes as requested, realoaded and tested it out and it showed the full URL, I will keep monitoring and testing throughout the day just to see if this changes remain. Another issue that I noticed is the email where it comes from, my Asterisk shows "[email protected]", I'm going to look that up and change it accordingly. If I'm stuck on that part I will not hesitate in buggin' you :P
 
I need to change this also to display the proper URL and not the local network address of the server. Problem is that when I change it through the "tools", "editor" and do a save as soon as a VM is received this file is re-writen back to the local network address of the server. What causes the file re-write? Does doing the chmod cause errors else where?

The file should display a proper URL (set by admin) so people outside the network that click on it can get there vm's.

amphibian
 
You can also change the file /var/www/html/libs/misc.lib.php

Look for $ip = $_SERVER['SERVER_ADDR'] and replace it with $ip = 'www.yourdomain.com'

This should be at line # 612. Always make a backup of the original file first before modifying it. :wink:
 
Status
Not open for further replies.

Latest Posts

Members Online Now

Forum statistics

Threads
111,861
Messages
589,439
Members
164,701
Latest member
yarusemiKK