[Asterisk-Dev] Manager XML

Nicolas Gudino nicolas at house.com.ar
Wed Mar 2 12:15:19 MST 2005


> Nicolás Gudiño wrote:
> > want to have a machine parsable format for 'sip show peers', 'iax show 
> ...so how do we list multiple entries, like sip show peers, in the 
> manager format?

Command: SIPPeers

Response: Success
Message: SIP Peer status will follow

Event: PeerStatus
Peer: SIP/18
Name: 18
Username: my_really_long_username_that_is_stripped_when_using_the_cli
Host: 192.168.1.1
Dynamic: Yes
Nat: No
Mask: 255.255.255.255.
Port: 5060
Status: OK
Lag: 54 ms

Event: PeerStatus
Peer: SIP/19
Name: 19
Username: 19
Host: 192.168.1.2
Dynamic: No
Nat: No
Mask: 255.255.255.255
Port: 5060
Status: OK
Lag: 24 ms

Event: PeerStatus
Peer: SIP/mary
Name: mary
Username: mary
Host: 192.168.1.3
Dynamic: Yes
Nat: No
Mask: 255.255.255.255
Port: 5060
Status: Unmonitored

Event: StatusComplete

Regards,

-- 
Nicolas Gudino <nicolas at house.com.ar>




More information about the asterisk-dev mailing list