loadmodule "presence.so" modparam("presence", "db_url", "mysql://opensips:xxx@192.168.1.19/opensips") modparam("presence", "server_address", "sip:sipb.provider.com:5060") loadmodule "presence_xml.so" modparam("presence_xml", "db_url", "mysql://opensips:xxx@192.168.1.19/opensips") modparam("presence_xml", "force_active", 1) loadmodule "presence_dialoginfo.so" modparam("presence_dialoginfo", "force_single_dialog", 1) loadmodule "pua.so" modparam("pua", "db_url", "mysql://opensips:xxx@192.168.1.19/opensips") loadmodule "pua_dialoginfo.so" modparam("pua_dialoginfo", "presence_server", "sip:sipb.provider.com:5060") #--- # Request route 'presence' #--- route[14] { xlog("L_INFO", "$ci - subscribe presence handler - M=$rm RURI=$ru F=$fu T=$tu IP=$si\n"); # absorb retransmissions if (!t_newtran()) { sl_reply_error(); exit; }; if(is_method("PUBLISH")) { handle_publish(); }. else if( is_method("SUBSCRIBE")) { handle_subscribe(); }; exit; }