My custom module mod_turn_cloudflare hooks onto external_service/credentials (and of course /services) events and appends turn servers obtained from Cloudflare to the services/credentials list. This currently works, but in case of failure no service gets added, and mod_external_services happily returns an empty <credentials/> list. Ideally, a means to propagate the exact error to the upper event should be provided. But at the very least, <item-not-found/> ought to be returned for any generic error, e.g. if the client specified an non-existent service. Please provide a link to the specification: https://xmpp.org/extensions/xep-0215.html#credentials:~:text=If%20the%20server%20cannot%20obtain%20credentials%20at%20the%20service%2C%20it%20returns%20an%20appropriate%20stanza%20error%2C%20such%20as%20%3Citem%2Dnot%2Dfound%2F%3E%2C%20%3Cremote%2Dserver%2Dnot%2Dfound%2F%3E%2C%20%3Cremote%2Dserver%2Dtimeout%2F%3E%2C%20or%20%3Cnot%2Dauthorized%2F%3E%2E
My custom module mod_turn_cloudflare hooks onto external_service/credentials (and of course /services) events and appends turn servers obtained from Cloudflare to the services/credentials list. This currently works, but in case of failure no service gets added, and mod_external_services happily returns an empty <credentials/> list. Ideally, a means to propagate the exact error to the upper event should be provided. But at the very least, <item-not-found/> ought to be returned for any generic error, e.g. if the client specified an non-existent service. Please provide a link to the specification: https://xmpp.org/extensions/xep-0215.html#credentials:~:text=If%20the%20server%20cannot%20obtain%20credentials%20at%20the%20service%2C%20it%20returns%20an%20appropriate%20stanza%20error%2C%20such%20as%20%3Citem%2Dnot%2Dfound%2F%3E%2C%20%3Cremote%2Dserver%2Dnot%2Dfound%2F%3E%2C%20%3Cremote%2Dserver%2Dtimeout%2F%3E%2C%20or%20%3Cnot%2Dauthorized%2F%3E%2E