webrtc-jingle-client icon indicating copy to clipboard operation
webrtc-jingle-client copied to clipboard

Buddy client extensions

Open bic-user opened this issue 12 years ago • 2 comments

I'm trying to use webrtc-jingle as google talk client. Not all buddies can receive calls. I want to distinguish them. The only place with such info (that I found) is node "caps:c" in raw xml that is handled by XmppRosterContactImpl from libjingle. There is "ext" over there and it contains "voice" if call is possible. Is there a simpler way to get that than modify third-party lib and drag extension through all native client part?

bic-user avatar Jun 27 '13 08:06 bic-user

Nope, you'd need to drag it through. Probably the most straight forward would be to modify android/voice-client-native/jni/voiceclient_main.cc -> OnSignalPresenceChanged

Probably include a boolean, or int of caps, depending on how much you want to encode. In the end, it will be quite a few files to change, but that's the bridge method between java and libjingle.

lukeweber avatar Jul 05 '13 23:07 lukeweber

thanks! worked for me. the one should search for "voice-v1" in extensions. But it doesn't work for new hangouts. I'll start separate thread for that.

bic-user avatar Aug 02 '13 04:08 bic-user