]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
freetdm: ss7, bug fix in COT handling
authorKonrad Hammel <konrad@sangoma.com>
Wed, 27 Oct 2010 22:07:56 +0000 (18:07 -0400)
committerKonrad Hammel <konrad@sangoma.com>
Wed, 27 Oct 2010 22:07:56 +0000 (18:07 -0400)
libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_handle.c

index c4922654eb26de7f57c4641a4ff2a33f7c435d27..7519b2787d4c9bb8734a6a07fc90ee2f1be6343a 100644 (file)
@@ -218,7 +218,10 @@ ftdm_status_t handle_con_ind(uint32_t suInstId, uint32_t spInstId, uint32_t circ
 
 
                        /* check if a COT test is requested */
-                       if ((siConEvnt->natConInd.eh.pres) && (siConEvnt->natConInd.contChkInd.pres)) {
+                       if ((siConEvnt->natConInd.eh.pres) && 
+                               (siConEvnt->natConInd.contChkInd.pres) &&
+                               (siConEvnt->natConInd.contChkInd.val)) {
+
                                SS7_INFO_CHAN(ftdmchan,"[CIC:%d]Found COT Request\n", sngss7_info->circuit->cic);
 
                                /* tell the core to loop the channel */