Dear all:
I am confused with voicemail for several days. I hope someone could help me please.
I would like to send a voicemail with audio attachment by my application. My FS is Version 1.0.head, on Windows XP. The following are my configurations:
switch.conf.xml:
<param name="mailer-app" value="C:\FreeSWITCH\Mailer.exe"/>
<param name="mailer-app-args" value="MyArgs -t"/>
\directory\default\1001.xml
<param name="vm-password" value="1001"/>
<param name="vm-mailto" value="thisjoy@gmail.com" />
<param name="vm-email-all-messages" value="true"/>
<param name="vm-attach-file" value="true" />
Other settings are as default. I register with 1000 and call 1001 (not registered) for sending a voicemail. When I left a message, my Mailer.exe only receives the arguments: -f 1001@192.168.1.1 MyArgs –t thisjoy@gmail.com. FS shows "The process tried to write to a nonexistent pipe", and the mail actually sends to me without the attachment (I have test my Mailer.exe, it could attach a file without FS). The audio file exists in "C:\FreeSWITCH\storage\voicemail\default\192.168.1.1\1001". I saw “2010-11-12 18:50:18.171875 [DEBUG] switch_utils.c:631 Emailed file [C:\DOCUME~1\123\LOCALS~1\Temp\mail.12895590120029] to [thisjoy@gmail.com]” in the log file, but the file “mail.12895590120029” never appears. I found that the directory “C:\DOCUME~1\123\LOCALS~1\Temp” is as the sqlite temporary path in the “freeswitch\libs\sqlite\www\pragma.tcl”, although I do not know if this causes the mail failure.
Could anyone teach me how to attach the audio file with the mail?
Sincerely yours,
thisjoy.