• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can i separate the output value

 
R Sugan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • 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
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Hi,

Thanks for your reply.I got the output.



Regards,
Suganya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic