[asterisk-commits] file: branch 1.4 r67594 - in /branches/1.4: ./
main/devicestate.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Jun 6 05:20:27 MST 2007
Author: file
Date: Wed Jun 6 07:20:27 2007
New Revision: 67594
URL: http://svn.digium.com/view/asterisk?view=rev&rev=67594
Log:
Merged revisions 67593 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r67593 | file | 2007-06-06 08:18:36 -0400 (Wed, 06 Jun 2007) | 2 lines
Revert channel name splitting fix for Zap. The moral of the story is don't use - in your user/peer names. (issue #9668 reported by stevedavies)
........
Modified:
branches/1.4/ (props changed)
branches/1.4/main/devicestate.c
Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: branches/1.4/main/devicestate.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/devicestate.c?view=diff&rev=67594&r1=67593&r2=67594
==============================================================================
--- branches/1.4/main/devicestate.c (original)
+++ branches/1.4/main/devicestate.c Wed Jun 6 07:20:27 2007
@@ -298,17 +298,16 @@
{
char *device;
struct state_change *change;
+ char *tmp = NULL;
if (option_debug > 2)
ast_log(LOG_DEBUG, "Notification of state change to be queued on device/channel %s\n", buf);
device = buf;
-
- if (!strncasecmp(device, "Zap", 3)) {
- char *tmp = strrchr(device, '-');
- if (tmp)
- *tmp = '\0';
- }
+
+ tmp = strrchr(device, '-');
+ if (tmp)
+ *tmp = '\0';
if (change_thread == AST_PTHREADT_NULL || !(change = ast_calloc(1, sizeof(*change) + strlen(device)))) {
/* we could not allocate a change struct, or */
More information about the asterisk-commits
mailing list