}\r
\r
\r
-OpalLocalConnection *FSEndPoint::CreateConnection(OpalCall & call, void *userData)\r
+OpalLocalConnection *FSEndPoint::CreateConnection(OpalCall & call, void *userData, unsigned options, OpalConnection::StringOptions* stringOptions)\r
{\r
FSManager & mgr = (FSManager &) GetManager();\r
switch_core_session_t *fsSession = switch_core_session_request(mgr.GetSwitchInterface(), \r
return NULL;\r
}\r
\r
- return new FSConnection(call, *this, (switch_caller_profile_t *)userData, fsSession, fsChannel);\r
+ return new FSConnection(call, *this, userData, options, stringOptions, (switch_caller_profile_t *)userData, fsSession, fsChannel);\r
}\r
\r
\r
///////////////////////////////////////////////////////////////////////\r
\r
\r
-FSConnection::FSConnection(OpalCall & call, FSEndPoint & endpoint, switch_caller_profile_t *outbound_profile, switch_core_session_t *fsSession, switch_channel_t *fsChannel)\r
- : OpalLocalConnection(call, endpoint, NULL)\r
+FSConnection::FSConnection(OpalCall & call, FSEndPoint & endpoint, void* userData, unsigned options, OpalConnection::StringOptions* stringOptions, switch_caller_profile_t *outbound_profile, switch_core_session_t *fsSession, switch_channel_t *fsChannel)\r
+ : OpalLocalConnection(call, endpoint, userData, options, stringOptions)\r
, m_endpoint(endpoint)\r
, m_fsSession(fsSession)\r
, m_fsChannel(fsChannel)\r
switch_cond_next();\r
}\r
if (CheckPatchAndLock()) {\r
- GetPatch()->OnPatchStart();\r
+ GetPatch()->OnStartMediaPatch();\r
m_callOnStart = false;\r
UnlockReadWrite();\r
} else {\r
\r
if (m_callOnStart) {\r
if (CheckPatchAndLock()) {\r
- GetPatch()->OnPatchStart();\r
+ GetPatch()->OnStartMediaPatch();\r
m_callOnStart = false;\r
UnlockReadWrite();\r
} else {\r
FSEndPoint(FSManager & manager);
virtual bool OnIncomingCall(OpalLocalConnection &);
- virtual OpalLocalConnection *CreateConnection(OpalCall &, void *);
+ virtual OpalLocalConnection *CreateConnection(OpalCall & call, void * userData, unsigned options, OpalConnection::StringOptions* stringOptions);
};
public:
FSConnection(OpalCall & call,
FSEndPoint & endpoint,
+ void* userData,
+ unsigned options,
+ OpalConnection::StringOptions* stringOptions,
switch_caller_profile_t *outbound_profile,
switch_core_session_t *fsSession,
switch_channel_t *fsChannel);