Skip to content

can't seem to send message to a groupchat.  #8

@jacksnodgrass

Description

@jacksnodgrass

I can do:
$client->message->send($message, $recipient,$msg_type);
where $msg_type = 'chat' and send the specified message to the specified recipient.

changing $msg_type to 'groupchat' does not get the message sent to a chat group.

You have to FIRST do something like:
$client->presence->subscribe("[email protected]/resource_name");

BUT xmpp-php sends:

<presence from='[email protected]' to='[email protected]' 
 type='subscribe' />

and that does not work for my openchat chat server. I don't get an error but when I do the send() I get a 406 error.

<error code="406" type="modify"><not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error>

If we send:
<presence from='[email protected]' to='[email protected]' />
instead... then the send() to the chat room works.

  • jack

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions