fixing compile errors! check the patch but if it's wrong it's better than not compiling at all

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@250 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Anthony Minessale II 2005-09-16 17:15:57 +00:00
parent f64108e394
commit 9842934154
2 changed files with 2 additions and 2 deletions

View File

@ -1300,7 +1300,7 @@ extern int pri_call_add_standard_apdus(struct pri *pri, q931_call *call)
if (pri->switchtype == PRI_SWITCH_QSIG) { /* For Q.SIG it does network and cpe operations */
/* FIXME: Presumably, it should only send on a redirect */
if (call->redirecting)
if (call->redirectingnum)
rose_diverting_leg_information2_encode(pri, call);
add_callername_facility_ies(pri, call, 1);
}

2
q931.c
View File

@ -361,7 +361,7 @@ static FUNC_SEND(transmit_channel_id)
return 0;
}
if ((pri->switchtype != PRI_SWITCH_QSIG) && (call->ds1no > 0) || call->ds1explicit) {
if (((pri->switchtype != PRI_SWITCH_QSIG) && (call->ds1no > 0)) || call->ds1explicit) {
/* Note that we are specifying the identifier */
ie->data[pos++] |= 0x40;
/* We need to use the Channel Identifier Present thingy. Just specify it and we're done */