Add a missing "ChannelType" header to one of the "PeerStatus" manager
authorMark Michelson <mmichelson@digium.com>
Fri, 20 Jun 2008 15:20:11 +0000 (15:20 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 20 Jun 2008 15:20:11 +0000 (15:20 +0000)
events in chan_sip

(closes issue #12904)
Reported by: eliel
Patches:
      chan_sip.c.patch uploaded by eliel (license 64)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@124243 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index c6ff79b..d504712 100644 (file)
@@ -10354,7 +10354,7 @@ static enum parse_register_result parse_register_contact(struct sip_pvt *pvt, st
                peer->lastms = 0;
 
                ast_verb(3, "Unregistered SIP '%s'\n", peer->name);
-                       manager_event(EVENT_FLAG_SYSTEM, "PeerStatus", "Peer: SIP/%s\r\nPeerStatus: Unregistered\r\n", peer->name);
+                       manager_event(EVENT_FLAG_SYSTEM, "PeerStatus", "ChannelType: SIP\r\nPeer: SIP/%s\r\nPeerStatus: Unregistered\r\n", peer->name);
                return PARSE_REGISTER_UPDATE;
        }