# How GenieACS recognize when to use XMPP while making Connection Request

**URL:** <https://forum.genieacs.com/t/how-genieacs-recognize-when-to-use-xmpp-while-making-connection-request/5701>\
**Category:** Uncategorized\
**Created:** [July 8, 2024, 6:03am UTC](https://forum.genieacs.com/t/how-genieacs-recognize-when-to-use-xmpp-while-making-connection-request/5701 "2024-07-08T06:03:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![apleskacz](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/apleskacz/32/2067_2.png) [@apleskacz](https://forum.genieacs.com/u/apleskacz)\
**Post date:** [July 8, 2024, 6:03am UTC](https://forum.genieacs.com/t/how-genieacs-recognize-when-to-use-xmpp-while-making-connection-request/5701/1 "2024-07-08T06:03:14Z")

</div>

@zaidka could you please help me to understand how the GenieACS is making decision on how to communicate with the CWMP client/CPE via Connection Request in the scenario when the CPE/client has XMPP configured?  
Is there specific parameter the GenieACS is checking in the data base to decide whether use direct connection for Connection Request or making it via XMPP server?  
I can only suspect this parameters may be:  
Device.ManagementServer.ConnReqJabberID  
or  
Device.XMPP.Connection.{i}.JabberID  
I will be appreciated for you answer.

---

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [July 11, 2024, 5:55pm UTC](https://forum.genieacs.com/t/how-genieacs-recognize-when-to-use-xmpp-while-making-connection-request/5701/2 "2024-07-11T17:55:10Z")

</div>

It attempts to send an XMPP connection request if the following two conditions are met:

- The environment variable `GENIEACS_XMPP_JID` is set.
- The parameter `ManagementServer.ConnReqJabberID` holds a _truthy_ value (e.g. non-empty string)

Otherwise, it falls back to a regular HTTP-based connection request.
