• 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 can i separate the output value

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I can able to get the output into one variable.But i need to separate the output.I have used regex in java and get the separate output.
But i did not able to get the anonter one value because the variable name as same.How to solve this problem?Please help to solve this
problem.

My code




This is my output..


LiveStatus:AsteriskChannel[id='1240469790.78',name='SIP/5104-094af5b0',callerId='"device" <5104>',state='UP',account='null',dateOfCreation=Thu Apr 23 12:25:23 IST 2009,dialedChannel=null,dialingChannel=null,linkedChannel=AsteriskChannel[id='1240469799.79',name='SIP/5103-0948bf58']]
Name:'SIP/5104-094af5b0'
Callerid:'"device" <5104>'
State:'UP'

LiveStatus:AsteriskChannel[id='1240469799.79',name='SIP/5103-0948bf58',callerId='<222>',state='UP',account='null',dateOfCreation=Thu Apr 23 12:27:28 IST 2009,dialedChannel=null,dialingChannel=null,linkedChannel=AsteriskChannel[id='1240469790.78',name='SIP/5104-094af5b0']]
Name:'SIP/5103-0948bf58'
Callerid:'<222>'
State:'UP'

I need to get the name of linkedChannel .How can i get it?Please help me?




Regards,
Suganya
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any particular reason why "asteriskChannel.getLinkedChannel().getName()" shouldn't work?
 
R Sugan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Thanks for your reply.I got the output.



Regards,
Suganya
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic