Author: sayer
Date: 2008-12-02 22:42:39 +0100 (Tue, 02 Dec 2008)
New Revision: 1155
Modified:
trunk/core/AmB2ABSession.cpp
trunk/core/AmB2ABSession.h
Log:
B2AB: headers for INVITE in callee leg can be added
Modified: trunk/core/AmB2ABSession.cpp
===================================================================
--- trunk/core/AmB2ABSession.cpp 2008-12-02 21:41:57 UTC (rev 1154)
+++ trunk/core/AmB2ABSession.cpp 2008-12-02 21:42:39 UTC (rev 1155)
@@ -182,14 +182,16 @@
void AmB2ABCallerSession::connectCallee(const string& remote_party,
const string& remote_uri,
const string& local_party,
- const string& local_uri)
+ const string& local_uri,
+ const string& headers)
{
if(callee_status != None)
terminateOtherLeg();
B2ABConnectLegEvent* ev = new B2ABConnectLegEvent(remote_party,remote_uri,
local_party,local_uri,
- getLocalTag());
+ getLocalTag(),
+ headers);
relayEvent(ev);
callee_status = NoReply;
@@ -257,7 +259,7 @@
setCallgroup(co_ev->callgroup);
setNegotiateOnReply(true);
- if (sendInvite()) {
+ if (sendInvite(co_ev->headers)) {
throw string("INVITE could not be sent\n");
}
return;
Modified: trunk/core/AmB2ABSession.h
===================================================================
--- trunk/core/AmB2ABSession.h 2008-12-02 21:41:57 UTC (rev 1154)
+++ trunk/core/AmB2ABSession.h 2008-12-02 21:42:39 UTC (rev 1155)
@@ -82,18 +82,21 @@
string local_party;
string local_uri;
string callgroup;
+ string headers;
B2ABConnectLegEvent(const string& remote_party,
const string& remote_uri,
const string& local_party,
const string& local_uri,
- const string& callgroup)
+ const string& callgroup,
+ const string& headers)
: B2ABEvent(B2ABConnectLeg),
- remote_party(remote_party),
- remote_uri(remote_uri),
- local_party(local_party),
- local_uri(local_uri),
- callgroup(callgroup)
+ remote_party(remote_party),
+ remote_uri(remote_uri),
+ local_party(local_party),
+ local_uri(local_uri),
+ callgroup(callgroup),
+ headers(headers)
{}
};
@@ -214,7 +217,8 @@
void connectCallee(const string& remote_party,
const string& remote_uri,
const string& local_party,
- const string& local_uri);
+ const string& local_uri,
+ const string& headers="");
// @see AmB2ABSession
void terminateOtherLeg();
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev