Index: app_chanisavail.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_chanisavail.c,v retrieving revision 1.20 diff -u -r1.20 app_chanisavail.c --- app_chanisavail.c 25 Sep 2005 20:37:05 -0000 1.20 +++ app_chanisavail.c 27 Sep 2005 20:35:42 -0000 @@ -101,6 +101,7 @@ number = strchr(tech, '/'); if (!number) { ast_log(LOG_WARNING, "ChanIsAvail argument takes format ([technology]/[device])\n"); + LOCAL_USER_REMOVE(u); return -1; } *number = '\0'; @@ -136,6 +137,7 @@ pbx_builtin_setvar_helper(chan, "AVAILCHAN", ""); pbx_builtin_setvar_helper(chan, "AVAILORIGCHAN", ""); if (ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101)) + LOCAL_USER_REMOVE(u); return -1; }