<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana, helvetica, sans-serif;font-size:10pt;color:#000000;"><DIV>Hello. I was wondering if origination of outbound calls from the CLI is currently supported in Python.</DIV>
<DIV>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".</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here's a non-working example of what I'm trying to do:</DIV>
<DIV>&nbsp;</DIV>
<DIV>import os<BR>from freeswitch import *<BR></DIV>
<DIV>def handler(session, args):</DIV>
<DIV>&nbsp;&nbsp;&nbsp; consoleLog("INFO","Im in handler")</DIV>
<DIV>&nbsp;&nbsp;&nbsp; new_session = Session()</DIV>
<DIV>&nbsp;&nbsp;&nbsp; new_session.originate(session,"{ignore_early_media=true}sofia/gateway/" + SIP_CARRIER + "/" + phone_number)</DIV>
<DIV>&nbsp;</DIV></div></body></html>