Closed (fixed)
Project:
XMPP Framework
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 May 2009 at 07:40 UTC
Updated:
27 Aug 2009 at 22:00 UTC
Testing with the latest dev:
When I run
xmppframework_send_message( 'sam', 'chat', 'it works!', null);
I get the following 2 errors in watchdog:
'Failed to send message to user sam'
'Operation not supported by API: send_message'
Im assuming the first is a result of the second.
I tracked this down to _xmppframework_api_invoke() on line 454 of xmpp_framework.module where $info is being set to
(
[xmpp_api] => Array
(
[name] => XMPP API
[operation] => xmpp_api_operation
[description] => Utilize pure XMPP API via XMPPPHP
)
[xmpp_xmlrpc] => Array
(
[name] => XMLRPC API
[operation] => xmpp_xmlrpc_operation
[description] => Utilize xmlrpc api to XMPP server
)
and then function_exists($info['operation']) is being called when it should be something like $info['xmpp_api']['operation'] - ie. $info['operation' is never set.
any ideas?
Comments
Comment #1
samhassell commentedI should note i tried it with only xmpp_api enabled and the same thing occurs.
Comment #2
darren.ferguson commentedCurrently for the xmppframework send message i believe the code should look as follows
I need to look more into the piece there since it is still development branch hence some pieces like above are not working 100% for the module.
Comment #3
darren.ferguson commentedAlso note that the first parameter should be a fully qualified JID not just the username i.e. sam@example.com
Comment #4
darren.ferguson commentedInactive and the issue was a result of the jid not being fully qualified.