onOutgoingInvite callback when sending INVITE

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1507 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 17 years ago
parent 33876e9d04
commit af99a7f223

@ -823,6 +823,8 @@ void AmSession::sendReinvite(bool updateSDP, const string& headers)
int AmSession::sendInvite(const string& headers)
{
onOutgoingInvite(headers);
// Set local IP first, so that IP is set when
// getLocalPort/setLocalPort may bind.
rtp_str.setLocalIP(AmConfig::LocalIP);

@ -328,10 +328,10 @@ public:
*/
static string getNewId();
/**
* Gets the number of running sessions
*/
static unsigned int getSessionNum();
/**
* Gets the number of running sessions
*/
static unsigned int getSessionNum();
/**
* Entry point for DTMF events
@ -358,6 +358,12 @@ public:
*/
virtual void onInvite(const AmSipRequest& req);
/**
* onOutgoingInvite will be called if an INVITE
* is sent in the session.
*/
virtual void onOutgoingInvite(const string& headers) { }
/**
* onCancel will be called if a CANCEL for a running
* dialog has been received. At this point, the CANCEL

Loading…
Cancel
Save