Re: [Asterisk-java-users] question about getting peers using SipShowPeerAction (AMI)
Brought to you by:
srt
From: Robert P. <ro...@ro...> - 2007-08-10 16:10:43
|
Hello Stefan, Thanks very much for your help - I'll give that a try! Cheers, Robert On 8/9/07, Stefan Reuter <ste...@re...> wrote: > Hi Robert, > > first thanks for your very well prepared question, it's a pleasure to > reply to it :) > > > **** PeerStatusEvent: > > org.asteriskjava.manager.event.PeerStatusEvent[dateReceived=Thu Aug 09 > > 20:16:31 EDT 2007,privilege='system,all',timestamp='null',peer='SIP/test2',time='97',cause='null',peerstatus='Reachable',systemHashcode=22618484] > > ** Manager Response: org.asteriskjava.manager.response.ManagerError: > > actionId='null'; message='Peer SIP/test2 not found.'; > > response='Error'; uniqueId='null'; systemHashcode=10703525 > > The problem is that SipShowPeer requires only the name of the peer > without the channel prefix ("SIP/"). Unfortunately the PeerStatus event > returns the name with the channel prefix and Asterisk calls both > attributes just "peer". I will have a look at the javadocs to make this > more clear. > For you this means you just have to strip the channel prefix before > passing the peer name to the SipShowPeerAction. > > Hope that helps, > > Stefan > > -- > reuter network consulting > Neusser Str. 110 > 50760 Koeln > Germany > Telefon: +49 221 1305699-0 > Telefax: +49 221 1305699-90 > E-Mail: ste...@re... > Jabber: ste...@re... > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > |