139
140
while(ast_exists_extension(chan, chan->context, chan->exten, chan->priority, chan->callerid)) {
140
141
if ((res = ast_spawn_extension(chan, chan->context, chan->exten, chan->priority, chan->callerid))) {
141
142
/* Something bad happened, or a hangup has been requested. */
143
145
/* Just return result as to the previous application as if it had been dialed */
144
146
ast_log(LOG_DEBUG, "Oooh, got something to jump out with ('%c')!\n", res);