[Freeswitch-users] Outbound calls from the CLI in Python
mike at jerris.com
Mon Oct 6 21:52:53 PDT 2008
Check out http://svn.freeswitch.org/svn/freeswitch/trunk/src/mod/languages/mod_python/python_example.py
for more information on how you need to structure your python
scripts. Please note that the information on the wiki at :
is out of date. If someone would update that with information from
the example file above it would be much appreciated.
On Oct 6, 2008, at 11:02 PM, Marc Orenberg wrote:
> Hello. I was wondering if origination of outbound calls from the CLI
> is currently supported in Python.
> I've been unable to find a working example of this anywhere, and
> when I try calling a python script from the CLI I always get an
> error: "Module does not define fsapi".
> Here's a non-working example of what I'm trying to do:
> import os
> from freeswitch import *
> def handler(session, args):
> consoleLog("INFO","Im in handler")
> new_session = Session()
> gateway/" + SIP_CARRIER + "/" + phone_number)
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users