jdev - 2021-07-15


  1. kikuchiyo has left

  2. kikuchiyo has joined

  3. Sam

    Re-posting for a broader audience: is carbons more closely related to message forwarding or history sync? Trying to decide where I would group a message carbons package (because I think the name "carbons" is confusing and makes me think the feature is for sending one message to multiple people), but I'm not sure if it belongs in the "forwarding" package, the "history" package, or somewhere else entirely maybe grouped with one of those two things or maybe on its own?

  4. gutuning has left

  5. kikuchiyo has left

  6. Sam

    Maybe the concept (and the package) is "delivery" and includes anything related to message delivery options (delay, forwarding, carbons, maybe others)

  7. Alex has left

  8. pasdesushi has left

  9. kikuchiyo has joined

  10. wurstsalat has left

  11. selurvedu has joined

  12. southerntofu

    hello what's the recommended way for a MUC to redirect a user to another MUC?

  13. dezant has left

  14. southerntofu

    i heard about gone and see-other-host, but does any have better client support?

  15. gutuning has joined

  16. Sam

    southerntofu: probably by sending a mediated invite and then kicking the user: https://xmpp.org/extensions/xep-0045.html#invite-mediated

  17. pep.

    wut

  18. pep.

    That seems.. ugly

  19. dezant has joined

  20. Sam

    For users already in the muc that is. For new joins I think there's a disco field specifically for showing them the new one instead, but I can't remember what it is

  21. southerntofu

    Sam, sooooo the client wouldn't connect automatically to the new addres sright?

  22. southerntofu

    ah that sounds better :)

  23. Sam

    Yah sorry, I was thinking earlier in the process and realized what you meant after.

  24. Sam

    I forget where it's defined; just a second and I'll look

  25. Sam

    Or maybe I'm imagining it, I thought ejabberd had this option anyways

  26. pep.

    prosody uses <gone/> after a room has been destroyed with a redirect jid

  27. southerntofu

    but do clients respect it in practice?

  28. Sam

    Nevermind, the thing I thought exited doesn't. At least, not in the config form for the room I thought I'd seen it in.

  29. gutuning has left

  30. southerntofu

    my use-case would be automatically redirecting the user to a specific gateway when the server detects a foreign protocol used on the requested remote service, and knows of a gateway to reach it

  31. idk has left

  32. southerntofu

    eg. /join #foo@libera.chat would redirect me to #foo%libera.chat@biboumi.MYSERVER or something like that

  33. southerntofu

    :w 36

  34. southerntofu

    (you may treat me as a heretic, i've already received the treatment on IRC-side :P)

  35. southerntofu draw a pentagram in the chan

  36. pep.

    So I've tried to argue that non-stable addresses is meh, already, but they don't want to hear it :P

  37. pep.

    Maybe somebody can help my case

  38. southerntofu also received the treatment from pep. :P

  39. pep.

    (or their case, maybe I'm just wrong about that)

  40. idk has joined

  41. idk has left

  42. idk has joined

  43. gutuning has joined

  44. dezant has left

  45. dezant has joined

  46. gutuning has left

  47. gutuning has joined

  48. YagizĐ° has joined

  49. marc0s has left

  50. marc0s has joined

  51. mikeye has joined

  52. qrpnxz has left

  53. qrpnxz has joined

  54. mikeye has left

  55. mikeye has joined

  56. gutuning has left

  57. gutuning has joined

  58. alexbay218 has left

  59. wancat has joined

  60. emus has joined

  61. dezant has left

  62. mikeye has left

  63. wancat

    Hi, I'm new to XMPP. Is the "resource" column in the JID protocol already deprecated? I am developing a XMPP chatbot which bridges messages to other IM. I want to use resource to identify the user of my service so that I can just create one account for the bot. But I don't see different when I send message to the same account with different resource provided, like user@chat.linchpins.cloud and user@chat.linchpins.cloud/test

  64. gutuning has left

  65. mikeye has joined

  66. dezant has joined

  67. mikeye has left

  68. wurstsalat has joined

  69. mikeye has joined

  70. scorch has left

  71. scorch has joined

  72. pulkomandy has left

  73. pulkomandy has joined

  74. Alex has joined

  75. MattJ

    wancat: hi! Welcome to XMPP 🙂

  76. MattJ

    The part before the @ identifies the user, the part after the / (the resource) identifies a single session of the user

  77. MattJ

    The resource is certainly not deprecated (at the protocol level), but most people now have multiple devices and they want to receive the same messages on all of them

  78. MattJ

    Also note that sessions (resources) come and go, e.g. as users switch between devices

  79. MattJ

    For a bridge to another network you'll typically want to connect to the server as a "component"

  80. mikeye has left

  81. MattJ

    It's a special connection type that allows you to control traffic for a whole domain (usually a subdomain)

  82. MattJ

    If your bridge connects as foo.example.com, it will receive (and can send) messages to/from user@foo.example.com and user2@foo.example.com, etc.

  83. MattJ

    Basically faking as many JIDs as you want, without needing to create a load of accounts on the server

  84. gutuning has joined

  85. jonas’

    southerntofu, fun idea. I don’t think any client supports <gone/> on MUC join and I think <redirect/> neither

  86. jonas’

    but maybe you can get them to :)

  87. jonas’

    (fwiw, <see-other-host/> is a stream error, you are looking for stanza errors)

  88. FireFly has left

  89. FireFly has joined

  90. goffi has joined

  91. idk has left

  92. Alex has left

  93. Alex has joined

  94. mikeye has joined

  95. franck has joined

  96. asterix has left

  97. asterix has joined

  98. gutuning has left

  99. gutuning has joined

  100. mikeye has left

  101. pasdesushi has joined

  102. pep.

    southerntofu, I think I mentioned it but Link Mauve had a similar "problem" for his XMPP<->AP on prosody

  103. gutuning has left

  104. emus has left

  105. asterix has left

  106. asterix has joined

  107. gutuning has joined

  108. gutuning has left

  109. Kiwi has joined

  110. scorch has left

  111. pasdesushi has left

  112. wuuko has joined

  113. pasdesushi has joined

  114. lovetox has left

  115. asterix has left

  116. asterix has joined

  117. gutuning has joined

  118. debacle has left

  119. lovetox has joined

  120. xecks has joined

  121. Wojtek has joined

  122. emus has joined

  123. gutuning has left

  124. gutuning has joined

  125. wancat

    MattJ: Thanks for your replies! Very helpful

  126. gutuning has left

  127. franck has left

  128. lovetox has left

  129. gutuning has joined

  130. lovetox has joined

  131. gutuning has left

  132. gutuning has joined

  133. pasdesushi has left

  134. franck has joined

  135. pasdesushi has joined

  136. wuuko has left

  137. jgart has left

  138. Wojtek has left

  139. Wojtek has joined

  140. wuuko has joined

  141. gutuning has left

  142. gutuning has joined

  143. debacle has joined

  144. gutuning has left

  145. lovetox has left

  146. Kiwi has left

  147. Kiwi has joined

  148. debacle has left

  149. debacle has joined

  150. lovetox has joined

  151. debacle has left

  152. debacle has joined

  153. YagizĐ° has left

  154. YagizĐ° has joined

  155. gutuning has joined

  156. gutuning has left

  157. qrpnxz has left

  158. qrpnxz has joined

  159. YagizĐ° has left

  160. mac has joined

  161. marc0s has left

  162. marc0s has joined

  163. pulkomandy has left

  164. pulkomandy has joined

  165. marc0s has left

  166. marc0s has joined

  167. xecks has left

  168. pulkomandy has left

  169. pulkomandy has joined

  170. marc0s has left

  171. marc0s has joined

  172. mac has left

  173. mac has joined

  174. qrpnxz has left

  175. qrpnxz has joined

  176. Squeaky Latex Folf

    > MattJ wrote: > The resource is certainly not deprecated (at the protocol level), but most people now have multiple devices and they want to receive the same messages on all of them How would you send a message to all resources then? Just by not specifying the resource?

  177. MattJ

    Yeah, the recommended approach these days is to send to the bare JID (no resource)

  178. MattJ

    But even if you send directly to a resource (which is still most clients today), it will get copied to all sessions that opt-in via XEP-0280 (carbons)

  179. MattJ

    XMPP was one of the first messaging protocols to support multiple concurrent devices, we thought we were so smart... magically routing the messages to the right device. Then everyone went mobile, bandwidth became cheap, and everyone wants everything everywhere :)

  180. qrpnxz has left

  181. qrpnxz has joined

  182. qrpnxz has left

  183. qrpnxz has joined

  184. wancat has left

  185. dezant has left

  186. wancat has joined

  187. flow

    tbh, I am not sure if it was smart to *not* fan out per default from the very beginning

  188. flow

    but, 1. you specificy, 2. you code, 3. you use, goto 1

  189. YagizĐ° has joined

  190. gutuning has joined

  191. MattJ

    Well, fanning out was allowed by the spec in the bare JID case. Resource locking was probably encouraged by notification issues, and a desire to not have half a conversation on other devices.

  192. MattJ

    The fix for half a conversation would require copying outgoing messages also, which is quite a leap

  193. pasdesushi has left

  194. gutuning has left

  195. Wojtek has left

  196. scorch has joined

  197. qrpnxz has left

  198. qrpnxz has joined

  199. qrpnxz has left

  200. qrpnxz has joined

  201. qrpnxz has left

  202. qrpnxz has joined

  203. qrpnxz has left

  204. qrpnxz has joined

  205. qrpnxz has left

  206. qrpnxz has joined

  207. qrpnxz has left

  208. qrpnxz has joined

  209. qrpnxz has left

  210. qrpnxz has joined

  211. qrpnxz has left

  212. qrpnxz has joined

  213. qrpnxz has left

  214. qrpnxz has joined

  215. qrpnxz has left

  216. qrpnxz has joined

  217. qrpnxz has left

  218. qrpnxz has joined

  219. qrpnxz has left

  220. qrpnxz has joined

  221. dezant has joined

  222. qrpnxz has left

  223. qrpnxz has joined

  224. qrpnxz has left

  225. qrpnxz has joined

  226. qrpnxz has left

  227. qrpnxz has joined

  228. qrpnxz has left

  229. qrpnxz has joined

  230. qrpnxz has left

  231. qrpnxz has joined

  232. xecks has joined

  233. qrpnxz has left

  234. qrpnxz has joined

  235. qrpnxz has left

  236. qrpnxz has joined

  237. rom1dep has left

  238. rom1dep has joined

  239. wancat has left

  240. wuuko has left

  241. scorch has left

  242. scorch has joined

  243. gutuning has joined

  244. YagizĐ° has left

  245. mac has left

  246. xecks has left

  247. pasdesushi has joined

  248. idk has joined

  249. YagizĐ° has joined

  250. idk has left

  251. wuuko has joined

  252. franck has left

  253. marc0s has left

  254. marc0s has joined

  255. debacle has left

  256. marc0s has left

  257. marc0s has joined

  258. marc0s has left

  259. marc0s has joined

  260. xecks has joined

  261. asterix has left

  262. asterix has joined

  263. asterix has left

  264. asterix has joined

  265. franck has joined

  266. gutuning has left

  267. gutuning has joined

  268. qrpnxz has left

  269. qrpnxz has joined

  270. dezant has left

  271. asterix has left

  272. asterix has joined

  273. dezant has joined

  274. marc0s has left

  275. marc0s has joined

  276. asterix has left

  277. asterix has joined

  278. debacle has joined

  279. gutuning has left

  280. franck has left

  281. franck has joined

  282. jgart has joined

  283. FireFly has left

  284. gutuning has joined

  285. marc0s has left

  286. marc0s has joined

  287. scorch has left

  288. marc0s has left

  289. marc0s has joined

  290. scorch has joined

  291. qrpnxz has left

  292. qrpnxz has joined

  293. YagizĐ° has left

  294. marc0s has left

  295. marc0s has joined

  296. serge90 has joined

  297. Kiwi has left

  298. serge90 has left

  299. FireFly has joined

  300. qrpnxz has left

  301. goffi has left

  302. franck has left

  303. franck has joined

  304. jgart has left

  305. asterix has left

  306. asterix has joined

  307. Squeaky Latex Folf has left

  308. asterix has left

  309. franck has left

  310. franck has joined

  311. asterix has joined

  312. asterix has left

  313. asterix has joined

  314. gutuning has left

  315. gutuning has joined

  316. idk has joined

  317. Squeaky Latex Folf has joined

  318. asterix has left

  319. asterix has joined

  320. idk has left

  321. dezant has left

  322. dezant has joined

  323. asterix has left

  324. asterix has joined

  325. asterix has left

  326. emus has left

  327. asterix has joined

  328. asterix has left

  329. asterix has joined

  330. xecks has left

  331. Martin has left

  332. Martin has joined

  333. xecks has joined

  334. gutuning has left

  335. gutuning has joined

  336. stpeter has joined

  337. gutuning has left

  338. gutuning has joined

  339. scorch has left

  340. dezant has left

  341. dezant has joined

  342. jgart has joined

  343. qrpnxz has joined

  344. qrpnxz has left

  345. qrpnxz has joined

  346. marc0s has left

  347. marc0s has joined

  348. marc0s has left

  349. marc0s has joined

  350. marc0s has left

  351. marc0s has joined

  352. qrpnxz has left

  353. qrpnxz has joined

  354. qrpnxz has left

  355. qrpnxz has joined

  356. Kiwi has joined

  357. asterix has left

  358. asterix has joined

  359. qrpnxz has left

  360. qrpnxz has joined

  361. qrpnxz has left

  362. qrpnxz has joined

  363. qrpnxz has left

  364. qrpnxz has joined

  365. paul has left

  366. qrpnxz has left

  367. qrpnxz has joined

  368. franck has left

  369. franck has joined

  370. asterix has left

  371. asterix has joined

  372. qrpnxz has left

  373. qrpnxz has joined

  374. StropheNoob has joined

  375. gutuning has left

  376. StropheNoob

    Hi everyone. Hoping to learn some things hopefully quickly. Glad I found this group.

  377. qrpnxz has left

  378. qrpnxz has joined

  379. qrpnxz has left

  380. qrpnxz has joined

  381. lovetox has left

  382. StropheNoob

    I'm writing some simple C programs based on libstrophe. I'm trying to accomplish 3 things: direct message a recipient (done), discover/join available rooms (no clue) and send/receive messages while in a room (see previous task). To test this, I installed ejabberd on my server and have two users with one group set up. I have user_a connected using pidgin/tkabber. user_b needs to connect via my c program. I ordered the definitive guide to XMPP book, but it arrives tomorrow. Does anyone have any initial thoughts on my task?

  383. Kiwi has left

  384. emus has joined

  385. pep.

    That's how you join a room protocol-wise: https://xmpp.org/extensions/xep-0045.html#enter I don't know libstrophe at all though

  386. wurstsalat has left

  387. pep.

    And welcome :)

  388. asterix has left

  389. emus has left

  390. marc0s has left

  391. marc0s has joined

  392. stpeter has left

  393. StropheNoob

    Is "service discovery" what I should be researching as far as finding out who is online and what rooms are available?

  394. StropheNoob

    My cursory understanding is I just craft a bunch of stanzas that conform to these different xep-### extensions and that's how I get the info I need. Is that correct?

  395. qrpnxz has left

  396. qrpnxz has joined

  397. qrpnxz has left

  398. qrpnxz has joined

  399. qrpnxz has left

  400. qrpnxz has joined

  401. qrpnxz has left

  402. qrpnxz has joined

  403. stpeter has joined

  404. qrpnxz has left

  405. qrpnxz has joined

  406. qrpnxz has left

  407. qrpnxz has joined

  408. qrpnxz has left

  409. qrpnxz has joined

  410. StropheNoob

    * I found it in section 6.3 of the link you sent (thank you)

  411. lovetox has joined

  412. qrpnxz has left

  413. qrpnxz has joined

  414. qrpnxz has left

  415. qrpnxz has joined

  416. qrpnxz has left

  417. qrpnxz has joined

  418. qrpnxz has left

  419. qrpnxz has joined

  420. qrpnxz has left

  421. qrpnxz has joined

  422. qrpnxz has left

  423. qrpnxz has joined

  424. qrpnxz has left

  425. qrpnxz has joined

  426. qrpnxz has left

  427. qrpnxz has joined

  428. qrpnxz has left

  429. qrpnxz has joined

  430. gutuning has joined

  431. qrpnxz has left

  432. qrpnxz has joined

  433. qrpnxz has left

  434. qrpnxz has joined

  435. qrpnxz has left

  436. qrpnxz has joined

  437. qrpnxz has left

  438. qrpnxz has joined

  439. gutuning has left

  440. debacle has left

  441. dezant has left

  442. dezant has joined

  443. wuuko has left