From 9983a15bc301cc634f2693cdaae2b1a480c30638 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 9 Jul 2009 19:35:48 +0000 Subject: [PATCH] changed from nenad git-svn-id: http://svn.openzap.org/svn/openzap/trunk@761 a93c3328-9c30-0410-af19-c9cd2b2d52af --- .../src/ozmod/ozmod_ss7_boost/ozmod_ss7_boost.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/libs/freetdm/src/ozmod/ozmod_ss7_boost/ozmod_ss7_boost.c b/libs/freetdm/src/ozmod/ozmod_ss7_boost/ozmod_ss7_boost.c index cd3787c030..722eb1a373 100644 --- a/libs/freetdm/src/ozmod/ozmod_ss7_boost/ozmod_ss7_boost.c +++ b/libs/freetdm/src/ozmod/ozmod_ss7_boost/ozmod_ss7_boost.c @@ -261,7 +261,7 @@ static ZIO_CHANNEL_REQUEST_FUNCTION(ss7_boost_channel_request) event.trunk_group = tg; if (check_congestion(tg)) { - zap_log(ZAP_LOG_CRIT, "All circuits are busy. (BOOST REQUESTED BACK OFF)\n"); + zap_log(ZAP_LOG_CRIT, "All circuits are busy. Trunk Group=%i (BOOST REQUESTED BACK OFF)\n",tg+1); *zchan = NULL; return ZAP_FAIL; } @@ -372,11 +372,6 @@ static ZIO_CHANNEL_OUTGOING_CALL_FUNCTION(ss7_boost_outgoing_call) { zap_status_t status = ZAP_SUCCESS; - if (check_congestion(0)) { - zap_log(ZAP_LOG_CRIT, "All circuits are busy. (BOOST REQUESTED BACK OFF)\n"); - return ZAP_FAIL; - } - return status; } @@ -652,7 +647,9 @@ static void handle_call_start(zap_span_t *span, ss7bc_connection_t *mcon, ss7bc_ } zap_set_string(zchan->caller_data.ani.digits, (char *)event->calling_number_digits); zap_set_string(zchan->caller_data.dnis.digits, (char *)event->called_number_digits); - zap_set_string(zchan->caller_data.rdnis.digits, (char *)event->isup_in_rdnis); + if (event->isup_in_rdnis_size) { + zap_set_string(zchan->caller_data.rdnis.digits, (char *)event->isup_in_rdnis); + } zchan->caller_data.screen = event->calling_number_screening_ind; zchan->caller_data.pres = event->calling_number_presentation; zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_RING);