• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to check the channel count

 
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am trying to get the active channels through asterisk java.I can able to get the channels.But i need to get the count of the channels.
The code through which i get the active channels is:


The output which i got when i call the extension 701 from 703 is:


[org.asteriskjava.manager.event.StatusEvent[dateReceived=Wed Jan 07 14:30:58 IST 2009,privilege='Call',callerid='703',link='SIP/701-0937c3f0',state='Up',timestamp='null',calleridname='<unknown>',extension='null',uniqueid='1231318853.50',actionid='null',internalactionid='23063136_4',seconds='null',priority='null',context='null',account='null',calleridnum='703',channel='SIP/703-093f7920',systemHashcode=13100371], org.asteriskjava.manager.event.StatusEvent[dateReceived=Wed Jan 07 14:30:58 IST 2009,privilege='Call',callerid='701',link='SIP/703-093f7920',state='Up',timestamp='null',calleridname='701',extension='s',uniqueid='1231318853.49',actionid='null',internalactionid='23063136_4',seconds='6',priority='7',context='macro-dial',account='null',calleridnum='701',channel='SIP/701-0937c3f0',systemHashcode=27312399], org.asteriskjava.manager.event.StatusCompleteEvent[dateReceived=Wed Jan 07 14:30:58 IST 2009,timestamp='null',actionid='null',internalactionid='23063136_4',systemHashcode=14872264]]



I need to count how many org.asteriskjava.manager.event.StatusEvent displayed.according to that count i can able to count the active channel.how could separate this output and count?
any help would be highly appreciated.

Thanks
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Too complicated for the beginner's forum. Moving.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic