[Asterisk-cvs] asterisk-addons/asterisk-ooh323c/ooh323c/src ooCapability.c, 1.5, 1.6

vphirke vphirke
Wed Aug 3 10:44:08 CDT 2005


Update of /usr/cvsroot/asterisk-addons/asterisk-ooh323c/ooh323c/src
In directory mongoose.digium.com:/tmp/cvs-serv25375/ooh323c/src

Modified Files:
	ooCapability.c 
Log Message:
Updated

Index: ooCapability.c
===================================================================
RCS file: /usr/cvsroot/asterisk-addons/asterisk-ooh323c/ooh323c/src/ooCapability.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- ooCapability.c	2 Aug 2005 18:54:54 -0000	1.5
+++ ooCapability.c	3 Aug 2005 14:48:19 -0000	1.6
@@ -1149,14 +1149,17 @@
    switch(audioCap->t)
    {
    case T_H245AudioCapability_gsmFullRate:
+      OOTRACEDBGC1("We have   OO_GSMFULLRATE\n"); 
       framesPerPkt = (audioCap->u.gsmFullRate->audioUnitSize)/OO_GSMFRAMESIZE;
       cap = OO_GSMFULLRATE;
       break;
    case T_H245AudioCapability_gsmHalfRate:
+      OOTRACEDBGC1("We have   OO_GSMHALFRATE\n"); 
       framesPerPkt = (audioCap->u.gsmHalfRate->audioUnitSize)/OO_GSMFRAMESIZE;
       cap = OO_GSMHALFRATE;
       break;
    case T_H245AudioCapability_gsmEnhancedFullRate:
+      OOTRACEDBGC1("We have   OO_GSMENHANCEDFULLRATE\n"); 
       framesPerPkt = (audioCap->u.gsmEnhancedFullRate->audioUnitSize)/OO_GSMFRAMESIZE;
       cap = OO_GSMENHANCEDFULLRATE;
       break;
@@ -1166,6 +1169,7 @@
      return NULL;
    }
 
+   OOTRACEDBGC1("Checking for support of GSM Capability\n");
    OOTRACEDBGC4("Determined audio data type to be of type %d. Searching"
                 " for matching capability.(%s, %s)\n", cap, call->callType, 
                 call->callToken);
@@ -1274,30 +1278,37 @@
    switch(audioCap->t)
    {
       case T_H245AudioCapability_g711Alaw64k:
+         OOTRACEDBGC1("We have  OO_G711ALAW64K\n");
          framesPerPkt = audioCap->u.g711Alaw64k;
          cap = OO_G711ALAW64K;
          break;
       case T_H245AudioCapability_g711Alaw56k:
+         OOTRACEDBGC1("We have  OO_G711ALAW56K\n");
          framesPerPkt = audioCap->u.g711Alaw56k;
          cap = OO_G711ALAW56K;
          break;
       case T_H245AudioCapability_g711Ulaw56k:
+         OOTRACEDBGC1("We have  OO_G711ULAW56K\n");
          framesPerPkt = audioCap->u.g711Ulaw56k;
          cap = OO_G711ULAW56K;
          break;
       case T_H245AudioCapability_g711Ulaw64k:
+         OOTRACEDBGC1("We have  OO_G711ULAW64K\n");
          framesPerPkt = audioCap->u.g711Ulaw64k;
          cap = OO_G711ULAW64K;
          break;
       case T_H245AudioCapability_g729:
+         OOTRACEDBGC1("We have  OO_G729\n");
          framesPerPkt = audioCap->u.g729;
          cap = OO_G729;
          break;
       case T_H245AudioCapability_g729AnnexA:
+         OOTRACEDBGC1("We have  OO_G729A\n");
          framesPerPkt = audioCap->u.g729AnnexA;
          cap = OO_G729A;
          break;
       case T_H245AudioCapability_g7231:
+         OOTRACEDBGC1("We have  OO_G7231\n");
          framesPerPkt = audioCap->u.g7231->maxAl_sduAudioFrames;
          cap = OO_G7231;
          break;
@@ -1305,6 +1316,8 @@
 	return NULL;
    }
 
+   OOTRACEDBGC1("Now searching for matching capability\n");
+   
    OOTRACEDBGC4("Determined Simple audio data type to be of type %s. Searching"
                 " for matching capability.(%s, %s)\n", 
                 ooGetCapTypeText(cap), call->callType, call->callToken);
@@ -1428,10 +1441,14 @@
       case T_H245AudioCapability_g729:
       case T_H245AudioCapability_g729AnnexA:
       case T_H245AudioCapability_g7231:
+         OOTRACEDBGC3("Checking for Simple Audio Data type support.(%s, %s)\n",
+                      call->callType, call->callToken);
          return ooIsAudioDataTypeSimpleSupported(call, audioCap, dir);
       case T_H245AudioCapability_gsmFullRate:
       case T_H245AudioCapability_gsmHalfRate:
       case T_H245AudioCapability_gsmEnhancedFullRate:
+         OOTRACEDBGC3("Checking for GSM Audio Data type support.(%s, %s)\n",
+                      call->callType, call->callToken);
          return ooIsAudioDataTypeGSMSupported(call, audioCap, dir);   
       default:
          return NULL;




More information about the svn-commits mailing list