summaryrefslogtreecommitdiff
path: root/channels/sig_pri.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2014-07-10 01:59:44 +0000
committerRichard Mudgett <rmudgett@digium.com>2014-07-10 01:59:44 +0000
commitd834be9faf77f5a2d6a787f768543d22ad451d22 (patch)
treee1de1fa6c92bde7d55e39d43bb732dc4770485ee /channels/sig_pri.c
parentf962448eee1a2dee763e90441edd79cd99842ef6 (diff)
chan_dahdi/sig_pri: Fix type mismatch in the idledial feature's channel creation.
Square pegs in round holes don't work very well. ........ Merged revisions 418261 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 418262 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 418263 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sig_pri.c')
-rw-r--r--channels/sig_pri.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/channels/sig_pri.c b/channels/sig_pri.c
index bcfebb053..e9e17322f 100644
--- a/channels/sig_pri.c
+++ b/channels/sig_pri.c
@@ -1029,13 +1029,13 @@ static int sig_pri_play_tone(struct sig_pri_chan *p, enum sig_pri_tone tone)
}
static struct ast_channel *sig_pri_new_ast_channel(struct sig_pri_chan *p, int state,
- int ulaw, int transfercapability, char *exten,
+ enum sig_pri_law law, int transfercapability, char *exten,
const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor)
{
struct ast_channel *c;
if (sig_pri_callbacks.new_ast_channel) {
- c = sig_pri_callbacks.new_ast_channel(p->chan_pvt, state, ulaw, exten, assignedids, requestor);
+ c = sig_pri_callbacks.new_ast_channel(p->chan_pvt, state, law, exten, assignedids, requestor);
} else {
return NULL;
}
@@ -5890,7 +5890,7 @@ static void sig_pri_handle_setup(struct sig_pri_span *pri, pri_event *e)
int exten_exists_or_can_exist;
int could_match_more;
int need_dialtone;
- int law;
+ enum sig_pri_law law;
int chanpos = -1;
struct ast_callid *callid = NULL;
struct ast_channel *c;
@@ -6357,7 +6357,7 @@ static void *pri_dchannel(void *vpri)
*/
sig_pri_lock_private(pri->pvts[nextidle]);
sig_pri_unlock_private(pri->pvts[nextidle]);
- idle = sig_pri_request(pri->pvts[nextidle], AST_FORMAT_ULAW, NULL, NULL, 0);
+ idle = sig_pri_request(pri->pvts[nextidle], SIG_PRI_ULAW, NULL, NULL, 0);
ast_mutex_lock(&pri->lock);
if (idle) {
pri->pvts[nextidle]->isidlecall = 1;