@zaidka, I have enabled xmpp support in our CPE device which is deployed behind a NATed router. And I have deployed Geneacs server (xmpp branch in git) and ejabberd in a Ubuntu machine.
I followed the steps that you mentioned in your post (XMPP support for GenieACS - #8 by zaidka). With that the CPE successfully establishes a connection to the XMPP server and its coming online on the ACS server.
2021-07-27 14:10:18.599 [info] <0.395.0>@ejabberd_listener:accept:273 (<0.552.0>) Accepted connection [::ffff:27.62.66.95]:21561 -> [::ffff:192.168.10.8]:5222
2021-07-27 14:10:20.083 [info] <0.552.0>@ejabberd_c2s:process_auth_result:268 (tls|<0.552.0>) Accepted c2s SCRAM-SHA-1 authentication for cpe@example.xmpp.com by mnesia backend from ::ffff:27.62.66.95
2021-07-27 14:10:20.366 [info] <0.552.0>@ejabberd_c2s:bind:442 (tls|<0.552.0>) Opened c2s session for cpe@example.xmpp.com/cpe
But when I try to do a reboot of the CPE device from the Genieacs server, some xmpp packet exchanges are happening between ACS and XMPP server and its not forwarding that request to end CPE device. The connection request starts with the STREAM packets exchanged between acs server and xmpp server followed by STARTTLS, Client Hello, Server Hello, client and server certificate exchange and acs server is sending a FIN packet right after Change Cipher Spec, Encrypted Handshake Message.
Also I noticed following logs while booting up the xmpp server
2021-07-27 14:59:27.380 [warning] <0.1735.0>@ejabberd_pkix:log_warnings:393 Invalid certificate in /home/mohanasundarams/ejabberd-21.04/conf/server.pem: at line 53: self-signed certificate
2021-07-27 14:59:28.582 [warning] <0.1735.0>@ejabberd_pkix:check_domain_certfiles:312 No certificate found matching example.xmpp.com
2021-07-27 14:59:28.586 [warning] <0.1735.0>@ejabberd_pkix:check_domain_certfiles:312 No certificate found matching upload.example.xmpp.com
2021-07-27 14:59:28.586 [warning] <0.1735.0>@ejabberd_pkix:check_domain_certfiles:312 No certificate found matching pubsub.example.xmpp.com
2021-07-27 14:59:28.587 [warning] <0.1735.0>@ejabberd_pkix:check_domain_certfiles:312 No certificate found matching conference.example.xmpp.com
2021-07-27 14:59:28.587 [warning] <0.1735.0>@ejabberd_pkix:check_domain_certfiles:312 No certificate found matching proxy.example.xmpp.com
2021-07-27 14:59:28.595 [info] <0.1431.0>@ejabberd_app:start:63 ejabberd 21.04 is started in the node ejabberd@localhost in 25.15s
Do you think I need to replace the server.pem file with a new self signed certificate having CN=*.example.xmpp.com?
I remove this code: if (feature.children.some(©=> c.name === ‘required’)){** and then re-build ,now it works to me.
**else if (feature.name ===‘bind’)(**
** yield* bind(socket,resource);**
** return 0;**
What’s is the change that you pushed here? Does this fix was pushed into xmpp branch?