The attached patch is against the libyahoo2 included in
CenterICQ 4.11.0 I hope it doesn't diverge too much
from upstream.
Basically, it adds a new callback, that is triggered
whenever voice-chat is turned on, for the library user
to deal with. It seems to me that libyahoo2 shouldn't
be doing any more than that with voice-chat, since it's
a distinct protocol and a distinct set of servers, with
only the startup details linking the two.
This also attempts to address voice-enabled chat-rooms
with two extra parameters on the chat-join callback,
which are needed to connect to the chatroom's voice
session. This is untested as I discovered while doing
this that CenterICQ doesn't support chats, just PMs and
conferences.
I've successfully joined a chat session using this
patch an pY!Voice, but pY!Voice seemed to lock when
trying to access my sound system, so I haven't actually
got voice back and forth. That's out of scope though,
since I was able to _see_ the other members of the
voice-session.
I hope this helps. ^_^
Patch to enable libyahoo2 to pass off voice invitations to the library user