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)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@67593 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2007-06-06 12:18:36 +00:00
parent f002ad09a3
commit a05ab92728

View 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));