[Freeswitch-users] show channels, comma vs TAB ?

Seven Du dujinfang at gmail.com
Mon Jun 25 09:51:30 MSD 2012


Hi,

I use originate user/1000 &bridge({aa=bb,cc=dd}user/1002)

show channels gives a comma separated list, however, as some app data contains commas, this will be hard to parse, could we change to TAB? I understand query the db directly would be fine but sometimes it's just easy to parse the cli output. ideas? thanks.


uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num
d412fdda-5fbc-4754-9803-2db06898a8b0,outbound,2012-06-25 13:47:03,1340603223,sofia/internal/sip:1000 at 192.168.2.102:26570,CS_EXECUTE,Outbound Call,1000,,1000,bridge,{aa=bb,cc=dd}user/1002,,default,PCMA,8000,64000,PCMA,8000,64000,,seven-macpro.local,1000 at 192.168.2.102,,ACTIVE,,,RECV,d412fdda-5fbc-4754-9803-2db06898a8b0,,
b5ca402e-d72e-4109-a8ee-634e873f3c31,outbound,2012-06-25 13:47:30,1340603250,sofia/internal/sip:1002 at 192.168.2.102:20676,CS_CONSUME_MEDIA,Extension 1000,1000,192.168.2.102,1002,,,,default,,,,,,,,seven-macpro.local,1002 at 192.168.2.102,,RINGING,Outbound Call,1002,,d412fdda-5fbc-4754-9803-2db06898a8b0,,


-- 
About: http://about.me/dujinfang
Blog: http://www.dujinfang.com
Proj:  http://www.freeswitch.org.cn

Sent with Sparrow (http://www.sparrowmailapp.com)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120625/19b08dc0/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list