I'm using Perl ESL outbound script to bridge incoming call to sip endpoint. I'm doing execute("bridge","sofia/user/somebody"), then processing events like CHANNEL_HANGUP and EXECUTE_COMPLETE to determine bridge result. Everything works fine, but original incoming call channel is never removed from list:
7ae28028-4bc2-11e0-a92f-452f3d3d66ea,inbound,2011-03-11 12:32:27,1299835947,sofia/external/xxxx@85.x.x.199,CS_REPORTING,622xxxx,622xxxx,85.114.x.x,622xxxx,hangup,USER_BUSY,XML,route_in,,,,,,,,
xxx.xxx.ru,,,HANGUP,,,,
883c9eb6-4bc2-11e0-a935-452f3d3d66ea,inbound,2011-03-11 12:32:50,1299835970,sofia/external/xxxx@85.x.x.199,CS_REPORTING,622xxxx,622xxxx,85.114.x.x,622xxxx,hangup,USER_BUSY,XML,route_in,,,,,,,,
xxx.xxx.ru,,,HANGUP,,,,
9f6a0f92-4bc2-11e0-a93b-452f3d3d66ea,inbound,2011-03-11 12:33:29,1299836009,sofia/external/xxxx@85.x.x.199,CS_REPORTING,622xxxx,622xxxx,85.114.x.x,622xxxx,hangup,USER_BUSY,XML,route_in,,,,,,,,
xxx.xxx.ru,,,HANGUP,,,