Hello, I've been going through the docs and attempting several solutions but without any success so far. What we need is to capture the 1st packet of a xmpp connection and based on the 'to="domain"', decide which server (for now they're in the same backend, unsure if this would make better sense in the frontend) to send the request to.
A naive attempt was using payload(X,Y) on an acl and then trying to match it, but in time (as the acl became broader and broader to the point it HAD to match, but didn't) it because obvious that it couldn't be done this way. I suspect the solution lies somewhere in the use of stick table and similar configuration options, but I have been unable to come up with the right syntax to express the idea. >From what I understand, we would need to create a table of type string (maybe binary? not sure), then somehow put the captured buffer in this table, and finally somehow use "use-server bla if $someacl" that makes use of the table. Is that right? We looked at examples in configuration.txt that do something similar for ssl client/server hellos but could not transpose the concept to this case. Any insights greatly appreciated!

