AMPWEBADDRESS - vm_email.inc

Status
Not open for further replies.

arfio

Joined
May 5, 2009
Messages
40
Reaction score
0
When i leave a message in voicemail the email that arrive to me is something like:

Hai un nuovo messaggio nella casella di posta vocale 249301:

Da: <249317>
Durata: 0:05 secondi
Data: Tuesday, February 28, 2012 at 12:52:00 PM

Digita *97 per accedere alla posta vocale dal telefono.
Visita https://192.168.6.15/recordings/index.php?login=249301 per controllare la posta vocale da web.



I want to set the ip address as the public domain: i would recive an email like:

Hai un nuovo messaggio nella casella di posta vocale 249301:

Da: <249317>
Durata: 0:05 secondi
Data: Tuesday, February 28, 2012 at 12:52:00 PM

Digita *97 per accedere alla posta vocale dal telefono.
Visita https://sip.mydomain.org/recordings/ind ... gin=249301 per controllare la posta vocale da web.



I try to modify that part of the vm_email.inc in the elestix gui, but wen i reload asterisk something append and i find again the local ip address il the vm_email.inc insted of the public domain. I even try to modify in the shell by nano. Until i do not reload asterisk all seems to be ok, but wen i reload asterisk i find the ip address instead of the public domain.



I modify the amportal.conf and i set AMPWEBADDERSS=sip.mydomain.org.

always the same. The amportal.conf remain with my mod, but the email i recieve is always with local IP address (the vm_email.inc is reset with the local ip)


I guess there is a script that rewrite vm_emeil.inc putting in it the local IP.

someone have an idea ?
 
And what about is you take out the variable and rite down the URL?
 
Hi arfio

You got me interested with this one, so I had a look and found the following (on Elastix 2.2):

Backup(!) and edit the file '/var/www/html/libs/misc.lib.php' by changing the line '$ip = $_SERVER['SERVER_ADDR'];' (somewhere at line 593) to something like '$ip = "yourdomainname.com";'.

I can't express how important it is to backup these files before editing them, this could potentially wreck your whole system if not done with care.

I haven't tested it with an actual voicemail e-mail, but my vm_email.inc reflected the change I made.

Please test on your system and let us know if it works! And be careful.
 
YSSS !!!

It works !!!

I was loosing my mind finding wich file, while reloading, change my settings in vm_email.inc

THANK YOU !!

and what about this other problem :

Scheduled conference
 
Great to hear!

I'll try and have a look, I haven't used that functionality myself, but how hard can it be?

Have a good one
 
I am running latest stable version,

I made the suggested change in the listed file and it still no work for me.

I changed the file to read $ip = "yourdomainname.com", to try and see if it would work and it didn't, I went back to the vm_email.inc and changed that to read what I wanted and it still sends out "Visit https://192.168.1.100/recordings/index.php?login=8000 to check your voicemail with a web browser.",

any suggestion, please



Thanks

Amphibian
 
Submit a change on the GUI so FreePBX can generate a new vm_email.inc file.
 
Submit what change in GUI, and are you talking through FreePBX or Elastix's GUI?


Amphibian
 
Doesn't matter if FreePBX or Elastix. Just go into the Extension page > select an extension and click Submit. This will cause FreePBX to regenerate the file.
 
Sir,

You were correct. Thank you very much. It worked as requested.



Amphibian
 
Status
Not open for further replies.

Forum statistics

Threads
111,859
Messages
589,433
Members
164,699
Latest member
CLTedu