[svn-commits] rmudgett: branch group/new-API r302 - /team/group/new-API/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jul 13 17:33:27 CDT 2012


Author: rmudgett
Date: Fri Jul 13 17:33:23 2012
New Revision: 302

URL: http://svnview.digium.com/svn/libss7?view=rev&rev=302
Log:
  r297 | kmoore | 2012-05-30 15:52:43 -0500 (Wed, 30 May 2012) | 10 lines

  Address some compilation issues and complete ss7_event2str

  There were a few variables that were set but unused that were causing
  compilation errors due to the compilation flags used (-Werror).  These
  are now corrected.

  This patch also finishes out the functionality of ss7_event2str so that
  it returns the correct name for all event types it knows about.  This
  change is related to the Asterisk 11 Who Hung Up? work.

Modified:
    team/group/new-API/isup.c
    team/group/new-API/mtp3.c
    team/group/new-API/ss7.c

Modified: team/group/new-API/isup.c
URL: http://svnview.digium.com/svn/libss7/team/group/new-API/isup.c?view=diff&rev=302&r1=301&r2=302
==============================================================================
--- team/group/new-API/isup.c (original)
+++ team/group/new-API/isup.c Fri Jul 13 17:33:23 2012
@@ -2812,13 +2812,9 @@
 	int x;
 	int len = 0;
 	int totalparms = sizeof(parms)/sizeof(struct parm_func);
-	char *parmname = "Unknown Parm";
 
 	for (x = 0; x < totalparms; x++) {
 		if (parms[x].parm == parm) {
-			if (parms[x].name)
-				parmname = parms[x].name;
-
 			ss7_message(ss7, "\t\t%s:\n", parms[x].name ? parms[x].name : "Unknown");
 
 			if (parms[x].dump) {

Modified: team/group/new-API/mtp3.c
URL: http://svnview.digium.com/svn/libss7/team/group/new-API/mtp3.c?view=diff&rev=302&r1=301&r2=302
==============================================================================
--- team/group/new-API/mtp3.c (original)
+++ team/group/new-API/mtp3.c Fri Jul 13 17:33:23 2012
@@ -1719,12 +1719,10 @@
 int mtp3_transmit(struct ss7 *ss7, unsigned char userpart, struct routing_label rl, int priority, struct ss7_msg *m)
 {
 	unsigned char *sio;
-	unsigned char *sif;
 	struct mtp2 *winner;
 	struct ss7_msg **buffer = NULL;
 
 	sio = m->buf + MTP2_SIZE;
-	sif = sio + 1;
 
 	if (userpart == SIG_ISUP)
 		winner = rl_to_link(ss7, rl, &buffer);

Modified: team/group/new-API/ss7.c
URL: http://svnview.digium.com/svn/libss7/team/group/new-API/ss7.c?view=diff&rev=302&r1=301&r2=302
==============================================================================
--- team/group/new-API/ss7.c (original)
+++ team/group/new-API/ss7.c Fri Jul 13 17:33:23 2012
@@ -371,6 +371,10 @@
 			return "SS7_EVENT_UP";
 		case SS7_EVENT_DOWN:
 			return "SS7_EVENT_DOWN";
+		case MTP2_LINK_UP:
+			return "MTP2_LINK_UP";
+		case MTP2_LINK_DOWN:
+			return "MTP2_LINK_DOWN";
 		case ISUP_EVENT_IAM:
 			return "ISUP_EVENT_IAM";
 		case ISUP_EVENT_ACM:
@@ -387,6 +391,50 @@
 			return "ISUP_EVENT_GRA";
 		case ISUP_EVENT_CON:
 			return "ISUP_EVENT_CON";
+		case ISUP_EVENT_COT:
+			return "ISUP_EVENT_COT";
+		case ISUP_EVENT_CCR:
+			return "ISUP_EVENT_CCR";
+		case ISUP_EVENT_BLO:
+			return "ISUP_EVENT_BLO";
+		case ISUP_EVENT_UBL:
+			return "ISUP_EVENT_UBL";
+		case ISUP_EVENT_BLA:
+			return "ISUP_EVENT_BLA";
+		case ISUP_EVENT_UBA:
+			return "ISUP_EVENT_UBA";
+		case ISUP_EVENT_CGB:
+			return "ISUP_EVENT_CGB";
+		case ISUP_EVENT_CGU:
+			return "ISUP_EVENT_CGU";
+		case ISUP_EVENT_RSC:
+			return "ISUP_EVENT_RSC";
+		case ISUP_EVENT_CPG:
+			return "ISUP_EVENT_CPG";
+		case ISUP_EVENT_UCIC:
+			return "ISUP_EVENT_UCIC";
+		case ISUP_EVENT_LPA:
+			return "ISUP_EVENT_LPA";
+		case ISUP_EVENT_CQM:
+			return "ISUP_EVENT_CQM";
+		case ISUP_EVENT_FAR:
+			return "ISUP_EVENT_FAR";
+		case ISUP_EVENT_FAA:
+			return "ISUP_EVENT_FAA";
+		case ISUP_EVENT_CVT:
+			return "ISUP_EVENT_CVT";
+		case ISUP_EVENT_CVR:
+			return "ISUP_EVENT_CVR";
+		case ISUP_EVENT_SUS:
+			return "ISUP_EVENT_SUS";
+		case ISUP_EVENT_RES:
+			return "ISUP_EVENT_RES";
+		case ISUP_EVENT_CGBA:
+			return "ISUP_EVENT_CGBA";
+		case ISUP_EVENT_CGUA:
+			return "ISUP_EVENT_CGUA";
+		case ISUP_EVENT_SAM:
+			return "ISUP_EVENT_SAM";
 		default:
 			return "Unknown Event";
 	}




More information about the svn-commits mailing list