This information gets passed in to the function in which this query is called. Look for calls to the function named &quot;deliver_vm&quot; to see what arguments the calling process sends to it.<br><br>-MC<br><br><div class="gmail_quote">
On Fri, Nov 9, 2012 at 4:49 AM, Archana Venugopan <span dir="ltr">&lt;<a href="mailto:a.venugopan@mundio.com" target="_blank">a.venugopan@mundio.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 link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have got a doubt. In mod_voicemail.c script I see the below query<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">&quot;insert into voicemail_msgs(created_epoch, read_epoch, username, domain, uuid, cid_name, &quot;<u></u><u></u></p>
<p class="MsoNormal">                                                          &quot;cid_number, in_folder, file_path, message_len, flags, read_flags, forwarded_by) &quot;<u></u><u></u></p>
<p class="MsoNormal">                                                          &quot;values(%ld,0,&#39;%q&#39;,&#39;%q&#39;,&#39;%q&#39;,&#39;%q&#39;,&#39;%q&#39;,&#39;%q&#39;,&#39;%q&#39;,&#39;%u&#39;,&#39;&#39;,&#39;%q&#39;,&#39;%q&#39;)&quot;, (long) switch_epoch_time_now(NULL),<u></u><u></u></p>

<p class="MsoNormal">                                                          myid, domain_name, use_uuid, caller_id_name, caller_id_number,<u></u><u></u></p>
<p class="MsoNormal">                                                          myfolder, file_path, message_len, read_flags, switch_str_nil(forwarded_by));<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Want to know from where myid and domain_name are picked up. Initially I thought it was picking from voicemail_prefs but even if there are no entries for a caller in voicemail_prefs table it still insert the value.<u></u><u></u></p>

<p class="MsoNormal">Please let me know on this. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Mod_voicemail.c code is the same as present online.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Regards,<u></u><u></u></p>
<p class="MsoNormal">Archana<span style="font-size:10.0pt"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</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><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>