Hi Anca<br>I do not see any error, but I see some warning in tm module. Not sure if they are of concern. I have also pasted the full config file for your review. Yes I did follow the instruction from the opensips example link. Note that I'm using kamailio 1.5.1 because I tried purple initially and then I swityched to pua_xmpp since purple is still new and needs more work. Hope it is ok to use Kamailio for pua_xmpp as well.<br>
<br>I have one question about tls and non-tls. Is it a must that I should use only tls version if I want opensips to talk to other publisc xmpp servers like gtalk etc. I know that jabberd2 has the required tls support to talk to gtalk etc, but should the opensips be also use tls version ?<br>
<br><br>Listening on<br> udp: 172.16.0.141 [172.16.0.141]:5060<br>Aliases:<br> udp: <a href="http://xmpp1.smithmicro.com:5060">xmpp1.smithmicro.com:5060</a><br><br>Jun 23 08:28:23 [2675] INFO:core:init_tcp: using epoll_lt as the TCP io watch method (auto detected)<br>
Jun 23 08:28:23 [2677] NOTICE:core:main: version: kamailio 1.5.1-tls (i386/linux)<br>Jun 23 08:28:23 [2677] INFO:core:main: using 32 Mb shared memory<br>Jun 23 08:28:23 [2677] INFO:core:main: using 4 Mb private memory per process<br>
Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module db_mysql<br>Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module mi_fifo<br>Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module sl<br>Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module tm<br>
kmilo:/usr/local/etc/kamailio# Jun 23 08:28:23 [2677] INFO:tm:mod_init: fr_inv_timer_next value is <30><br>Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module rr<br>Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module pv<br>
Jun 23 08:28:23 [2677] INFO:pv:shvar_init_locks: locks array size 16<br>Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module maxfwd<br>Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module usrloc<br>Jun 23 08:28:23 [2677] INFO:usrloc:ul_init_locks: locks array size 512<br>
Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module registrar<br>Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module textops<br>Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module uri_db<br>
Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module siputils<br>Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module xlog<br>Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module acc<br>Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module auth<br>
Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module auth_db<br>Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module presence<br>Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module presence_xml<br>
Jun 23 08:28:23 [2677] INFO:core:init_mod: initializing module pua<br>Jun 23 08:28:24 [2677] INFO:core:init_mod: initializing module xmpp<br>Jun 23 08:28:24 [2677] INFO:core:init_mod: initializing module pua_xmpp<br>Jun 23 08:28:24 [2677] INFO:core:probe_max_receive_buffer: using a UDP receive buffer of 255 kb<br>
Jun 23 08:28:30 [2681] INFO:presence:send_notify_request: NOTIFY <a href="mailto:sip%3Amsivaraman@172.16.0.141">sip:msivaraman@172.16.0.141</a> via sip:msivaraman@172.16.1.125:7489;transport=udp on behalf of <a href="mailto:sip%3Amsivaraman@172.16.0.141">sip:msivaraman@172.16.0.141</a> for event presence.winfo<br>
Jun 23 08:28:30 [2678] INFO:presence:send_notify_request: NOTIFY <a href="mailto:sip%3Amsivaraman@172.16.0.141">sip:msivaraman@172.16.0.141</a> via sip:msivaraman@172.16.1.125:7489;transport=udp on behalf of <a href="mailto:sip%3Amsivaraman@172.16.0.141">sip:msivaraman@172.16.0.141</a> for event presence.winfo<br>
Jun 23 08:28:30 [2678] INFO:presence:send_notify_request: NOTIFY <a href="mailto:sip%3Amsivaraman@172.16.0.141">sip:msivaraman@172.16.0.141</a> via sip:msivaraman@172.16.1.125:7489;transport=udp on behalf of <a href="mailto:sip%3Amsivaraman@172.16.0.141">sip:msivaraman@172.16.0.141</a> for event presence<br>
Jun 23 08:28:30 [2678] INFO:presence:send_notify_request: NOTIFY <a href="mailto:sip%3Amsivaraman@172.16.0.141">sip:msivaraman@172.16.0.141</a> via sip:msivaraman@172.16.1.125:7489;transport=udp on behalf of <a href="mailto:sip%3Arboxall@172.16.0.141">sip:rboxall@172.16.0.141</a> for event presence<br>
Jun 23 08:28:30 [2678] INFO:presence:send_notify_request: NOTIFY <a href="mailto:sip%3Amsivaraman@172.16.0.141">sip:msivaraman@172.16.0.141</a> via sip:msivaraman@172.16.1.125:7489;transport=udp on behalf of sip:jabb2*<a href="http://xmpp1.smithmicro.com">xmpp1.smithmicro.com</a>@<a href="http://sip-xmpp1.smithmicro.com">sip-xmpp1.smithmicro.com</a> for event presence<br>
Jun 23 08:28:30 [2680] INFO:presence:send_notify_request: NOTIFY sip:jabb2*<a href="http://xmpp1.smithmicro.com">xmpp1.smithmicro.com</a>@<a href="http://sip-xmpp1.smithmicro.com">sip-xmpp1.smithmicro.com</a> via sip:<a href="http://172.16.0.141:5060">172.16.0.141:5060</a> on behalf of sip:jabb2*<a href="http://xmpp1.smithmicro.com">xmpp1.smithmicro.com</a>@<a href="http://sip-xmpp1.smithmicro.com">sip-xmpp1.smithmicro.com</a> for event presence.winfo<br>
Jun 23 08:28:30 [2679] WARNING:tm:t_unref: script writer didn't release transaction<br>Jun 23 08:28:31 [2680] INFO:presence:send_notify_request: NOTIFY <a href="mailto:sip%3Amsivaraman@172.16.0.141">sip:msivaraman@172.16.0.141</a> via sip:msivaraman@172.16.1.125:7489;transport=udp on behalf of sip:jabb1*<a href="http://xmpp1.smithmicro.com">xmpp1.smithmicro.com</a>@<a href="http://sip-xmpp1.smithmicro.com">sip-xmpp1.smithmicro.com</a> for event presence<br>
Jun 23 08:28:31 [2681] INFO:presence:send_notify_request: NOTIFY sip:jabb1*<a href="http://xmpp1.smithmicro.com">xmpp1.smithmicro.com</a>@<a href="http://sip-xmpp1.smithmicro.com">sip-xmpp1.smithmicro.com</a> via sip:<a href="http://172.16.0.141:5060">172.16.0.141:5060</a> on behalf of sip:jabb1*<a href="http://xmpp1.smithmicro.com">xmpp1.smithmicro.com</a>@<a href="http://sip-xmpp1.smithmicro.com">sip-xmpp1.smithmicro.com</a> for event presence.winfo<br>
Jun 23 08:28:31 [2679] WARNING:tm:t_unref: script writer didn't release transaction<br>Jun 23 08:28:31 [2679] INFO:presence:send_notify_request: NOTIFY <a href="mailto:sip%3Amsivaraman@172.16.0.141">sip:msivaraman@172.16.0.141</a> via sip:msivaraman@172.16.1.125:7489;transport=udp on behalf of sip:smvasagam2000*<a href="http://gmail.com">gmail.com</a>@<a href="http://sip-xmpp1.smithmicro.com">sip-xmpp1.smithmicro.com</a> for event presence<br>
Jun 23 08:28:31 [2679] INFO:presence:send_notify_request: NOTIFY sip:smvasagam2000*<a href="http://gmail.com">gmail.com</a>@<a href="http://sip-xmpp1.smithmicro.com">sip-xmpp1.smithmicro.com</a> via sip:<a href="http://172.16.0.141:5060">172.16.0.141:5060</a> on behalf of sip:smvasagam2000*<a href="http://gmail.com">gmail.com</a>@<a href="http://sip-xmpp1.smithmicro.com">sip-xmpp1.smithmicro.com</a> for event presence.winfo<br>
Jun 23 08:28:31 [2681] WARNING:tm:t_unref: script writer didn't release transaction<br>Jun 23 08:28:34 [2678] INFO:presence:send_notify_request: NOTIFY <a href="mailto:sip%3Amsivaraman@172.16.0.141">sip:msivaraman@172.16.0.141</a> via sip:msivaraman@172.16.1.125:7489;transport=udp on behalf of <a href="mailto:sip%3Amsivaraman@172.16.0.141">sip:msivaraman@172.16.0.141</a> for event presence<br>
Jun 23 08:28:38 [2681] WARNING:tm:t_unref: script writer didn't release transaction<br>Jun 23 08:28:38 [2679] WARNING:tm:t_unref: script writer didn't release transaction<br>Jun 23 08:28:38 [2681] WARNING:tm:t_unref: script writer didn't release transaction<br>
Jun 23 08:28:46 [2678] WARNING:tm:t_unref: script writer didn't release transaction<br>Jun 23 08:28:46 [2680] WARNING:tm:t_unref: script writer didn't release transaction<br>Jun 23 08:28:46 [2678] WARNING:tm:t_unref: script writer didn't release transaction<br>
Jun 23 08:28:54 [2679] WARNING:tm:t_unref: script writer didn't release transaction<br>Jun 23 08:28:54 [2680] WARNING:tm:t_unref: script writer didn't release transaction<br>Jun 23 08:28:54 [2679] WARNING:tm:t_unref: script writer didn't release transaction<br>
<br><br>config File :<br>---------------------<br><br>#<br># $Id: kamailio.cfg 5800 2009-04-20 11:01:49Z miconda $<br>#<br># Kamailio (OpenSER) SIP Server - basic configuration script<br># - web: <a href="http://www.kamailio.org">http://www.kamailio.org</a><br>
# - svn: <a href="http://openser.svn.sourceforge.net/viewvc/openser/">http://openser.svn.sourceforge.net/viewvc/openser/</a><br>#<br># Direct your questions about this file to: <<a href="mailto:users@lists.kamailio.org">users@lists.kamailio.org</a>><br>
#<br># Refer to the Core CookBook at <a href="http://www.kamailio.org/dokuwiki/doku.php">http://www.kamailio.org/dokuwiki/doku.php</a><br># for an explanation of possible statements, functions and parameters.<br>#<br># There are comments showing how to enable different features in th econfig<br>
# file. Such commented code starts with #X# where X is a letter to identify<br># a feature. Delete entire #X# if you want to enable that feature. Next are<br># sed commands that help you enable such features.<br>#<br>####### Global Parameters #########<br>
<br>debug=3<br>log_stderror=no<br>log_facility=LOG_LOCAL0<br><br>fork=yes<br>children=4<br><br>/* uncomment the following lines to enable debugging */<br>#debug=6<br>#fork=no<br>log_stderror=yes<br><br>/* uncomment the next line to disable TCP (default on) */<br>
#disable_tcp=yes<br><br>/* uncomment the next line to enable the auto temporary blacklisting of<br> not available destinations (default disabled) */<br>#disable_dns_blacklist=no<br><br>/* uncomment the next line to enable IPv6 lookup after IPv4 dns<br>
lookup failures (default disabled) */<br>#dns_try_ipv6=yes<br><br>/* uncomment the next line to disable the auto discovery of local aliases<br> based on revers DNS on IPs (default on) */<br>#auto_aliases=no<br><br>/* uncomment the following lines to enable TLS support (default off) */<br>
#disable_tls = no<br>#listen = tls:your_IP:5061<br>#tls_verify_server = 1<br>#tls_verify_client = 1<br>#tls_require_client_certificate = 0<br>#tls_method = TLSv1<br>#tls_certificate = "/usr/local/etc/kamailio/tls/user/user-cert.pem"<br>
#tls_private_key = "/usr/local/etc/kamailio/tls/user/user-privkey.pem"<br>#tls_ca_list = "/usr/local/etc/kamailio/tls/user/user-calist.pem"<br><br><br>port=5060<br><br>/* uncomment and configure the following line if you want Kamailio to<br>
bind on a specific interface/port/proto (default bind on all available) */<br>listen=udp:<a href="http://172.16.0.141:5060">172.16.0.141:5060</a><br><br>####### Modules Section ########<br><br>#set module path<br>mpath="/usr/local/lib/kamailio/modules/"<br>
<br>/* uncomment next line for MySQL DB support */<br>loadmodule "db_mysql.so"<br>loadmodule "mi_fifo.so"<br>loadmodule "sl.so"<br>loadmodule "tm.so"<br>loadmodule "rr.so"<br>
loadmodule "pv.so"<br>loadmodule "maxfwd.so"<br>loadmodule "usrloc.so"<br>loadmodule "registrar.so"<br>loadmodule "textops.so"<br>loadmodule "uri_db.so"<br>loadmodule "siputils.so"<br>
loadmodule "xlog.so"<br>loadmodule "acc.so"<br>/* uncomment next lines for MySQL based authentication support<br> NOTE: a DB (like db_mysql) module must be also loaded */<br>loadmodule "auth.so"<br>
loadmodule "auth_db.so"<br><br>/* uncomment next line for aliases support<br> NOTE: a DB (like db_mysql) module must be also loaded */<br>#loadmodule "alias_db.so"<br>/* uncomment next line for multi-domain support<br>
NOTE: a DB (like db_mysql) module must be also loaded<br> NOTE: be sure and enable multi-domain support in all used modules<br> (see "multi-module params" section ) */<br>#loadmodule "domain.so"<br>
/* uncomment the next two lines for presence server support<br> NOTE: a DB (like db_mysql) module must be also loaded */<br>loadmodule "presence.so"<br>loadmodule "presence_xml.so"<br>loadmodule "pua.so"<br>
loadmodule "xmpp.so"<br>loadmodule "pua_xmpp.so"<br>#loadmodule "purple.so"<br><br>#n#loadmodule "nathelper.so"<br><br># ----------------- setting module-specific parameters ---------------<br>
<br><br># ----- mi_fifo params -----<br>modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")<br><br><br># ----- rr params -----<br># add value to ;lr param to cope with most of the UAs<br>modparam("rr", "enable_full_lr", 1)<br>
# do not append from tag to the RR (no need for this script)<br>modparam("rr", "append_fromtag", 0)<br><br><br># ----- rr params -----<br>modparam("registrar", "method_filtering", 1)<br>
/* uncomment the next line to disable parallel forking via location */<br># modparam("registrar", "append_branches", 0)<br>/* uncomment the next line not to allow more than 10 contacts per AOR */<br>#modparam("registrar", "max_contacts", 10)<br>
<br><br># ----- uri_db params -----<br>/* by default we disable the DB support in the module as we do not need it<br> in this configuration */<br>modparam("uri_db", "use_uri_table", 0)<br>modparam("uri_db", "db_url", "")<br>
<br><br># ----- acc params -----<br>/* what sepcial events should be accounted ? */<br>modparam("acc", "early_media", 1)<br>modparam("acc", "report_ack", 1)<br>modparam("acc", "report_cancels", 1)<br>
/* by default ww do not adjust the direct of the sequential requests.<br> if you enable this parameter, be sure the enable "append_fromtag"<br> in "rr" module */<br>modparam("acc", "detect_direction", 0)<br>
/* account triggers (flags) */<br>modparam("acc", "failed_transaction_flag", 3)<br>modparam("acc", "log_flag", 1)<br>modparam("acc", "log_missed_flag", 2)<br>modparam("acc", "log_extra",<br>
"src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")<br>/* uncomment the following lines to enable DB accounting also */<br>#c#modparam("acc", "db_flag", 1)<br>#c#modparam("acc", "db_missed_flag", 2)<br>
#c#modparam("domain", "db_url",<br>#c# "mysql://<a href="http://openser:openserrw@172.16.0.141/openser">openser:openserrw@172.16.0.141/openser</a>")<br>#c#modparam("acc", "db_extra",<br>
#c# "src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")<br><br><br># ----- usrloc params -----<br>/* uncomment the following lines if you want to enable DB persistency<br> for location entries */<br>
modparam("usrloc", "db_mode", 2)<br>modparam("usrloc", "db_url",<br> "mysql://<a href="http://openser:openserrw@172.16.0.141/openser">openser:openserrw@172.16.0.141/openser</a>")<br>
<br># ----- auth_db params -----<br>/* uncomment the following lines if you want to enable the DB based<br> authentication */<br>modparam("auth_db", "calculate_ha1", no)<br>modparam("auth_db", "password_column", "password")<br>
modparam("auth_db", "db_url",<br> "mysql://<a href="http://openser:openserrw@172.16.0.141/openser">openser:openserrw@172.16.0.141/openser</a>")<br>modparam("auth_db", "load_credentials", "")<br>
<br><br># ----- alias_db params -----<br>/* uncomment the following lines if you want to enable the DB based<br> aliases */<br>#modparam("alias_db", "db_url",<br># "mysql://<a href="http://openser:openserrw@172.16.0.141/openser">openser:openserrw@172.16.0.141/openser</a>")<br>
<br><br># ----- domain params -----<br>/* uncomment the following lines to enable multi-domain detection<br> support */<br>#modparam("domain", "db_url",<br># "mysql://<a href="http://openser:openserrw@172.16.0.141/openser">openser:openserrw@172.16.0.141/openser</a>")<br>
#modparam("domain", "db_mode", 1) # Use caching<br><br><br># ----- multi-module params -----<br>/* uncomment the following line if you want to enable multi-domain support<br> in the modules (dafault off) */<br>
#modparam("alias_db|auth_db|usrloc|uri_db", "use_domain", 1)<br><br><br># ----- presence params -----<br>/* uncomment the following lines if you want to enable presence */<br>modparam("presence|presence_xml", "db_url",<br>
"mysql://<a href="http://openser:openserrw@172.16.0.141/openser">openser:openserrw@172.16.0.141/openser</a>")<br>modparam("presence_xml", "force_active", 1)<br>modparam("presence", "server_address", "sip:<a href="http://172.16.0.141:5060">172.16.0.141:5060</a>")<br>
<br># -- pua and pua_xmpp params -- # new params mani added<br>modparam("pua", "db_url", "mysql://<a href="http://openser:openserrw@172.16.0.141/openser">openser:openserrw@172.16.0.141/openser</a>")<br>
modparam("pua_xmpp", "server_address", "sip:<a href="http://172.16.0.141:5060">172.16.0.141:5060</a>")<br><br># -- xmpp parameters -- # new params mani added<br>modparam("xmpp", "backend", "component")<br>
modparam("xmpp", "domain_separator", "*")<br>modparam("xmpp", "gateway_domain", "<a href="http://sip-xmpp1.mydomain.com">sip-xmpp1.mydomain.com</a>")<br>modparam("xmpp", "xmpp_domain", "<a href="http://xmpp-sip1.mydomain.com">xmpp-sip1.mydomain.com</a>")<br>
modparam("xmpp", "xmpp_host", "<a href="http://xmpp1.mydomain.com">xmpp1.mydomain.com</a>")<br>modparam("xmpp", "xmpp_password", "secret")<br><br># ---- purple params -----<br>
#modparam("purple", "db_url", "mysql://<a href="http://openser:openserrw@172.16.0.141/openser">openser:openserrw@172.16.0.141/openser</a>")<br>#modparam("purple", "db_table", "purplemap")<br>
#modparam("purple", "httpProxy_host", "10.26.52.12")<br>#modparam("purple", "httpProxy_port", 3128)<br><br><br># -- nathelper<br>#n#modparam("nathelper", "rtpproxy_sock", "udp:<a href="http://127.0.0.1:7722">127.0.0.1:7722</a>")<br>
#n#modparam("nathelper", "natping_interval", 30)<br>#n#modparam("nathelper", "ping_nated_only", 1)<br>#n#modparam("nathelper", "sipping_bflag", 7)<br>#n#modparam("nathelper", "sipping_from", "<a href="mailto:sip%3Apinger@kamailio.org">sip:pinger@kamailio.org</a>")<br>
#n#modparam("registrar|nathelper", "received_avp", "$avp(i:80)")<br>#n#modparam("usrloc", "nat_bflag", 6)<br><br><br>####### Routing Logic ########<br><br># main request routing logic<br>
<br>route{<br><br> # initial sanity checks -- messages with<br> # max_forwards==0, or excessively long requests<br> if (!mf_process_maxfwd_header("10")) {<br> sl_send_reply("483","Too Many Hops");<br>
exit;<br> };<br><br> if (msg:len >= 2048 ) {<br> sl_send_reply("513", "Message too big");<br> exit;<br> };<br><br> # we record-route all messages -- to make sure that<br>
# subsequent messages will go through our proxy; that's<br> # particularly good if upstream and downstream entities<br> # use different transport protocol<br> if (!method=="REGISTER")<br>
record_route();<br><br> # subsequent messages withing a dialog should take the<br> # path determined by record-routing<br> if (loose_route()) {<br> # mark routing logic in request<br>
append_hf("P-hint: rr-enforced\r\n");<br> route(1);<br> };<br> if(method == "INVITE")<br> setflag(5);<br><br> if( uri=~"<a href="mailto:sip%3A.%2B@sip-xmpp1.mydomain.com">sip:.+@sip-xmpp1.mydomain.com</a>" ||<br>
uri=~"<a href="mailto:sip%3A.%2B@sip-xmpp1.mydomain.com">sip:.+@sip-xmpp1.mydomain.com</a>")<br> {<br> if( is_method("PUBLISH|SUBSCRIBE|NOTIFY"))<br> route(2);<br>
}<br><br> if( uri=~"<a href="mailto:sip%3A.%2B@sip-xmpp1.mydomain.com">sip:.+@sip-xmpp1.mydomain.com</a>")<br> {<br> # absorb retransmissions ###<br> if (!t_newtran()) {<br>
sl_reply_error();<br> return;<br> }<br> if (method == "MESSAGE") {<br> log("*** xmpp-handled MESSAGE message.\n");<br>
if (xmpp_send_message()) {<br> t_reply("200", "Accepted");<br> } else {<br> t_reply("404", "Not found");<br>
}<br> return;<br> }else {<br> t_reply("403","not supported");<br> exit;<br> }<br>
<br> }<br><br> if (!uri==myself) {<br> # mark routing logic in request<br> append_hf("P-hint: outbound\r\n");<br> # if you have some interdomain connections via TLS<br>
#if(uri=~"@<a href="http://tls_domain1.net">tls_domain1.net</a>") {<br> # t_relay("tls:<a href="http://domain1.net">domain1.net</a>");<br> # exit;<br>
#} else if(uri=~"@<a href="http://tls_domain2.net">tls_domain2.net</a>") {<br> # t_relay("tls:<a href="http://domain2.net">domain2.net</a>");<br> # exit;<br>
#}<br> route(1);<br> };<br><br> # if the request is for other domain use UsrLoc<br> # (in case, it does not work, use the following command<br> # with proper names and addresses in it)<br>
if (uri==myself) {<br><br> if( is_method("PUBLISH|SUBSCRIBE|NOTIFY"))<br> route(2);<br><br> if (method=="REGISTER") {<br><br> if (!www_authorize("", "subscriber"))<br>
{<br> www_challenge("", "0");<br> exit;<br> }<br><br> if (!check_to())<br>
{<br> sl_send_reply("403","Forbidden auth ID");<br> exit;<br> }<br><br> if (!save("location"))<br>
sl_reply_error();<br><br> exit;<br> };<br><br> # native SIP destinations are handled using our USRLOC DB<br> if (!lookup("location")) {<br>
sl_send_reply("404", "Not Found");<br> exit;<br> };<br> append_hf("P-hint: usrloc applied\r\n");<br> };<br>
<br> route(1);<br>}<br><br><br>route[1] {<br> # send it out now; use stateful forwarding as it works reliably<br> # even for UDP2TCP<br> if (!t_relay()) {<br> sl_reply_error();<br>
};<br> exit;<br>}<br><br>route[2]<br>{<br> if ( !t_newtran() ){<br> sl_reply_error();<br> exit;<br> };<br><br> if( is_method("NOTIFY") && uri=~"<a href="mailto:sip%3A.%2B@sip-xmpp1.mydomain.com">sip:.+@sip-xmpp1.mydomain.com</a>"){<br>
log("*** calling pua_xmpp_notify() NOTIFY message.\n");<br> pua_xmpp_notify();<br> t_reply("200", "OK");<br> exit;<br> }<br>
<br> if(is_method("PUBLISH")){<br> handle_publish();<br> #t_release();<br> /* the call to t_release is no longer needed in 1.5 */<br> }<br> else<br>
if( is_method("SUBSCRIBE")){<br> handle_subscribe();<br> if( uri=~"<a href="mailto:sip%3A.%2B@sip-xmpp1.mydomain.com">sip:.+@sip-xmpp1.mydomain.com</a>" && $hdr(Event)== "presence"){<br>
log("*** calling pua_xmpp_req_winfo SUBSCRIBE message.\n");<br> pua_xmpp_req_winfo("$ruri", "$hdr(Expires)");<br> }<br> #t_release();<br>
/* the call to t_release is no longer needed in 1.5 */<br> }<br><br> exit;<br>}<br><br><br><br><br><div class="gmail_quote">On Tue, Jun 23, 2009 at 5:01 AM, Anca Vamanu <span dir="ltr"><<a href="mailto:anca@opensips.org">anca@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Mani,<br>
<br>
Have you followed the config example from this link <a href="http://www.opensips.org/Resources/PuaXmppConfig" target="_blank">http://www.opensips.org/Resources/PuaXmppConfig</a> ?<br>
You must call 'pua_xmpp_req_winfo' for subscriptions to xmpp buddies.<br>
<br>
Do you see any error in the config file?<br>
<br>
regards,<br>
Anca<br>
<br>
mani sivaraman wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
Hello<br>
After a whole week of trying to connect sip and xmpp through opensips I'm not able to add a xmpp buddy in a sip client and vice versa.I'm able to send and receive messages between a sip and xmpp buddy. However the Presence Notification does not work either way. I get NOTIFY for "presence.winfo" event, but NO Notify for "presence" event.<br>
<br>
ANy one succesfully recevied presence event for an xmpp buddy ? Please help<br>
<br>
I'm using Jabberd2 server as my xmpp server on the same physical box as that of opensips.<br>
<br>
Thanks in advance.<br>
Mani<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br>