--- /home/tsgan/asterisk-addons-1.4.5/asterisk-ooh323c/src/ooh323cDriver.c	2007-01-20 06:27:05.000000000 +0800
+++ /usr/local/voip/asterisk-addons-1.4.5/asterisk-ooh323c/src/ooh323cDriver.c	2008-02-11 16:47:24.000000000 +0800
@@ -66,7 +66,7 @@
    if(gH323Debug)
      ast_verbose("\tAdding capabilities to H323 endpoint\n");
    
-   for(x=0; 0 != (format=ast_codec_pref_index(prefs, x)); x++)
+   for(x=0; 0 != (format=ast_codec_pref_index_audio(prefs, x)); x++)
    {
       if(format & AST_FORMAT_ULAW)
       {
@@ -172,14 +172,14 @@
       ret |= ooCallEnableDTMFH245Signal(call);
 
 
-   for(x=0; 0 !=(format=ast_codec_pref_index(prefs, x)); x++)
+   for(x=0; 0 !=(format=ast_codec_pref_index_audio(prefs, x)); x++)
    {
       if(format & AST_FORMAT_ULAW)
       {
          if(gH323Debug)
             ast_verbose("\tAdding g711 ulaw capability to call(%s, %s)\n", 
                                               call->callType, call->callToken);
-	 txframes = prefs->framing[x];
+	 txframes = prefs->audio_framing[x];
          ret= ooCallAddG711Capability(call, OO_G711ULAW64K, txframes, 
                                       grxframes, OORXANDTX, 
                                       &ooh323c_start_receive_channel,
@@ -192,7 +192,7 @@
          if(gH323Debug)
             ast_verbose("\tAdding g711 alaw capability to call(%s, %s)\n",
                                             call->callType, call->callToken);
-         txframes = prefs->framing[x];
+         txframes = prefs->audio_framing[x];
          ret= ooCallAddG711Capability(call, OO_G711ALAW64K, txframes, 
                                      grxframes, OORXANDTX, 
                                      &ooh323c_start_receive_channel,
@@ -206,7 +206,7 @@
          if(gH323Debug)
             ast_verbose("\tAdding g729A capability to call(%s, %s)\n",
                                             call->callType, call->callToken);
-         txframes = (prefs->framing[x])/10;
+         txframes = (prefs->audio_framing[x])/10;
          ret= ooCallAddG729Capability(call, OO_G729A, txframes, 24, 
                                      OORXANDTX, &ooh323c_start_receive_channel,
                                      &ooh323c_start_transmit_channel,
