From 05d80e3930584ff2cc613dd7b00120060bfa9a5a Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 10 Feb 2009 23:44:51 +0000 Subject: [PATCH] fix hangup issue git-svn-id: http://svn.openzap.org/svn/openzap/trunk@660 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/openzap/src/ozmod/ozmod_libpri/ozmod_libpri.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/openzap/src/ozmod/ozmod_libpri/ozmod_libpri.c b/libs/openzap/src/ozmod/ozmod_libpri/ozmod_libpri.c index 7bb7b7678b..3dc0c88ad4 100644 --- a/libs/openzap/src/ozmod/ozmod_libpri/ozmod_libpri.c +++ b/libs/openzap/src/ozmod/ozmod_libpri/ozmod_libpri.c @@ -511,6 +511,7 @@ static int on_hangup(lpwrap_pri_t *spri, lpwrap_pri_event_t event_type, pri_even call = (q931_call *) zchan->call_data; zap_log(ZAP_LOG_DEBUG, "-- Hangup on channel %d:%d\n", spri->span, pevent->hangup.channel); zchan->caller_data.hangup_cause = pevent->hangup.cause; + pri_release(spri->pri, call, 0); pri_destroycall(spri->pri, call); zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_TERMINATING); } else {