XIFF2 - Managing chat requests

Hi,

I still use XIFF2 in my project and would like to know if there is a way to implement chat requests direclty using the API?

  1. X send a chat request to Y

  2. Y accepts => X is notified (init chat)

  3. Y rejects => X is notified (cancel chat)

It is a very simple process based on a 1-1 chat only I am currently implementing using PHP/MySQL & Ajax but it is a nightmare to maintain, so

can this be achieved in XIFF ? are there methods to handle such a process ?

Thanks