Koozali.org: home of the SME Server

voicemail notification pb

Offline edeganay

  • ****
  • 102
  • +0/-0
voicemail notification pb
« on: February 06, 2008, 01:04:34 PM »
Hello there,

I'd like to be able to send the messages left in voicemails to users by email.
I know this is possible, but the server is sending the email to the right (outside) email address, but with a wrong enveloppe, which makes SMTP refuse the mail.

Let me explain more :
 a client is calling extension 5002, nobody here, then leaves a message on the voicemail. an email has to be sent on the external email address of the user of extension 5002 (let's say tata@gmail.com)

Asterisk (or selintra I don't know), creates a msg, and send it as anonymous@myserver.mydomain.local, and of course, gmail doesn't like this.

yes, the domain of my server is mydomain.local, and that's fine because I'm not using qmail and horde with this SME (and I don't have internal mail server)

how can I change this ?

Thanks in advance.
edd

sail-2.2.1-587
Asterisk 1.4 something (the one which comes with the upper)
« Last Edit: February 06, 2008, 01:11:56 PM by edeganay »

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: voicemail notification pb
« Reply #1 on: February 06, 2008, 04:02:32 PM »
Hi Edeganay

You set this in each extension.  Edit the extension and fill out the e-mail address in the "User to Receive E-mail" box.

See here

http://www.selintra.com/docs/cgi-bin/view/Main/DocChapter102

Kind Regards

S

Offline edeganay

  • ****
  • 102
  • +0/-0
Re: voicemail notification pb
« Reply #2 on: February 06, 2008, 04:06:41 PM »
I didn't find the right words then.

The problem doesn't come from the email address to send to, but the email address FROM it comes, which is anonymous@myserver.mydomain.local

am I clear ?

Thanks anyway,
Edd

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: voicemail notification pb
« Reply #3 on: February 06, 2008, 05:08:56 PM »
ah,

Sorry, I did not read properly.

you can set

serveremail => mail@mydomain.com

in headers->voicemail.conf

For a list of all voicemail parameters in voicemail.conf see here

http://www.voipforo.com/en/asterisk/voicemail-conf-configuration.php

Kind Regards

S
« Last Edit: February 07, 2008, 01:09:17 AM by selintra »

Offline sognenovski

  • ***
  • 64
  • +0/-0
Re: voicemail notification pb
« Reply #4 on: February 07, 2008, 12:56:20 AM »
It’s been years since I played with Asterisk/Trixbox behind the Firewall, looks like the same principles apply with Sail.
gmail is looking at the 'Return-Path' in the email header, not 'From' which is changed by editing the servermail option.

Add this to /etc/asterisk/voicemail.conf (change the email address to FQDN)
mailcmd=/usr/sbin/sendmail -v -t -f tata_at_gmail.com

and edit
serveremail=tata_at_gmail.com

should look like this in the [general] section
[general]
format=wav49
serveremail=tata_at_gmail.com
mailcmd=/usr/sbin/sendmail -v -t -f tata_at_gmail.com
attach=yes
maxmessage=300
maxgreet=30
minmessage=2
maxsilence=6
operator=yes
callback=internal

then set the voicemail extention email to ie: tata_at_gmail.com via server-manager

restart asterisk for the changes
# /etc/init.d/asterisk restart


The changes WILL be overwriten with signal-event, so a template is needed for them to stick. (Sing out if need a hand)

Let us know how you go...

Regards
Steve

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: voicemail notification pb
« Reply #5 on: February 07, 2008, 01:06:54 AM »
no need for a template

change the e-mail header in headers=>voicemail.conf

signal event will catch this and replicate it through

Best S

Offline sognenovski

  • ***
  • 64
  • +0/-0
Re: voicemail notification pb
« Reply #6 on: February 07, 2008, 01:28:14 AM »
Quote
no need for a template

change the e-mail header in headers=>voicemail.conf

signal event will catch this and replicate it through

why did I not think of that?

ah, yes...was doing things the old fashion [long] way. Lots of catching up to do  ;)