local tag of dialout sessions can be set by caller

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@167 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 19 years ago
parent 4ba301709b
commit 7b4faa3631

@ -36,7 +36,8 @@ AmSession* AmUAC::dialout(const string& user,
const string& r_uri,
const string& from,
const string& from_uri,
const string& to) {
const string& to,
const string& local_tag) {
AmSipRequest req;
@ -47,7 +48,10 @@ AmSession* AmUAC::dialout(const string& user,
req.r_uri = r_uri;
req.from = from;
req.from_uri = from_uri;
req.from_tag = AmSession::getNewId();
if (!local_tag.length())
req.from_tag = AmSession::getNewId();
else
req.from_tag = local_tag;
req.to = to;
req.to_tag = "";
req.callid = AmSession::getNewId() + "@" + AmConfig::LocalIP;

@ -42,7 +42,8 @@ class AmUAC {
const string& r_uri,
const string& from,
const string& from_uri,
const string& to);
const string& to,
const string& local_tag = "");
};
#endif

Loading…
Cancel
Save