There's documentation at http://wiki.freeswitch.org/wiki/Mod_python If you're running a script as an app from the dialplan you get a session object and can do session.getVariable("varname"). For the dialplan binding, you don't have a session object so there's no way to get the variables that way. I assume a session has been created by then, but it's simply not passed through the binding API. What do you get for param1 & param in "def xml_fetch(param1, param2)" - perhaps they contain a UUID that you can use? -Steve On 4 March 2011 13:14, hkalyoncu <hkalyoncu@gmail.com> wrote:
hello
im trying to write a dynamic dialplan module with mod_python. i did the dialplan binding of my module in python configuration file. and im using xml_fetch in my module. everything is ok up to that.
But i cannot find how i can access channel variables from my module? (absolutely no docs for this) can someone help how can i dump all channel variables to a file from my module?
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/mod-python-tp6088430p6088430.h... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org