Subject: [RESOLVED] Custom Packets
Alex:
I followed the walk-through on how to create my own custom packets in XMPP. It works quite well, and fits my needs, however, while the tags returned in IQ are still parseable, the server still responds with error 400 -- bad request:
So, as you can see, it does indeed respond to each of the custom packets (ChkIdle) and (RespondIdle), however the server errors on them.
I DO NOT wish to fill up the server with lots of errors, so do i need to configure the server for something?
I followed the walk-through on how to create my own custom packets in XMPP. It works quite well, and fits my needs, however, while the tags returned in IQ are still parseable, the server still responds with error 400 -- bad request:
Command Button Clicked for User: Checking Idle time for user: Phillip XXXXXX
Will Send: <message xmlns="jabber:client" to="ROOM@server.namespace"><chkidle xmlns="testcs:chkidle"><whoSent>Phillip XXXXXX</whoSent><whoQuery>Phillip XXXXXX</whoQuery></chkidle></message>
Command received in room: ROOM@server.namespace
<message xmlns="jabber:client" to="pxxxxxx@server/testcs" type="error" from="ROOM@server.namespace"><chkidle xmlns="testcs:chkidle"><whoSent>Phillip XXXXXX</whoSent><whoQuery>Phillip XXXXXX</whoQuery></chkidle><error type="modify" code="400"><bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></message>
Command Parsed, had tag of ChkIdle: User: Phillip XXXXXX queried user: Phillip XXXXXX. We will be responding with: 0 seconds.
Will Send: <message xmlns="jabber:client" to="ROOM@server.namespace"><respondidle xmlns="testcs:respondidle"><whoSent>Phillip XXXXXX</whoSent><whoQuery>Phillip XXXXXX</whoQuery><idleTime>0 seconds.</idleTime></respondidle></message>
Command received in room: ROOM@server.namespace
<message xmlns="jabber:client" to="pxxxxxx@server/testcs" type="error" from="ROOM@server.namespace"><respondidle xmlns="testcs:respondidle"><whoSent>Phillip XXXXXX</whoSent><whoQuery>Phillip XXXXXX</whoQuery><idleTime>0 seconds.</idleTime></respondidle><error type="modify" code="400"><bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></message>
Command Parsed, had tag of RespondIdle: User: Phillip XXXXXX responded to user: Phillip XXXXXX with: 0 seconds.
So, as you can see, it does indeed respond to each of the custom packets (ChkIdle) and (RespondIdle), however the server errors on them.
I DO NOT wish to fill up the server with lots of errors, so do i need to configure the server for something?
zackrspv
Show profile
Link to this post

