[asterisk-bugs] [Asterisk 0015152]: [patch] 64 bit system channel name uniqueness
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Nov 2 15:04:57 CST 2009
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=15152
======================================================================
Reported By: palbrecht
Assigned To: dbrooks
======================================================================
Project: Asterisk
Issue ID: 15152
Category: Core/Channels
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Asterisk Version: SVN
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2009-05-19 09:02 CDT
Last Modified: 2009-11-02 15:04 CST
======================================================================
Summary: [patch] 64 bit system channel name uniqueness
Description:
For sip channels, the channel name is set in sip_new by calling
ast_channel_alloc with format string "SIP/%s-%08x", where the the string is
a host address and the number is a pointer to the channel's private data.
The names of the active sip channels are guaranteed to be unique, only if
asterisk data pointers are 32 bits, that is, when asterisk is compiled on a
32 bit system.
If, on the other hand, asterisk is compiled on a 64 bit system, pointers
are 64 bits and a 32 bit data pointer is ambiguous because heap is
allocated both above and below 4 gigabytes.
======================================================================
----------------------------------------------------------------------
(0113006) svnbot (reporter) - 2009-11-02 15:04
https://issues.asterisk.org/view.php?id=15152#c113006
----------------------------------------------------------------------
Repository: asterisk
Revision: 226974
U trunk/channels/chan_sip.c
------------------------------------------------------------------------
r226974 | dbrooks | 2009-11-02 15:04:56 -0600 (Mon, 02 Nov 2009) | 12
lines
SIP channel name uniqueness
SIP channel names were supposed to be unique by way of a name suffix
derived from the
pointer to the channel's private data. Uniqueness was preserved on 32-bit
systems, but
not on 64-bit systems. This patch, as suggested by kpfleming, replaces
this suffix with
a simple incremented unsigned int.
(closes issue https://issues.asterisk.org/view.php?id=15152)
Reported by: palbrecht
Review: https://reviewboard.asterisk.org/r/420/
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=226974
Issue History
Date Modified Username Field Change
======================================================================
2009-11-02 15:04 svnbot Checkin
2009-11-02 15:04 svnbot Note Added: 0113006
======================================================================
More information about the asterisk-bugs
mailing list