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?

On Saturday, November 24, 2012, Kurtis Heimerl wrote:
Hello users,

I'm writing a fairly simple python IVR script. It's available here: https://github.com/kheimerl/papua-vbts-apps/blob/master/village_idol/scripts/village_idol_record.py

My dialplan is also very simple:
<!-- village idol -->
<extension name="bok_idol">
  <condition field="${destination_number}" expression="^111$">
    <action application="answer"/>
    <action application="python" data="village_idol_record"/>
    <action application="hangup"/>
  </condition>
</extension>


However, every time I call the service, the calls seem to stick around in FS. 

Here's a call record for a call that ended minutes ago:
freeswitch@internal> show calls
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
e0bc5d12-362e-11e2-8ee4-d16392532c11,inbound,2012-11-24 21:02:54,1353758574,sofia/openbts/IMSI510555550000000@192.168.1.200,CS_EXECUTE,IMSI510555550000000,IMSI510555550000000,192.168.1.200,111,IMSI510555550000000@192.168.1.200,,ACTIVE,,,,,UCBTelco,,,,,,,,,,,,,,,,,,,,,

1 total.

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 (http://pastebin.freeswitch.org/20256) but the calls remain in the table...

Anyone know what I'm doing wrong here?

Thanks!