[asterisk-commits] file: branch file/dialing_api r49199 - in /team/file/dialing_api: include/ast...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Jan 2 10:56:25 MST 2007


Author: file
Date: Tue Jan  2 11:56:24 2007
New Revision: 49199

URL: http://svn.digium.com/view/asterisk?view=rev&rev=49199
Log:
Add skeleton files for the dialing API. For those who are curious - this will consolidate everywhere that dialing is done so everything will have access to the same set of features and will reduce code duplication across the tree.

Added:
    team/file/dialing_api/include/asterisk/dial.h   (with props)
    team/file/dialing_api/main/dial.c   (with props)
Modified:
    team/file/dialing_api/main/Makefile

Added: team/file/dialing_api/include/asterisk/dial.h
URL: http://svn.digium.com/view/asterisk/team/file/dialing_api/include/asterisk/dial.h?view=auto&rev=49199
==============================================================================
--- team/file/dialing_api/include/asterisk/dial.h (added)
+++ team/file/dialing_api/include/asterisk/dial.h Tue Jan  2 11:56:24 2007
@@ -1,0 +1,34 @@
+/*
+ * Asterisk -- An open source telephony toolkit.
+ *
+ * Copyright (C) 1999 - 2007, Digium, Inc.
+ *
+ * Joshua Colp <jcolp at digium.com>
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ */
+
+/*! \file
+ * \brief Dialing API
+ */
+
+#ifndef _ASTERISK_DIAL_H
+#define _ASTERISK_DIAL_H
+
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
+
+#endif /* _ASTERISK_DIAL_H */

Propchange: team/file/dialing_api/include/asterisk/dial.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/file/dialing_api/include/asterisk/dial.h
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/file/dialing_api/include/asterisk/dial.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: team/file/dialing_api/main/Makefile
URL: http://svn.digium.com/view/asterisk/team/file/dialing_api/main/Makefile?view=diff&rev=49199&r1=49198&r2=49199
==============================================================================
--- team/file/dialing_api/main/Makefile (original)
+++ team/file/dialing_api/main/Makefile Tue Jan  2 11:56:24 2007
@@ -26,7 +26,7 @@
 	utils.o plc.o jitterbuf.o dnsmgr.o devicestate.o \
 	netsock.o slinfactory.o ast_expr2.o ast_expr2f.o \
 	cryptostub.o sha1.o http.o fixedjitterbuf.o abstract_jb.o \
-	strcompat.o
+	strcompat.o dial.o
 
 # we need to link in the objects statically, not as a library, because
 # otherwise modules will not have them available if none of the static

Added: team/file/dialing_api/main/dial.c
URL: http://svn.digium.com/view/asterisk/team/file/dialing_api/main/dial.c?view=auto&rev=49199
==============================================================================
--- team/file/dialing_api/main/dial.c (added)
+++ team/file/dialing_api/main/dial.c Tue Jan  2 11:56:24 2007
@@ -1,0 +1,44 @@
+/*
+ * Asterisk -- An open source telephony toolkit.
+ *
+ * Copyright (C) 1999 - 2007, Digium, Inc.
+ *
+ * Joshua Colp <jcolp at digium.com>
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ */
+
+/*! \file
+ *
+ * \brief Dialing API
+ *
+ * \author Joshua Colp <jcolp at digium.com>
+ */
+
+#include "asterisk.h"
+
+ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/time.h>
+#include <signal.h>
+#include <errno.h>
+#include <unistd.h>
+
+#include "asterisk/logger.h"
+#include "asterisk/channel.h"
+#include "asterisk/options.h"
+#include "asterisk/utils.h"
+#include "asterisk/lock.h"
+#include "asterisk/linkedlists.h"
+#include "asterisk/dial.h"

Propchange: team/file/dialing_api/main/dial.c
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/file/dialing_api/main/dial.c
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/file/dialing_api/main/dial.c
------------------------------------------------------------------------------
    svn:mime-type = text/plain



More information about the asterisk-commits mailing list