From 7ef04dbd77d561031c318f6066783e1b279d541c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 7 Aug 2022 18:11:51 +0300 Subject: Jabber: fix for VoiceService calling --- protocols/JabberG/src/jabber_thread.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'protocols/JabberG/src/jabber_thread.cpp') 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); -- cgit v1.2.3