[asterisk-commits] qwell: branch qwell/pimp_my_sip-butnotwithpjproject r382904 - in /team/qwell/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 12 14:17:23 CDT 2013


Author: qwell
Date: Tue Mar 12 14:17:19 2013
New Revision: 382904

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382904
Log:
Include the Username field in SIP Registry events when Status is registered

In ASTERISK-17888, the AMI Registry event during SIP registrations was supposed
to include the Username field. Somehow, one of the events was missed. This
patch corrects that - the Username field should be included in all AMI Registry
events involving SIP registrations.

(issue ASTERISK-17888)

(closes issue ASTERISK-21201)
Reported by: Dmitriy Serov
patches:
  chan_sip.c.diff uploaded by Dmitriy Serov (license 6479)
........

Merged revisions 382847 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 382848 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 382852 from file:///srv/subversion/repos/asterisk/trunk
........

Merged revisions 382863 from http://svn.asterisk.org/svn/asterisk/team/group/pimp_my_sip

Modified:
    team/qwell/pimp_my_sip-butnotwithpjproject/   (props changed)
    team/qwell/pimp_my_sip-butnotwithpjproject/channels/chan_sip.c

Propchange: team/qwell/pimp_my_sip-butnotwithpjproject/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Propchange: team/qwell/pimp_my_sip-butnotwithpjproject/
------------------------------------------------------------------------------
Binary property 'branchmerge' - no diff available.

Modified: team/qwell/pimp_my_sip-butnotwithpjproject/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/qwell/pimp_my_sip-butnotwithpjproject/channels/chan_sip.c?view=diff&rev=382904&r1=382903&r2=382904
==============================================================================
--- team/qwell/pimp_my_sip-butnotwithpjproject/channels/chan_sip.c (original)
+++ team/qwell/pimp_my_sip-butnotwithpjproject/channels/chan_sip.c Tue Mar 12 14:17:19 2013
@@ -23571,7 +23571,7 @@
 
 		r->regstate = REG_STATE_REGISTERED;
 		r->regtime = ast_tvnow();		/* Reset time of last successful registration */
-		manager_event(EVENT_FLAG_SYSTEM, "Registry", "ChannelType: SIP\r\nDomain: %s\r\nStatus: %s\r\n", r->hostname, regstate2str(r->regstate));
+		manager_event(EVENT_FLAG_SYSTEM, "Registry", "ChannelType: SIP\r\nUsername: %s\r\nDomain: %s\r\nStatus: %s\r\n", r->username, r->hostname, regstate2str(r->regstate));
 		r->regattempts = 0;
 		ast_debug(1, "Registration successful\n");
 		if (r->timeout > -1) {




More information about the asterisk-commits mailing list