[Asterisk-Dev] log vagueness in chan_zap.c

Andrew Thompson asteriskuser at aktzero.com
Fri Jan 7 13:56:06 MST 2005


I was looking through chan_zap.c and found these two sections of code:

         index = zt_get_index(chan, p, 1);
         if (index < 0) {
                 ast_log(LOG_WARNING, "Huh?\n");
                 ast_hangup(chan);
                 return NULL;
         }

and...

         index = zt_get_index(c, p, 0);
         if (index < 0) {
                 ast_log(LOG_WARNING, "Huh?  I don't exist?\n");
                 return -1;
         }


They appear to describe the same event possibility. Could someone 
explain what they are trying to tell us, so that at least the first one 
can be updated to say something useful, besides just "Huh?"?


-- 
Andrew Thompson
http://aktzero.com/



More information about the asterisk-dev mailing list