[Asterisk-Users] SIP register and unregister events via Manager API

Holger Schurig hs4233 at mail.mn-solutions.de
Fri Jul 23 01:40:23 MST 2004


The patch tries to send the time as well, but it fails. There are some 
problems currently:

I applied the path from bug 2117. After this I got some events:

Event: SIPPeerStatus
Peer: weckhardt
Status: reachable
Time: 55

Event: SIPPeerRegistration
Peername: dnarotam
Status: Offline



I think we have several problems here. Once it's "Peer:", the other time 
it's "Peername". Also, I don't like the name of the event. It should just 
be "PeerStatus" and "PeerRegistration", because we might add something to 
IAX2 as well. So I'd suggest to do it this way:

Event: PeerStatus
Peer: SIP/weckhardt
PeerStatus: reachable
Time: 55

Event: PeerRegistration
Peer: SIP/dnarotam
Channel: Offline



This way, other channels can send the same events, just with PeerStatus: 
IAX2/qtiax.

I guess I'll redo the path and re-submit it to bugs.digium.com.




More information about the asterisk-users mailing list