<div dir="ltr">Hello Steve,<div><br></div><div>Thank you for the response.</div><div><br></div><div>My problem is that I can&#39;t find the file name in anyway. I use api_hangup_hook and can see all the relevant information but don&#39;t know how to find the filename.</div>
<div><br></div><div>I am also able to set custom variables to the channel so I can see them in api_hangup_hook, but I can&#39;t find the voicemail filename anywhere.</div><div><br></div><div>Regards,</div><div>Ali Pey</div>
<div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 22, 2013 at 4:07 PM, Steven Schoch <span dir="ltr">&lt;<a href="mailto:schoch+freeswitch.org@xwin32.com" target="_blank">schoch+freeswitch.org@xwin32.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im">On Mon, Oct 21, 2013 at 2:21 PM, Ali Pey <span dir="ltr">&lt;<a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>&gt;</span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr"><div>I need to send a customized voicemail notification based on certain condition once a voicemail is recorded.<br></div></div></blockquote><div><br></div></div><div>I did this externally to FreeSWITCH by sending the vm-notify to a perl script.</div>

<div><br></div><div>We run FreeSWITCH on CentOS, so it was easy to set up an email address that I called &quot;vm-page&quot;. For this notification, I didn&#39;t need the audio file, so I used vm-notify instead of vm-mailto. In my directory file, I used this:</div>

<div><br></div><div><div>      &lt;param name=&quot;vm-notify-mailto&quot; value=&quot;vm-page&quot;/&gt;</div><div>      &lt;param name=&quot;vm-notify-email-all-messages&quot; value=&quot;true&quot;/&gt;</div></div><div>

<br></div><div>In /etc/aliases, I have this:</div><div><br></div><div><div># Paging notify from phone system</div><div>vm-page:        &quot;|/etc/smrsh/vm-page&quot;</div></div><div><br></div><div>And /etc/smrsh/vm-page is a perl script that parses the message, looking for the &#39;From&#39; line (which contains the caller-ID info), the &#39;Return-Path&#39; header (which contains the voice mailbox number), the &#39;X-Priority&#39; line (which can identify an urgent message), and the &#39;X-Voicemail-Length&#39; header.</div>

<div><br></div><div>In our system, this script parses this stuff, reformats it, and then sends it through an email-to-SMS gateway at <a href="http://vtext.com" target="_blank">vtext.com</a>.</div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>-- </div><div>Steve</div>
</font></span></div><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div><img class="cm-tracker" src="https://contactmonkey.com/api/v1/tracker?cm_session=59b8fa52-2a46-4a53-8367-926a6b8641a1&amp;cm_type=open&amp;cm_user_email=alipey@gmail.com"></div></div>