Add dialog tag to ACK messages.
git-svn-id: http://yate.null.ro/svn/yate/trunk@184 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
ffe79e2bfd
commit
9219b84077
|
@ -229,10 +229,18 @@ void SIPMessage::complete(SIPEngine* engine, const char* user, const char* domai
|
|||
if (isOutgoing() && !getParty())
|
||||
engine->buildParty(this);
|
||||
|
||||
// don't complete ACK or incoming messages
|
||||
if (isACK() || !isOutgoing())
|
||||
// don't complete incoming messages
|
||||
if (!isOutgoing())
|
||||
return;
|
||||
|
||||
// only set the dialog tag on ACK
|
||||
if (isACK()) {
|
||||
HeaderLine* hl = const_cast<HeaderLine*>(getHeader("To"));
|
||||
if (dlgTag && hl && !hl->getParam("tag"))
|
||||
hl->setParam("tag",dlgTag);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!user)
|
||||
user = "anonymous";
|
||||
if (!domain)
|
||||
|
|
Loading…
Reference in New Issue