Hello,
can you post relevant debug messages?
Cheers,
Daniel
On 04/16/07 23:41, Matt Winter wrote:
Hello,
I'm having a problem connecting my openser xmpp module(in component
mode) to a jabber xcp server. Has anyone done this?
Here's my openser.cfg file. Thanks.
# more /etc/openser/openser.cfg
#
# $Id: openser-xmpp.cfg 1827 2007-03-12 15:22:53Z bogdan_iancu $
#
# simple quick-start config script for XMPP GW
#
# make sure in your main SIP server that you send
# only the adequate SIP MESSAGES to XMPP GW
#
#
# ----------- global configuration parameters ------------------------
debug=9 # debug level (cmd line: -dddddddddd)
fork=no
log_stderror=yes # (cmd line: -E)
/* Uncomment these lines to enter debugging mode
fork=no
log_stderror=yes
*/
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
children=4
listen=udp:10.1.1.234:5060
alias=xmpp.jabbersrv.corp.com
# ------------------ module loading ----------------------------------
mpath="/lib/openser/modules/"
loadmodule "sl.so"
loadmodule "tm.so"
loadmodule "rr.so"
loadmodule "maxfwd.so"
loadmodule "textops.so"
loadmodule "mi_fifo.so"
# XMPP
loadmodule "xmpp.so"
modparam("xmpp", "domain_separator", "*")
modparam("xmpp", "gateway_domain",
"xmpp.jabbersrv.corp.com")
modparam("xmpp", "xmpp_domain", "xmpp.jabbersrv.corp.com")
modparam("xmpp", "xmpp_host", "jabbersrv.corp.com")
modparam("xmpp", "backend", "component")
modparam("xmpp", "xmpp_password", "BCD11234DC")
# ----------------- setting module-specific parameters ---------------
# -- mi_fifo params --
modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo_xmpp")
# -- usrloc params --
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
};
if (msg:len >= 2048 ) {
sl_send_reply("513", "Message too big");
exit;
};
### absorb retransmissions ###
if (!t_newtran()) {
sl_reply_error();
return;
}
if (method == "MESSAGE") {
log("*** xmpp-handled MESSAGE message.\n");
if (xmpp_send_message()) {
t_reply("200", "Accepted");
} else {
t_reply("404", "Not found");
}
return;
}
log("*** xmpp: unhandled message type\n");
t_reply("503", "Service unavailable");
return;
}
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users