Actually, I think I just fixed it by adding an "unsetInputCallback()" call to the end of the script. That should probably go to Jira, huh?<br><br>On Saturday, November 24, 2012, Kurtis Heimerl wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello users,<div><br></div><div>I'm writing a fairly simple python IVR script. It's available here: <a href="https://github.com/kheimerl/papua-vbts-apps/blob/master/village_idol/scripts/village_idol_record.py" style="font-size:15px" target="_blank">https://github.com/kheimerl/papua-vbts-apps/blob/master/village_idol/scripts/village_idol_record.py</a></div>
<div><br></div><div>My dialplan is also very simple:</div><div><div><!-- village idol --></div><div><extension name="bok_idol"></div><div> <condition field="${destination_number}" expression="^111$"></div>
<div> <action application="answer"/></div><div> <action application="python" data="village_idol_record"/></div><div> <action application="hangup"/></div>
<div>
</condition></div><div></extension></div></div><div><br></div><div><br></div><div>However, every time I call the service, the calls seem to stick around in FS. </div><div><br></div><div>Here's a call record for a call that ended minutes ago:</div>
<div><div>freeswitch@internal> show calls</div><div>uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,hostname,sent_callee_name,sent_callee_num,b_uuid,b_direction,b_created,b_created_epoch,b_name,b_state,b_cid_name,b_cid_num,b_ip_addr,b_dest,b_presence_id,b_presence_data,b_callstate,b_callee_name,b_callee_num,b_callee_direction,b_sent_callee_name,b_sent_callee_num,call_created_epoch</div>
<div>e0bc5d12-362e-11e2-8ee4-d16392532c11,inbound,2012-11-24 21:02:54,1353758574,sofia/openbts/<a>IMSI510555550000000@192.168.1.200</a>,CS_EXECUTE,IMSI510555550000000,IMSI510555550000000,192.168.1.200,111,<a>IMSI510555550000000@192.168.1.200</a>,,ACTIVE,,,,,UCBTelco,,,,,,,,,,,,,,,,,,,,,</div>
<div><br></div><div>1 total.</div></div><div><br></div><div>In the logs, I see my output ("Exiting...") meaning that the python script ended. I see the call hung up, and the state changes to CS_DESTROY (<a href="http://pastebin.freeswitch.org/20256" style="font-size:15px" target="_blank">http://pastebin.freeswitch.org/20256</a>) but the calls remain in the table...</div>
<div><br></div><div>Anyone know what I'm doing wrong here?</div><div><br>Thanks!</div>
</blockquote>