Hello users,<div><br></div><div>I&#39;m writing a fairly simple python IVR script. It&#39;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>&lt;!-- village idol --&gt;</div><div>&lt;extension name=&quot;bok_idol&quot;&gt;</div><div>  &lt;condition field=&quot;${destination_number}&quot; expression=&quot;^111$&quot;&gt;</div>

<div>    &lt;action application=&quot;answer&quot;/&gt;</div><div>    &lt;action application=&quot;python&quot; data=&quot;village_idol_record&quot;/&gt;</div><div>    &lt;action application=&quot;hangup&quot;/&gt;</div>
<div>
  &lt;/condition&gt;</div><div>&lt;/extension&gt;</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&#39;s a call record for a call that ended minutes ago:</div>

<div><div>freeswitch@internal&gt; 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 href="javascript:_e({}, &#39;cvml&#39;, &#39;IMSI510555550000000@192.168.1.200&#39;);" target="_blank">IMSI510555550000000@192.168.1.200</a>,CS_EXECUTE,IMSI510555550000000,IMSI510555550000000,192.168.1.200,111,<a href="javascript:_e({}, &#39;cvml&#39;, &#39;IMSI510555550000000@192.168.1.200&#39;);" target="_blank">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 (&quot;Exiting...&quot;) 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">http://pastebin.freeswitch.org/20256</a>) but the calls remain in the table...</div>
<div><br></div><div>Anyone know what I&#39;m doing wrong here?</div><div><br>Thanks!</div>