Index: apps/app_queue.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v retrieving revision 1.123 diff -u -r1.123 app_queue.c --- apps/app_queue.c 13 Feb 2005 16:53:29 -0000 1.123 +++ apps/app_queue.c 16 Feb 2005 04:48:41 -0000 @@ -2187,7 +2187,12 @@ } if (!interface || ast_strlen_zero(interface)) { strncpy(tmpchan, chan->name, sizeof(tmpchan) - 1); - interface = strrchr(tmpchan, '-'); + /* IAX2 is the ONLY channel like this -- everything else uses the - */ + if (strncasecmp(tmpchan, "IAX2", 4)) { + interface = strrchr(tmpchan, '/'); + } else { + interface = strrchr(tmpchan, '-'); + } if (interface) *interface = '\0'; interface = tmpchan;