Daniel-Constantin Mierla wrote:
Hello,
On 05/12/2009 06:05 PM, Joao Gomes Pereira wrote:
Hello to all Im trying to use Kamailio with xmpp module in Component Mode. So, I have Jabberd2 installed and running in the same machine, and this is my config:
loadmodule "xmpp.so"
modparam("xmpp", "domain_separator", "*") modparam("xmpp", "gateway_domain", "jabber.servebeer.com") modparam("xmpp", "xmpp_domain", "jabber.servebeer.com") modparam("xmpp", "xmpp_host", "my_server_IP") modparam("xmpp", "xmpp_port", 5347)
if (method == "MESSAGE") { log("*** xmpp-handled MESSAGE message.\n");
if (xmpp_send_message()) { t_reply("200", "Accepted"); } else { t_reply("404", "Not found"); } return;
}
but I'm receiving this errors:
kamailio[8218]: ERROR:xmpp:cmd_send_message: invalid content-type 0x300ff
What could be the problem?
what is your sip client? Can you paste here the SIP MESSAGE captured with ngrep? It might be a message with html body which is not supported by xmpp.
Cheers, Daniel
Hello Im using X-lite 3.0
Here are my SIP MESSAGEs (from joao@startel.homeip.net to coreia@jabberstartel.servebeer.com): joao is a SIP user (X-Lite) registered in Kamailio coreia is a Jabber client (Miranda) registered in Jabberd2
U 195.23.180.213:36626 -> 213.63.185.59:5060 MESSAGE sip:coreia@jabberstartel.servebeer.com SIP/2.0..Via: SIP/2.0/U DP 195.23.180.213:36626;branch=z9hG4bK-d8754z-705c4a2848647d4e-1---d87 54z-;rport..Max-Forwards: 70..To: "coreia"<sip:coreia@jabberstartel.se rvebeer.com>..From: "joao"sip:joao@startel.homeip.net;tag=d2308d48.. Call-ID: ZTU2ZThhMDY3NmYzNjUwOGRhOWMwYTU2NGI3MDQ4NGM...CSeq: 2 MESSAGE ..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SU BSCRIBE, INFO..Content-Type: application/im-iscomposing+xml..User-Agen t: X-Lite release 1103d stamp 53117..Content-Length: 262....<?xml vers ion='1.0' encoding='UTF-8'?>.<isComposing xmlns='urn:ietf:params:xml:n s:im-iscomposing'. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instan ce'>. <state>active</state>. <contenttype>text/html</contenttype
. <refresh>60</refresh>.</isComposing>
U 195.23.180.213:36626 -> 213.63.185.59:5060 MESSAGE sip:coreia@jabberstartel.servebeer.com SIP/2.0..Via: SIP/2.0/U DP 195.23.180.213:36626;branch=z9hG4bK-d8754z-705c4a2848647d4e-1---d87 54z-;rport..Max-Forwards: 70..To: "coreia"<sip:coreia@jabberstartel.se rvebeer.com>..From: "joao"sip:joao@startel.homeip.net;tag=d2308d48.. Call-ID: ZTU2ZThhMDY3NmYzNjUwOGRhOWMwYTU2NGI3MDQ4NGM...CSeq: 2 MESSAGE ..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SU BSCRIBE, INFO..Content-Type: application/im-iscomposing+xml..User-Agen t: X-Lite release 1103d stamp 53117..Content-Length: 262....<?xml vers ion='1.0' encoding='UTF-8'?>.<isComposing xmlns='urn:ietf:params:xml:n s:im-iscomposing'. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instan ce'>. <state>active</state>. <contenttype>text/html</contenttype
. <refresh>60</refresh>.</isComposing>
# U 195.23.180.213:36626 -> 213.63.185.59:5060 MESSAGE sip:coreia@jabberstartel.servebeer.com SIP/2.0..Via: SIP/2.0/U DP 195.23.180.213:36626;branch=z9hG4bK-d8754z-705c4a2848647d4e-1---d87 54z-;rport..Max-Forwards: 70..To: "coreia"<sip:coreia@jabberstartel.se rvebeer.com>..From: "joao"sip:joao@startel.homeip.net;tag=d2308d48.. Call-ID: ZTU2ZThhMDY3NmYzNjUwOGRhOWMwYTU2NGI3MDQ4NGM...CSeq: 2 MESSAGE ..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SU BSCRIBE, INFO..Content-Type: application/im-iscomposing+xml..User-Agen t: X-Lite release 1103d stamp 53117..Content-Length: 262....<?xml vers ion='1.0' encoding='UTF-8'?>.<isComposing xmlns='urn:ietf:params:xml:n s:im-iscomposing'. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instan ce'>. <state>active</state>. <contenttype>text/html</contenttype
. <refresh>60</refresh>.</isComposing>
#
U 195.23.180.213:36626 -> 213.63.185.59:5060 MESSAGE sip:coreia@jabberstartel.servebeer.com SIP/2.0..Via: SIP/2.0/U DP 195.23.180.213:36626;branch=z9hG4bK-d8754z-705c4a2848647d4e-1---d87 54z-;rport..Max-Forwards: 70..To: "coreia"<sip:coreia@jabberstartel.se rvebeer.com>..From: "joao"sip:joao@startel.homeip.net;tag=d2308d48.. Call-ID: ZTU2ZThhMDY3NmYzNjUwOGRhOWMwYTU2NGI3MDQ4NGM...CSeq: 2 MESSAGE ..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SU BSCRIBE, INFO..Content-Type: application/im-iscomposing+xml..User-Agen t: X-Lite release 1103d stamp 53117..Content-Length: 262....<?xml vers ion='1.0' encoding='UTF-8'?>.<isComposing xmlns='urn:ietf:params:xml:n s:im-iscomposing'. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instan ce'>. <state>active</state>. <contenttype>text/html</contenttype
. <refresh>60</refresh>.</isComposing>
#
U 195.23.180.213:36626 -> 213.63.185.59:5060 MESSAGE sip:coreia@jabberstartel.servebeer.com SIP/2.0..Via: SIP/2.0/U DP 195.23.180.213:36626;branch=z9hG4bK-d8754z-705c4a2848647d4e-1---d87 54z-;rport..Max-Forwards: 70..To: "coreia"<sip:coreia@jabberstartel.se rvebeer.com>..From: "joao"sip:joao@startel.homeip.net;tag=d2308d48.. Call-ID: ZTU2ZThhMDY3NmYzNjUwOGRhOWMwYTU2NGI3MDQ4NGM...CSeq: 2 MESSAGE ..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SU BSCRIBE, INFO..Content-Type: application/im-iscomposing+xml..User-Agen t: X-Lite release 1103d stamp 53117..Content-Length: 262....<?xml vers ion='1.0' encoding='UTF-8'?>.<isComposing xmlns='urn:ietf:params:xml:n s:im-iscomposing'. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instan ce'>. <state>active</state>. <contenttype>text/html</contenttype
. <refresh>60</refresh>.</isComposing>
#
U 195.23.180.213:36626 -> 213.63.185.59:5060 MESSAGE sip:coreia@jabberstartel.servebeer.com SIP/2.0..Via: SIP/2.0/U DP 195.23.180.213:36626;branch=z9hG4bK-d8754z-705c4a2848647d4e-1---d87 54z-;rport..Max-Forwards: 70..To: "coreia"<sip:coreia@jabberstartel.se rvebeer.com>..From: "joao"sip:joao@startel.homeip.net;tag=d2308d48.. Call-ID: ZTU2ZThhMDY3NmYzNjUwOGRhOWMwYTU2NGI3MDQ4NGM...CSeq: 2 MESSAGE ..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SU BSCRIBE, INFO..Content-Type: application/im-iscomposing+xml..User-Agen t: X-Lite release 1103d stamp 53117..Content-Length: 262....<?xml vers ion='1.0' encoding='UTF-8'?>.<isComposing xmlns='urn:ietf:params:xml:n s:im-iscomposing'. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instan ce'>. <state>active</state>. <contenttype>text/html</contenttype
. <refresh>60</refresh>.</isComposing>
#
Thanks Regards Joao Pereira