From 160b8c91b883ae5afc21d6e50a8102d2ded3a2a5 Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Tue, 4 Oct 2005 17:35:48 +0000 Subject: [PATCH] Fix so that APDUs are not added multiple times for a call (Bug #5361) git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@252 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- pri_facility.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pri_facility.c b/pri_facility.c index ca6a7bc..b230688 100755 --- a/pri_facility.c +++ b/pri_facility.c @@ -1299,10 +1299,10 @@ extern int pri_call_add_standard_apdus(struct pri *pri, q931_call *call) return 0; 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->redirectingnum) + if (call->redirectingnum[0]) rose_diverting_leg_information2_encode(pri, call); add_callername_facility_ies(pri, call, 1); + return 0; } if (pri->localtype == PRI_NETWORK) { @@ -1313,6 +1313,7 @@ extern int pri_call_add_standard_apdus(struct pri *pri, q931_call *call) default: break; } + return 0; } else if (pri->localtype == PRI_CPE) { switch (pri->switchtype) { case PRI_SWITCH_NI2: @@ -1321,6 +1322,7 @@ extern int pri_call_add_standard_apdus(struct pri *pri, q931_call *call) default: break; } + return 0; } return 0;