diff options
author | Richard Mudgett <rmudgett@digium.com> | 2009-09-28 21:02:20 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2009-09-28 21:02:20 +0000 |
commit | f3f456f8b6025a53d42279876934e6ddd1b519bb (patch) | |
tree | a070542ee66a9e734c11d3d79e6e2ae9c1e84ef4 /channels/sig_pri.c | |
parent | c8a141905e0fb27ec036ad89a3f25ad1dc21a2d6 (diff) |
Miscellaneous minor changes.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@220792 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sig_pri.c')
-rw-r--r-- | channels/sig_pri.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/sig_pri.c b/channels/sig_pri.c index 38d6b7498..476411202 100644 --- a/channels/sig_pri.c +++ b/channels/sig_pri.c @@ -2360,6 +2360,7 @@ static void *pri_dchannel(void *vpri) break; default: ast_debug(1, "Event: %d\n", e->e); + break; } } ast_mutex_unlock(&pri->lock); @@ -2800,7 +2801,7 @@ int sig_pri_indicate(struct sig_pri_chan *p, struct ast_channel *chan, int condi chan->_softhangup |= AST_SOFTHANGUP_DEV; res = 0; } else if (!p->progress && p->pri && !p->outgoing) { - if (p->pri) { + if (p->pri->pri) { if (!pri_grab(p, p->pri)) { #ifdef HAVE_PRI_PROG_W_CAUSE pri_progress_with_cause(p->pri->pri,p->call, PVT_TO_CHANNEL(p), 1, PRI_CAUSE_SWITCH_CONGESTION); /* cause = 42 */ |