<div dir="ltr">Oops - sent too quickly. Here&#39;s the code: <a href="https://gist.github.com/dfee/dcc4203a34c4e3978683">https://gist.github.com/dfee/dcc4203a34c4e3978683</a></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><font color="#000000">--</font></div><div><font color="#000000">Devin Fee</font></div><div style="color:rgb(136,136,136)"><a href="http://linkedin.com/in/devinfee" style="color:rgb(17,85,204)" target="_blank">LinkedIn</a></div><div><a value="+15125390468"><font color="#000000">512.539.0468</font></a></div></div></div>
<br><br><div class="gmail_quote">On Fri, Sep 5, 2014 at 4:43 AM, Devin Fee <span dir="ltr">&lt;<a href="mailto:devin.fee@gmail.com" target="_blank">devin.fee@gmail.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">I found this (<a href="https://wiki.freeswitch.org/wiki/Examples_directory_py" target="_blank">https://wiki.freeswitch.org/wiki/Examples_directory_py</a>) example code for using mod_python to be quite poor. Some credit goes to the fact it&#39;s from 2008.<div><div>
</div></div><div><br></div><div>I decided to take this code update it, improve it, and learn how FreeSWITCH works in the process. Here&#39;s the code that&#39;s simplified, improved, and meets PEP8.</div><div><br></div><div><br></div><div>The only &quot;feature&quot; that was not ported over was the `checkforgreeting` function. Implementing a DB connection should be easy enough, though.</div></div>
</blockquote></div><br></div>