1781
1793
int matching_action = (action == E_MATCH || action == E_CANMATCH || action == E_MATCHMORE);
1783
1798
ast_mutex_lock(&conlock);
1784
1799
e = pbx_find_extension(c, con, &q, context, exten, priority, label, callerid, action);
1787
1802
ast_mutex_unlock(&conlock);
1788
1805
return -1; /* success, we found it */
1789
1806
} else if (action == E_FINDLABEL) { /* map the label to a priority */
1791
1808
ast_mutex_unlock(&conlock);
1792
1811
return res; /* the priority we were looking for */
1794
1813
app = pbx_findapp(e->app);
1795
1814
ast_mutex_unlock(&conlock);
1797
1816
ast_log(LOG_WARNING, "No application '%s' for extension (%s, %s, %d)\n", e->app, context, exten, priority);
1800
1821
if (c->context != context)