[Freeswitch-users] VoiceMail to Email troubles

Peter Hinman Peter.Hinman at ParcelPool.com
Wed Sep 1 09:48:08 PDT 2010


  I'm struggling with getting VoiceMail messages sent out via email.  
I've tried the python and PHP scripts but it doesn't look like either of 
them actually get run when a voice mail is left.  I've also created a 
lua script for testing purposes to show that the script is actually 
being called, and it doesn't look like it's getting called either.

Currently in switch.conf.xml I have the following:

<param name="mailer-app" value="/usr/local/bin/lua51/lua"/>
<param name="mailer-app-args" 
value="/usr/local/freeswitch/scripts/test.lua"/>


My directory.xml contains the following:
<user id="1001">
<params>
<param name="vm-email-all-messages" value="true"/>
<param name="vm-attach-file" value="true"/>
<param name="vm-keep-local-after-email" value="false"/>
<param name="vm-mailto" value="Peter.Hinman at ParcelPool.com"/>
</params>
</user>

The session log for the call shows the following:
2010-09-01 16:28:55.588613 [DEBUG] mod_voicemail.c:2403 Deliver VM to 
1001 at ParcelPool.com
2010-09-01 16:28:55.607187 [DEBUG] switch_utils.c:631 Emailed file 
[/tmp/mail.12833585354d4c] to [Peter.Hinman at ParcelPool.com]
2010-09-01 16:28:55.607187 [DEBUG] mod_voicemail.c:2571 Sending message 
to Peter.Hinman at ParcelPool.com
2010-09-01 16:28:55.609671 [DEBUG] switch_cpp.cpp:602 CoreSession::hangup


If I call the lua script from the command line it runs correctly, but it 
doesn't appear to get called by FS when I leave a voice mail msg.

Any ideas what I'm missing here?

Thanks,
Peter





More information about the FreeSWITCH-users mailing list