Hi there,<br><br>Here is my problem:<br>I&#39;d like to set up a switchboard. I&#39;m using python scripts called when a call is coming. Here is my public.xml:<br><br><b>&lt;extension name=&quot;toto&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;[0-9]*&quot;&gt;<br>
            &lt;action application=&quot;python&quot; data=&quot;test.test2&quot; /&gt;<br>      &lt;/condition&gt;<br>&lt;/extension&gt;</b><br><br>Next, in my test2.py, I put the uuid of the session in a database:<br><br>
<b>import os, cgi, MySQLdb, time<br>from freeswitch import *<br><br>def handler(session, args):<br><br>        uuid = session.getVariable(&quot;uuid&quot;)<br><br>        myconnection = MySQLdb.connect(host = &quot;localhost&quot;, user = &quot;root&quot;, passwd = &quot;root&quot;, db = &quot;testfreeswitch&quot;)<br>
        mycursor = myconnection.cursor()<br><br>        mycursor.execute(&quot;INSERT INTO fileAttente VALUES (NULL, &#39;0123456789&#39;, &#39;LIBRE&#39;, &#39;&quot; + uuid + &quot;&#39;)&quot;)<br><br>        session.execute(&quot;park&quot;)</b><br>
<br>Everything runs fine from here.<br>After this, I use telnet to have a connection to freeswitch.<br>And... I&#39;m stuck.<br>I would like this:<br><div style="margin-left: 40px;">a file corresponding to the caller (test2)<br>
a file corresponding to the callee; This file will be pretty much the same that test2.<br>a file which will be run in the same time that Freeswitch; This file will dialog with Freeswitch and the database.<br><br></div>The real problem that I have is that I don&#39;t know how to create a new session corresponding to the callee (via a python script).<br>
If somebody could help me, it could be really great =)<br><br>Thanks a lot<br><br>Mathieu<br>