Removed unused parameters from analog_available() and sig_pri_available().
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@237804 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
9be5c3d206
commit
8da6746f8b
|
@ -11817,12 +11817,12 @@ static inline int available(struct dahdi_pvt *p, int channelmatch, ast_group_t g
|
|||
return 0;
|
||||
|
||||
if (analog_lib_handles(p->sig, p->radio, p->oprmode))
|
||||
return analog_available(p->sig_pvt, channelmatch, groupmatch, reason, channelmatched, groupmatched);
|
||||
return analog_available(p->sig_pvt, reason);
|
||||
|
||||
#ifdef HAVE_PRI
|
||||
switch (p->sig) {
|
||||
case SIG_PRI_LIB_HANDLE_CASES:
|
||||
return sig_pri_available(p->sig_pvt, channelmatch, groupmatch, reason, channelmatched, groupmatched);
|
||||
return sig_pri_available(p->sig_pvt, reason);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -649,7 +649,7 @@ struct ast_channel * analog_request(struct analog_pvt *p, int *callwait, const s
|
|||
return analog_new_ast_channel(p, AST_STATE_RESERVED, 0, p->owner ? ANALOG_SUB_CALLWAIT : ANALOG_SUB_REAL, requestor);
|
||||
}
|
||||
|
||||
int analog_available(struct analog_pvt *p, int channelmatch, ast_group_t groupmatch, int *busy, int *channelmatched, int *groupmatched)
|
||||
int analog_available(struct analog_pvt *p, int *busy)
|
||||
{
|
||||
int offhook;
|
||||
|
||||
|
|
|
@ -336,7 +336,7 @@ struct ast_frame *analog_exception(struct analog_pvt *p, struct ast_channel *ast
|
|||
|
||||
struct ast_channel * analog_request(struct analog_pvt *p, int *callwait, const struct ast_channel *requestor);
|
||||
|
||||
int analog_available(struct analog_pvt *p, int channelmatch, ast_group_t groupmatch, int *busy, int *channelmatched, int *groupmatched);
|
||||
int analog_available(struct analog_pvt *p, int *busy);
|
||||
|
||||
void *analog_handle_init_event(struct analog_pvt *i, int event);
|
||||
|
||||
|
|
|
@ -3862,7 +3862,7 @@ int sig_pri_answer(struct sig_pri_chan *p, struct ast_channel *ast)
|
|||
return res;
|
||||
}
|
||||
|
||||
int sig_pri_available(struct sig_pri_chan *p, int channelmatch, ast_group_t groupmatch, int *reason, int *channelmatched, int *groupmatched)
|
||||
int sig_pri_available(struct sig_pri_chan *p, int *reason)
|
||||
{
|
||||
/* If no owner and interface has a B channel then likely available */
|
||||
if (!p->owner && !p->no_b_channel && p->pri) {
|
||||
|
|
|
@ -257,7 +257,7 @@ int sig_pri_indicate(struct sig_pri_chan *p, struct ast_channel *chan, int condi
|
|||
|
||||
int sig_pri_answer(struct sig_pri_chan *p, struct ast_channel *ast);
|
||||
|
||||
int sig_pri_available(struct sig_pri_chan *p, int channelmatch, ast_group_t groupmatch, int *busy, int *channelmatched, int *groupmatched);
|
||||
int sig_pri_available(struct sig_pri_chan *p, int *reason);
|
||||
|
||||
void sig_pri_init_pri(struct sig_pri_pri *pri);
|
||||
|
||||
|
|
Reference in New Issue