[asterisk-addons-commits] anthonyl: trunk r291 - /trunk/asterisk-ooh323c/src/chan_h323.c

asterisk-addons-commits at lists.digium.com asterisk-addons-commits at lists.digium.com
Mon Sep 11 10:18:52 MST 2006


Author: anthonyl
Date: Mon Sep 11 12:18:51 2006
New Revision: 291

URL: http://svn.digium.com/view/asterisk-addons?rev=291&view=rev
Log:
set channel pvt to NULL on successful  hangup

Modified:
    trunk/asterisk-ooh323c/src/chan_h323.c

Modified: trunk/asterisk-ooh323c/src/chan_h323.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/asterisk-ooh323c/src/chan_h323.c?rev=291&r1=290&r2=291&view=diff
==============================================================================
--- trunk/asterisk-ooh323c/src/chan_h323.c (original)
+++ trunk/asterisk-ooh323c/src/chan_h323.c Mon Sep 11 12:18:51 2006
@@ -822,7 +822,7 @@
              ooh323_convert_hangupcause_asteriskToH323(p->owner->hangupcause));
          ast_mutex_unlock(&ooh323c_cmd_lock);
          ast_set_flag(p, H323_ALREADYGONE);
-         //ast_mutex_unlock(&p->lock);
+         /* ast_mutex_unlock(&p->lock); */
       }
       else {
          ast_set_flag(p, H323_NEEDDESTROY);
@@ -843,11 +843,14 @@
       ast_update_use_count();
      
    }
+
+   ast->pvt = NULL;
+
    else {
       ast_log(LOG_ERROR, "No call to hangup\n" );
       return -1;
    }
-
+   
    if(gH323Debug)
       ast_verbose("+++   ooh323_hangup\n");
 



More information about the asterisk-addons-commits mailing list