[asterisk-addons-commits] anthonyl: trunk r288 - in /trunk: ./ asterisk-ooh323c/src/ format_mp3/

asterisk-addons-commits at lists.digium.com asterisk-addons-commits at lists.digium.com
Thu Aug 31 17:37:27 MST 2006


Author: anthonyl
Date: Thu Aug 31 19:37:27 2006
New Revision: 288

URL: http://svn.digium.com/view/asterisk-addons?rev=288&view=rev
Log:
small update

Modified:
    trunk/app_saycountpl.c
    trunk/asterisk-ooh323c/src/chan_h323.c
    trunk/cdr_addon_mysql.c
    trunk/format_mp3/format_mp3.c

Modified: trunk/app_saycountpl.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/app_saycountpl.c?rev=288&r1=287&r2=288&view=diff
==============================================================================
--- trunk/app_saycountpl.c (original)
+++ trunk/app_saycountpl.c Thu Aug 31 19:37:27 2006
@@ -19,6 +19,7 @@
 #include <unistd.h>
 #include <string.h>
 
+#define AST_MODULE "ast_saycountpl"
 
 static char *tdesc = "Say polish counting words";
 
@@ -74,7 +75,8 @@
 	
 	struct localuser *u;
 
-	
+	u = ast_module_user_add(chan);
+
 	if (!data) {
 		ast_log(LOG_WARNING, "You didn't pass any arguments - I need 4 arguments, word-1,word-2,word-5,number\n");
 		return -1;
@@ -93,13 +95,13 @@
 
         if (!word1 || !word2 || !word5 || !num) {
                 ast_log(LOG_WARNING, "Saycountpl requires the arguments word-1|word-2|word-3|number\n");
-                LOCAL_USER_REMOVE(u);
+                ast_module_user_remove(u);
                 return -1;
 	}	
 	
         if (sscanf(num, "%d", &inum) != 1) {
                 ast_log(LOG_WARNING, "'%s' is not a valid number\n", num);
-                LOCAL_USER_REMOVE(u);
+                ast_module_user_remove(u);
                 return -1;
         }
 									
@@ -108,8 +110,8 @@
 	res = saywords(chan,word1,word2,word5,inum);
 
 
+	ast_module_user_remove(u);
 	
-	LOCAL_USER_REMOVE(u);
 	return res;
 }
 

Modified: trunk/asterisk-ooh323c/src/chan_h323.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/asterisk-ooh323c/src/chan_h323.c?rev=288&r1=287&r2=288&view=diff
==============================================================================
--- trunk/asterisk-ooh323c/src/chan_h323.c (original)
+++ trunk/asterisk-ooh323c/src/chan_h323.c Thu Aug 31 19:37:27 2006
@@ -17,6 +17,8 @@
 
 #include "chan_h323.h"
 
+
+#define AST_MODULE "chan_oo323"
 
 /* Defaults */
 #define DEFAULT_CONTEXT "default"
@@ -3188,4 +3190,4 @@
    ooGkClientDestroy();
 }
 
-/* STD_MOD(MOD_0, reload, NULL, NULL); */
+AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Objective Systems H323 Channel");

Modified: trunk/cdr_addon_mysql.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/cdr_addon_mysql.c?rev=288&r1=287&r2=288&view=diff
==============================================================================
--- trunk/cdr_addon_mysql.c (original)
+++ trunk/cdr_addon_mysql.c Thu Aug 31 19:37:27 2006
@@ -44,6 +44,7 @@
 #include <sys/types.h>
 #include <errno.h>
 
+#define AST_MODULE "cdr_addon_mysql"
 #define DATE_FORMAT "%Y-%m-%d %T"
 
 static char *desc = "MySQL CDR Backend";
@@ -115,6 +116,7 @@
 	struct tm tm;
 	struct timeval tv;
 	struct localuser *u;
+	struct ast_module_user *u;
 	char *userfielddata = NULL;
 	char sqlcmd[2048], timestr[128];
 	char *clid=NULL, *dcontext=NULL, *channel=NULL, *dstchannel=NULL, *lastapp=NULL, *lastdata=NULL;
@@ -482,4 +484,5 @@
 {
 	return ASTERISK_GPL_KEY;
 }
-
+AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "MySQL CDR Backend");
+

Modified: trunk/format_mp3/format_mp3.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/format_mp3/format_mp3.c?rev=288&r1=287&r2=288&view=diff
==============================================================================
--- trunk/format_mp3/format_mp3.c (original)
+++ trunk/format_mp3/format_mp3.c Thu Aug 31 19:37:27 2006
@@ -38,6 +38,8 @@
 #else
 #include <machine/endian.h>
 #endif
+
+#define AST_MODULE "format_mp3"
 
 #define MP3_BUFLEN 320
 #define MP3_SCACHE 16384
@@ -344,4 +346,4 @@
 	return ASTERISK_GPL_KEY;
 }
 
-STD_MOD1;
+AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "MP3 format [Any rate but 8000hz mono optimal]");



More information about the asterisk-addons-commits mailing list