a = commands.getstatusoutput('/usr/local/freeswitch/bin/fs_cli -x "show calls"')
When i run this command it gives output which you can see...
0uuid,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 7135c05c-7511-11e6-a09e-89a1f4981d2c,outbound,2016-09-07 11:40:45,1473262845,sofia/external/12036325207,CS_EXECUTE,Outbound Call,12036325207,,12036325207,,,ACTIVE,9047125683,9047125683,RECV,7135c05c-7511-11e6-a09e-89a1f4981d2c,vb-pmedia,,,,,,,,,,,,,,,,,,,,, 75a9d3ee-7511-11e6-a115-89a1f4981d2c,outbound,2016-09-07 11:40:53, 1473262853,
sofia/external/1203632525,CS_EXECUTE,
Outbound Call,
,
,ACTIVE,
RECV,
75a9d3ee-7511-11e6-a115-89a1f4981d2c,
vb-pmedia,,,,,,,,,,,,,,,,,,,,,7841c6c0-7511-11e6-a139-89a1f4981d2c,
outbound,2016-09-07 11:40:57,1473262857,sofia/external/16189973135,