Fixed call direction attribute for notification

git-svn-id: http://voip.null.ro/svn/yate@1395 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2007-07-18 12:57:56 +00:00
parent 0f672bc3a3
commit 38f394f00a

View file

@ -311,7 +311,7 @@ bool YSipSubscribeHandler::getEventData(Message& msg, int& event, String& evName
// dialog.remotetag
// The remote tag component of the dialog identifier
// dialog.direction
// Keyword indicating the call direction from the notifier's point of view: incoming/outgoing
// Keyword indicating the call direction from Yate's point of view: incoming/outgoing
// dialog.remoteuri
// The notifier dialog peer's URI
// dialog.state
@ -442,9 +442,9 @@ void YSipNotifyHandler::createDialogBody(String& dest, const Message& src,
addAttr(dest,"remote-tag",src.getValue("dialog.remotetag"));
String dir = src.getValue("dialog.direction");
if (dir == "incoming")
dir = "recipient";
else if (dir == "outgoing")
dir = "initiator";
else if (dir == "outgoing")
dir = "recipient";
else
dir = "";
addAttr(dest,"direction",dir);