summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_trouter.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-05-02 07:21:20 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-05-02 07:21:20 +0000
commit136e53ee849e3de39c92c66ee1993c170f65399c (patch)
tree90362b9e20de9b0c5fc063c48e6bbf5c0cc453c6 /protocols/SkypeWeb/src/skype_trouter.cpp
parentd9ee602fe14c95edefa581006afe6a7a54e16b9e (diff)
SkypeWeb: Login fix(?).
git-svn-id: http://svn.miranda-ng.org/main/trunk@13356 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_trouter.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_trouter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_trouter.cpp b/protocols/SkypeWeb/src/skype_trouter.cpp
index 3f76c3e731..ff45e744cd 100644
--- a/protocols/SkypeWeb/src/skype_trouter.cpp
+++ b/protocols/SkypeWeb/src/skype_trouter.cpp
@@ -94,13 +94,13 @@ void CSkypeProto::OnTrouterEvent(JSONNODE *body, JSONNODE *headers)
ptrT displayname(json_as_string(json_get(body, "displayName")));
ptrT cuid(json_as_string(json_get(body, "callerId")));
ptrT uid(json_as_string(json_get(body, "conversationId")));
- ptrA callId(mir_t2a(ptrT(json_as_string(json_get(body, "callId")))));
int evt = json_as_int(json_get(body, "evt"));
switch (evt)
{
case 100: //incoming call
- {
+ {
+ ptrA callId(mir_t2a(ptrT(json_as_string(json_get(body, "convoCallId")))));
if (uid != NULL)
{
MCONTACT hContact = AddContact(_T2A(uid), true);
@@ -129,6 +129,7 @@ void CSkypeProto::OnTrouterEvent(JSONNODE *body, JSONNODE *headers)
}
case 104: //call canceled: callerId=""; conversationId=NULL; callId=call id
{
+ ptrA callId(mir_t2a(ptrT(json_as_string(json_get(body, "callId")))));
break;
}
}