[Freeswitch-users] Possible to mock out _freeswitch.py?
brian at freeswitch.org
Wed Jan 28 16:20:22 PST 2009
On Jan 28, 2009, at 6:07 PM, Brian Deacon wrote:
> I have. But 'says here:
> That the "import _freeswitch" in freeswitch.py breaks except when the
> script is run by mod_python. (At which point there is some python
> voodoo going on here that is beyond me. Is _freeswitch a
> runtime-generated SWIGism?)
Correct you can't do that unless its running in mod_python inside
> So I was thinking I could dump a _freeswitch.py onto the PYTHONPATH
> trying to debug code outside of mod_python. But probably easier for
> trivial things would be to just get the python error output to spit to
> the log, but it seems to be getting swallowed.
> Or was there something else in python_example.py that I've been too
> dense to notice?
I think the key is to know you can only run it inside FreeSWITCH.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users