Default AppFunction to not hanging up main session automatically.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8788 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
aa4d0fec93
commit
66948098d8
|
@ -227,6 +227,7 @@ namespace FreeSWITCH
|
||||||
if (fType == null) return false;
|
if (fType == null) return false;
|
||||||
|
|
||||||
using (var session = new Native.MonoSession(new Native.SWIGTYPE_p_switch_core_session(sessionHandle, false))) {
|
using (var session = new Native.MonoSession(new Native.SWIGTYPE_p_switch_core_session(sessionHandle, false))) {
|
||||||
|
session.setAutoHangup(false);
|
||||||
try {
|
try {
|
||||||
var f = (AppFunction)Activator.CreateInstance(fType);
|
var f = (AppFunction)Activator.CreateInstance(fType);
|
||||||
f.RunInternal(session, args);
|
f.RunInternal(session, args);
|
||||||
|
|
Loading…
Reference in New Issue