Gateway interaction is described by XEP-0100. The query xmlns (namespace) used for this is same as IN-Band registration, that is…