[asterisk-commits] mmichelson: branch group/pimp_my_sip r378787 - /team/group/pimp_my_sip/res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 9 14:49:28 CST 2013
Author: mmichelson
Date: Wed Jan 9 14:49:24 2013
New Revision: 378787
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=378787
Log:
Add basic module skeleton to res_sip.c
Modified:
team/group/pimp_my_sip/res/res_sip.c
Modified: team/group/pimp_my_sip/res/res_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip.c?view=diff&rev=378787&r1=378786&r2=378787
==============================================================================
--- team/group/pimp_my_sip/res/res_sip.c (original)
+++ team/group/pimp_my_sip/res/res_sip.c Wed Jan 9 14:49:24 2013
@@ -28,6 +28,11 @@
#include "asterisk/lock.h"
#include "asterisk/utils.h"
#include "asterisk/astobj2.h"
+#include "asterisk/module.h"
+
+/*** MODULEINFO
+ <support_level>core</support_level>
+ ***/
static pjsip_endpoint *ast_pjsip_endpoint;
@@ -187,6 +192,12 @@
return endpoint;
}
+int ast_sip_send_request(const char *method, const char *body, struct pjsip_dialog *dlg)
+{
+ /* XXX Stub */
+ return 0;
+}
+
int ast_sip_add_header(pjsip_tx_data *tdata, const char *name, const char *value)
{
/* XXX Stub */
@@ -227,3 +238,21 @@
/* XXX stub */
return 0;
}
+
+static int load_module(void)
+{
+ /* XXX stub */
+ return AST_MODULE_LOAD_SUCCESS;
+}
+
+static int unload_module(void)
+{
+ /* XXX stub */
+ return 0;
+}
+
+AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS | AST_MODFLAG_LOAD_ORDER, "Basic SIP resource",
+ .load = load_module,
+ .unload = unload_module,
+ .load_pri = AST_MODPRI_APP_DEPEND,
+ );
More information about the asterisk-commits
mailing list