From: Michael Jerris Date: Wed, 24 Sep 2008 21:26:44 +0000 (+0000) Subject: only get real q850 cause codes X-Git-Tag: v1.0.6~38^2~309 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=056a3ec2eef5a06be687b655666e8ff257e86b61;p=thirdparty%2Ffreeswitch.git only get real q850 cause codes git-svn-id: http://svn.openzap.org/svn/openzap/trunk@564 a93c3328-9c30-0410-af19-c9cd2b2d52af --- diff --git a/libs/openzap/mod_openzap/mod_openzap.c b/libs/openzap/mod_openzap/mod_openzap.c index 8d3c39c4f3..25b54dc22f 100644 --- a/libs/openzap/mod_openzap/mod_openzap.c +++ b/libs/openzap/mod_openzap/mod_openzap.c @@ -438,7 +438,7 @@ static switch_status_t channel_on_hangup(switch_core_session_t *session) case ZAP_CHAN_TYPE_B: { if (tech_pvt->zchan->state != ZAP_CHANNEL_STATE_DOWN && tech_pvt->zchan->state != ZAP_CHANNEL_STATE_TERMINATING) { - tech_pvt->zchan->caller_data.hangup_cause = switch_channel_get_cause(channel); + tech_pvt->zchan->caller_data.hangup_cause = switch_channel_get_cause_q850(channel); if (tech_pvt->zchan->caller_data.hangup_cause < 1 || tech_pvt->zchan->caller_data.hangup_cause > 127) { tech_pvt->zchan->caller_data.hangup_cause = ZAP_CAUSE_DESTINATION_OUT_OF_ORDER; }