Hi there,
Here is my problem:
I'd like to set up a switchboard. I'm using python scripts called when a call is coming. Here is my public.xml:
<extension name="toto">
<condition field="destination_number" expression="[0-9]*">
<action application="python" data="test.test2" />
</condition>
</extension>
Next, in my test2.py, I put the uuid of the session in a database:
import os, cgi, MySQLdb, time
from freeswitch import *
def handler(session, args):
uuid = session.getVariable("uuid")
myconnection = MySQLdb.connect(host = "localhost", user = "root", passwd = "root", db = "testfreeswitch")
mycursor = myconnection.cursor()
mycursor.execute("INSERT INTO fileAttente VALUES (NULL, '0123456789', 'LIBRE', '" + uuid + "')")
session.execute("park")
Everything runs fine from here.
After this, I use telnet to have a connection to freeswitch.
And... I'm stuck.
I would like this: