From: Andreas Eversberg Date: Sat, 30 Jan 2016 14:36:50 +0000 (+0100) Subject: GSM: A breakdown of MNCC socket causes all calls to be released correctly X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=63f60f8e4bd805ca5e0afcfee94a8b1d8f949b49 GSM: A breakdown of MNCC socket causes all calls to be released correctly --- diff --git a/gsm.cpp b/gsm.cpp index ec33695..5ed0f89 100644 --- a/gsm.cpp +++ b/gsm.cpp @@ -1280,11 +1280,11 @@ static int mncc_fd_close(struct lcr_gsm *lcr_gsm, struct lcr_fd *lfd) /* free all the calls that were running through the MNCC interface */ port = port_first; while(port) { - if ((port->p_type & PORT_CLASS_mISDN_MASK) == PORT_CLASS_GSM) { + if ((port->p_type & PORT_CLASS_MASK) == PORT_CLASS_GSM) { pgsm = (class Pgsm *)port; if (pgsm->p_g_lcr_gsm == lcr_gsm) { message = message_create(pgsm->p_serial, ACTIVE_EPOINT(pgsm->p_epointlist), PORT_TO_EPOINT, MESSAGE_RELEASE); - message->param.disconnectinfo.cause = 27; // temp. unavail. + message->param.disconnectinfo.cause = 41; // temp. fail. message->param.disconnectinfo.location = LOCATION_PRIVATE_LOCAL; message_put(message); pgsm->new_state(PORT_STATE_RELEASE);