[asterisk-bugs] [Asterisk 0019327]: [patch] In Manager Interface, SIP registry event does not show username on Status: Registered
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu May 26 04:40:35 CDT 2011
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=19327
======================================================================
Reported By: sgofferj
Assigned To: lmadsen
======================================================================
Project: Asterisk
Issue ID: 19327
Category: Channels/chan_sip/General
Reproducibility: always
Severity: minor
Priority: normal
Status: ready for testing
Asterisk Version: 1.6.2.18
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.2
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2011-05-19 07:22 CDT
Last Modified: 2011-05-26 04:40 CDT
======================================================================
Summary: [patch] In Manager Interface, SIP registry event
does not show username on Status: Registered
Description:
While other events like Status: Request sent do report the respective SIP
username, the Status: Registered does NOT. This is bad if your asterisk is
connecting to more than one account with the same provider.
Examples:
Event: Registry
Privilege: system,all
ChannelType: SIP
Username: xxxxxxx
Domain: sipgate.de
Status: Request Sent
Good, I know which account we are talking about.
Event: Registry
Privilege: system,all
ChannelType: SIP
Domain: sipgate.de
Status: Registered
Bad, I don't know which account we are talking about.
======================================================================
----------------------------------------------------------------------
(0135425) sgofferj (reporter) - 2011-05-26 04:40
https://issues.asterisk.org/view.php?id=19327#c135425
----------------------------------------------------------------------
Does not work against latest 1.6.2 SVN.
patching file channels/chan_sip.c
Hunk https://issues.asterisk.org/view.php?id=1 FAILED at 20144.
1 out of 1 hunk FAILED -- saving rejects to file channels/chan_sip.c.rej
k-tanco:/usr/src/asterisk-1.6/asterisk # cat channels/chan_sip.c.rej
--- channels/chan_sip.c (revision 318193)
+++ channels/chan_sip.c (working copy)
@@ -20144,7 +20144,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) {
k-tanco:/usr/src/asterisk-1.6/asterisk #
Issue History
Date Modified Username Field Change
======================================================================
2011-05-26 04:40 sgofferj Note Added: 0135425
======================================================================
More information about the asterisk-bugs
mailing list