Skip to content
Snippets Groups Projects
pbx.c 162 KiB
Newer Older
  • Learn to ignore specific revisions
  • 		if ((ipri = ast_findlabel_extension(chan, context ? context : chan->context, (exten && strcasecmp(exten, "BYEXTENSION")) ? exten : chan->exten, 
    			pri, chan->cid.cid_num)) < 1) {
    			ast_log(LOG_WARNING, "Priority '%s' must be a number > 0, or valid label\n", pri);
    			return -1;
    		} else
    			mode = 0;
    	} 
    	/* At this point we have a priority and maybe an extension and a context */
    
    	if (exten && !strcasecmp(exten, "BYEXTENSION"))
    		exten = NULL;
    
    	if (mode) 
    		ipri = chan->priority + (ipri * mode);
    
    
    	ast_explicit_goto(chan, context, exten, ipri);
    
    	ast_cdr_update(chan);
    	return 0;
    
    }