summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_thread.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-08-07 18:11:51 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-08-07 18:11:51 +0300
commit7ef04dbd77d561031c318f6066783e1b279d541c (patch)
tree3c62771e3f2609f8bf7d98c81aa33fa868ec2593 /protocols/JabberG/src/jabber_thread.cpp
parent8b8313f8ddf570c5e79fef25e3dbba76698d28ea (diff)
Jabber: fix for VoiceService calling
Diffstat (limited to 'protocols/JabberG/src/jabber_thread.cpp')
-rw-r--r--protocols/JabberG/src/jabber_thread.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp
index 6f2fb75278..689e7b00a6 100644
--- a/protocols/JabberG/src/jabber_thread.cpp
+++ b/protocols/JabberG/src/jabber_thread.cpp
@@ -1786,11 +1786,20 @@ bool CJabberProto::OnProcessJingle(const TiXmlElement *node)
const TiXmlElement *descr = XmlGetChildByTag(content, "description", "xmlns", JABBER_FEAT_JINGLE_RTP);
if (m_bEnableVOIP && m_voipSession == "" && descr) {
- if (VOIPCallAccept(child, from)) {
+ /* if (VOIPCallAccept(child, from)) {
m_voipSession = szSid;
m_voipPeerJid = from;
return true;
- }
+ }*/
+ VOICE_CALL vc = {};
+ vc.cbSize = sizeof(VOICE_CALL);
+ vc.moduleName = m_szModuleName;
+ vc.id = "jvhvjvjbj"; // Protocol especific ID for this call
+ vc.flags = 0;
+ vc.hContact = HContactFromJID(from); // Contact associated with the call (can be NULL)
+ vc.state = VOICE_STATE_RINGING;
+ NotifyEventHooks(m_hVoiceEvent, WPARAM(&vc), 0);
+ return true;
}
XmlNodeIq iq("set", SerialNext(), from);