[svn-commits] objsys: branch 1.2 r307 - /branches/1.2/asterisk-ooh323c/ooh323c/src/

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Sep 21 14:17:58 MST 2006


Author: objsys
Date: Thu Sep 21 16:17:58 2006
New Revision: 307

URL: http://svn.digium.com/view/asterisk-addons?rev=307&view=rev
Log:
added additional trace message to find channel compare problem

Modified:
    branches/1.2/asterisk-ooh323c/ooh323c/src/ooCapability.c
    branches/1.2/asterisk-ooh323c/ooh323c/src/ooLogChan.c

Modified: branches/1.2/asterisk-ooh323c/ooh323c/src/ooCapability.c
URL: http://svn.digium.com/view/asterisk-addons/branches/1.2/asterisk-ooh323c/ooh323c/src/ooCapability.c?rev=307&r1=306&r2=307&view=diff
==============================================================================
--- branches/1.2/asterisk-ooh323c/ooh323c/src/ooCapability.c (original)
+++ branches/1.2/asterisk-ooh323c/ooh323c/src/ooCapability.c Thu Sep 21 16:17:58 2006
@@ -898,6 +898,9 @@
     H245AudioCapability* audioCap, int dir)
 {
    int noofframes=0, cap;
+
+   OOTRACEDBGC2("Comparing channel with codec type: %d\n", audioCap->t);
+
    switch(audioCap->t)
    {
    case T_H245AudioCapability_g711Ulaw56k:
@@ -940,11 +943,15 @@
       return FALSE;
    }
 
+   OOTRACEDBGC3("Comparing codecs: channel's=%d, requested=%d\n", 
+      epCap->cap, cap);
    if(cap != epCap->cap) { return FALSE; }
 
    /* Can we receive this capability */
    if(dir & OORX)
    {
+      OOTRACEDBGC3("Comparing RX frame rate: channel's=%d, requested=%d\n",
+         ((OOCapParams*)epCap->params)->rxframes, noofframes);
       if(((OOCapParams*)epCap->params)->rxframes >= noofframes) {
          return TRUE;
       }
@@ -958,6 +965,8 @@
    /* Can we transmit compatible stream */
    if(dir & OOTX)
    {
+      OOTRACEDBGC3("Comparing TX frame rate: channel's=%d, requested=%d\n",
+         ((OOCapParams*)epCap->params)->txframes, noofframes);
       if(((OOCapParams*)epCap->params)->txframes <= noofframes) {
          return TRUE;
       }

Modified: branches/1.2/asterisk-ooh323c/ooh323c/src/ooLogChan.c
URL: http://svn.digium.com/view/asterisk-addons/branches/1.2/asterisk-ooh323c/ooh323c/src/ooLogChan.c?rev=307&r1=306&r2=307&view=diff
==============================================================================
--- branches/1.2/asterisk-ooh323c/ooh323c/src/ooLogChan.c (original)
+++ branches/1.2/asterisk-ooh323c/ooh323c/src/ooLogChan.c Thu Sep 21 16:17:58 2006
@@ -191,6 +191,8 @@
       {
          if(!strcmp(pChannel->dir, dir))
          {
+            OOTRACEDBGC3("ooFindLogicalChannel, comparing channel: %d:%s\n",
+                          pChannel->sessionID, pChannel->dir);
             if(!strcmp(dir, "receive"))
             {
                if(ooCapabilityCheckCompatibility(call, pChannel->chanCap,



More information about the svn-commits mailing list