<br clear="all">Not sure what you are asking since you provided the answer yourself...<br><br>Yes it is possible and that is the way to do it.<br><br>JM<br>
<br><br><div class="gmail_quote">On Sat, Feb 13, 2010 at 5:03 PM, mbsip <span dir="ltr">&lt;<a href="mailto:mbsip@gazeta.pl">mbsip@gazeta.pl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I am trying to use mod_python to fetch data from Mysql db (through<br>
ODBC) and execute voicemail application.<br>
Below a part of my script:<br>
<br>
db=MySQLdb.connect(&quot;localhost&quot;,&quot;root&quot;,&quot;&quot;,&quot;test&quot;)<br>
       Cursor=db.cursor()<br>
       sql = &quot;SELECT email FROM VM WHERE called_num=%s&quot; % the_dest<br>
       Cursor.execute(sql)<br>
       while (1):<br>
               Results = Cursor.fetchone()<br>
               if Results == None:<br>
                       break<br>
               consoleLog(&quot;debug&quot;, &quot;Found email &quot; + Results[0] +&quot;\n&quot;)<br>
               the_recipient = Results[0]<br>
       db.close()<br>
<br>
Now i have email address corresponding with called number. The<br>
question is how to use it for voicemail application?<br>
So it also means how to omit all /directory/default/....xml, where<br>
there are all VM parameters set and use fetched data.<br>
<br>
       session.answer()<br>
       session.execute(&quot;voicemail&quot;, &quot;default ${domain} &quot; + the_dest)<br>
<br>
Is this possible or should I start all VM app in python from the scratch?<br>
<br>
Thanks,<br>
Maciej<br>
<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>
</blockquote></div><br>