]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add debug error msg for 931 parse error
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 24 May 2007 01:59:26 +0000 (01:59 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 24 May 2007 01:59:26 +0000 (01:59 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@128 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/src/zap_isdn.c

index 339dd02a73df1c8cdd59da10088c8591c13c2ad3..814a19c2374491feb54094c9c9fb3497d3e2c0b1 100644 (file)
@@ -90,7 +90,10 @@ static L3INT zap_isdn_931_34(void *pvt, L2UCHAR *msg, L2INT mlen)
 
 static int zap_isdn_921_23(void *pvt, L2UCHAR *msg, L2INT mlen)
 {
-       return ((Q931Rx23(pvt, msg, mlen) >= 0) ? 1 : 0);
+       int ret = Q931Rx23(pvt, msg, mlen);
+       if (ret != 0)
+               zap_log(ZAP_LOG_DEBUG, "931 parse error [%d] \n", ret);
+       return ((ret >= 0) ? 1 : 0);
 }
 
 static int zap_isdn_921_21(void *pvt, L2UCHAR *msg, L2INT mlen)