[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Wed Aug 25 08:17:06 CDT 2010
branch "master" has been updated
via bb61015d5c1ba60711988f6cdb63c88fc874d182 (commit)
from aa827ddff0f08efc30f128efa3a9a12f3f136d2e (commit)
Summary of changes:
src/PJSipSessionModule.cpp | 2 ++
src/PJSipSessionModule.h | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit bb61015d5c1ba60711988f6cdb63c88fc874d182
Author: Joshua Colp <jcolp at digium.com>
Date: Wed Aug 25 10:28:24 2010 -0300
Add a missing #pragma once and also set a name of our pjsip module. It's required as it searches for duplicates when registering.
diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index 3abc610..de09e0f 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -267,6 +267,8 @@ PJSipSessionModule::PJSipSessionModule() : mName("Session Module")
{
// XXX Set the module name here. It's a pain in the neck
// to deal with pj_str_t in C++...
+ char name[] = "AsteriskSCF";
+ mModule.name = pj_str(name);
mModule.priority = PJSIP_MOD_PRIORITY_APPLICATION;
mModule.load = sessionLoad;
mModule.start = sessionStart;
diff --git a/src/PJSipSessionModule.h b/src/PJSipSessionModule.h
index 618e8d2..fba215b 100644
--- a/src/PJSipSessionModule.h
+++ b/src/PJSipSessionModule.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <pjsip.h>
#include <pjsip_ua.h>
#include <pjlib.h>
-----------------------------------------------------------------------
--
asterisk-scf/integration/sip.git
More information about the asterisk-scf-commits
mailing list