Intercept client call to ejabber server in PHP

Hi,
I just started using ejabberd and this is the firs time I come in this forum. I'm working on a Chat application whre the Jabber client is an iphone application.
Here is description of my project, that is not so complex and I hope it can help you understand my needs.
I have 3 actors:
- The web application running under apache with PHP 5
- The ejabberd server
- The iphone client application

Users are created on the web application and a jabber account is automatically generated for each user. Actually, the iphone client directly ask the ejabberd server for message sending.

Here my question: Is it possible to intercept the client request and the ejabberd server response in my PHP code?

Thanks a lot for your help.

Syndicate content