srinivasan
07-29-2008, 06:39 PM
hi,
Could anyone guide me how to add/remove contact in jabber roster via php class_jabber.php (class file).
While i gonethrough the file, i found it can be done like this,
Example,
If am the person X, needs to add the person Y in my contact list (roster).
After X is logged into the jabber, the following code does the things,
a/.add_contact($jid) => $jid is Y's jabber id.
b/. subscription_request_accept($jid)
once the person X is done the above things, the request is sent to the person Y and the person can accept or reject the request.
So, if the person Y is accepts the request, than the person Y will sents internally an another request to the X person and if the person X accepts the request than the both will be added to their rosters..
This is the what i had also tried, but the results are not coming to me...
So, please could any one guide me right path to acheive this.. Though I am new to this concept.
Note: For doing the above things, whether we need to use another login attempt with another presence or??
Thanks and Regards,
Srinivasan M
Could anyone guide me how to add/remove contact in jabber roster via php class_jabber.php (class file).
While i gonethrough the file, i found it can be done like this,
Example,
If am the person X, needs to add the person Y in my contact list (roster).
After X is logged into the jabber, the following code does the things,
a/.add_contact($jid) => $jid is Y's jabber id.
b/. subscription_request_accept($jid)
once the person X is done the above things, the request is sent to the person Y and the person can accept or reject the request.
So, if the person Y is accepts the request, than the person Y will sents internally an another request to the X person and if the person X accepts the request than the both will be added to their rosters..
This is the what i had also tried, but the results are not coming to me...
So, please could any one guide me right path to acheive this.. Though I am new to this concept.
Note: For doing the above things, whether we need to use another login attempt with another presence or??
Thanks and Regards,
Srinivasan M