]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Revert channel name splitting fix for Zap. The moral of the story is don't use -...
authorJoshua Colp <jcolp@digium.com>
Wed, 6 Jun 2007 12:18:36 +0000 (12:18 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 6 Jun 2007 12:18:36 +0000 (12:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@67593 65c4cc65-6c06-0410-ace0-fbb531ad65f3

devicestate.c

index 71a1bae0d6b104e7285de7db60d8b7ca6a00047c..6cfb24aa13f5ab9905306e3fce57b3f1020fe668 100644 (file)
@@ -198,14 +198,13 @@ static int __ast_device_state_changed_literal(char *buf)
 {
        char *device;
        struct state_change *change = NULL;
+       char *tmp = NULL;
 
        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 = calloc(1, sizeof(*change) + strlen(device));