[libss7-commits] mattf: trunk r146 - /trunk/isup.c

SVN commits to the libss7 project libss7-commits at lists.digium.com
Tue Mar 18 10:36:46 CDT 2008


Author: mattf
Date: Tue Mar 18 10:36:46 2008
New Revision: 146

URL: http://svn.digium.com/view/libss7?view=rev&rev=146
Log:
Add new cause code and make sure we don't include variable parm length within the data dump

Modified:
    trunk/isup.c

Modified: trunk/isup.c
URL: http://svn.digium.com/view/libss7/trunk/isup.c?view=diff&rev=146&r1=145&r2=146
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Tue Mar 18 10:36:46 2008
@@ -745,6 +745,9 @@
 		case 42:
 			cause = "Switching equipment congestion";
 			break;
+		case 47:
+			cause = "Resource unavailable, unspecified";
+			break;
 /* TODO: Finish the rest of these */
 		default:
 			cause = "Unknown";
@@ -2150,8 +2153,9 @@
 						len = parms[x].dump(ss7, message, parmbuf, maxlen);
 						break;
 					case PARM_TYPE_VARIABLE:
-						parms[x].dump(ss7, message, parmbuf + 1, parmbuf[0]);
-						len = 1 + parmbuf[0];
+						len = parmbuf[0];
+						parmbuf = &parmbuf[1];
+						parms[x].dump(ss7, message, parmbuf, len);
 						break;
 					case PARM_TYPE_OPTIONAL:
 						optparm = (struct isup_parm_opt *)parmbuf;




More information about the libss7-commits mailing list