~singpolyma/biboumi

1604320a2398901aa7662ece857e9bd217e8b06a — Florent Le Coz 8 years ago 8b30e31
Make the XMPP component port configurable

fix #2541
2 files changed, 7 insertions(+), 2 deletions(-)

M doc/biboumi.1.md
M src/xmpp/xmpp_component.cpp
M doc/biboumi.1.md => doc/biboumi.1.md +5 -0
@@ 46,6 46,11 @@ The configuration file uses a simple format of the form
  This password must be configured in the XMPP server, associated with the
  external component on *hostname*.

`port`

  The TCP port to use to connect to the local XMPP component. The default
  value is 5347.

`admin`

  The bare JID of the gateway administrator. This JID will have more

M src/xmpp/xmpp_component.cpp => src/xmpp/xmpp_component.cpp +2 -2
@@ 2,8 2,8 @@
#include <logger/logger.hpp>

#include <xmpp/xmpp_component.hpp>
#include <config/config.hpp>
#include <xmpp/jid.hpp>

#include <utils/sha1.hpp>

#include <stdexcept>


@@ 68,7 68,7 @@ XmppComponent::~XmppComponent()

void XmppComponent::start()
{
  this->connect("127.0.0.1", "5347", false);
  this->connect("127.0.0.1", Config::get("port", "5347"), false);
}

bool XmppComponent::is_document_open() const