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

Seven Du dujinfang at gmail.com
Mon Jun 25 14:09:27 MSD 2012


Yes, it's simple

http://jira.freeswitch.org/browse/FS-4348


On Monday, June 25, 2012 at 3:43 PM, Avi Marcus wrote:

> There's a core function for json export I think.
> -Avi
> 
> 
> On Mon, Jun 25, 2012 at 10:27 AM, Seven Du <dujinfang at gmail.com (mailto:dujinfang at gmail.com)> wrote:
> > as xml is nice, I just forgot it.
> > 
> > And we could make a json format :), let me take a look.
> > 
> > Thanks.
> > 
> > 
> > On Monday, June 25, 2012 at 2:30 PM, Avi Marcus wrote:
> > 
> > > There's no json format, unfortunately...
> > > -Avi 
> > > 
> > > On Mon, Jun 25, 2012 at 9:07 AM, Peter Olsson <peter.olsson at visionutveckling.se (mailto:peter.olsson at visionutveckling.se)> wrote:
> > > > 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)<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 (http://sip:1000@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)<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 (http://sip:1002@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)<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)<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)<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!
> > > > 
> > > > _________________________________________________________________________
> > > > 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
> > > 
> > > _________________________________________________________________________
> > > 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
> > > 
> > > 
> > > 
> > 
> > 
> > 
> > _________________________________________________________________________
> > 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
> > 
> 
> _________________________________________________________________________
> 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
> 
> 


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


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