OpenFire & Asterisk integration & WebChat

Two questions:

Is there any diagram depicting the architecture of this integration?, I am trying to figure out if a XMPP client communicates with a OpenFire and then the Asterisk plug-in communicates with PBX.

The other question is about a web chat client, what can I use? I have read about sparkweb but it seems that the project is no longer updated.

Any help is greatly appreaciated.