[Freeswitch-users] show channels, comma vs TAB ?
Peter Olsson
peter.olsson at visionutveckling.se
Mon Jun 25 10:07:33 MSD 2012
I think you can also use "show channels as xml", which will give you better output for parsing.
/Peter
25 jun 2012 kl. 07:59 skrev "Seven Du" <dujinfang at gmail.com<mailto:dujinfang at gmail.com>>:
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<mailto: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<mailto: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>
!DSPAM:4fe7fb0c32761667990988!
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
!DSPAM:4fe7fb0c32761667990988!
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list