Hi,<br><br>I'm trying to set up OpenSER as a presence server without using force_active (ie to allow authorization). I have two x-lite clients which register with OpenSER and can subscribe to each other. I get a prompt on each client asking whether to authorize the other, but if I click yes no presence info is displayed. If I restart either of the x-lites the authorization message appears again. I know this is because the subs_status field of the watchers table is not being changed from "pending" to "active". If I run a packet capture when starting up x-lite, it sends the 200 OK to the notify provided by OpenSER, but when I click "allow" in the authorization box, nothing is sent to OpenSER.
<br><br>Has anyone got presence working with x-lite without using force_active? If so, is there anything I'm missing? My config file is as follows:<br><br>debug=7 # debug level (cmd line: -dddddddddd)<br>fork=no
<br>log_stderror=yes<br>check_via=no # (cmd. line: -v)<br>dns=no # (cmd. line: -r)<br>rev_dns=no # (cmd. line: -R)<br>listen=udp:<a href="http://192.168.1.107:5060" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
192.168.1.107:5060</a><br>children=4<br>
<br>mpath="/usr/local/lib/openser/modules/"<br>loadmodule "mysql.so"<br>loadmodule "sl.so"<br>loadmodule "usrloc.so"<br>loadmodule "registrar.so"<br>loadmodule "maxfwd.so
"<br>loadmodule "textops.so"<br>loadmodule "tm.so"<br>loadmodule "rr.so"<br>loadmodule "presence.so"<br>loadmodule "avpops.so"<br>loadmodule "mi_fifo.so"<br>
<br>modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")<br>modparam("usrloc", "db_mode", 3)<br>modparam("rr", "enable_full_lr", 1)<br>modparam("presence|^usrloc$", "db_url","
mysql://user:pass@localhost/openser")<br>modparam("presence", "force_active", 0)<br>modparam("presence", "max_expires", 3600)<br>modparam("presence", "server_address", "sip:
<a href="http://192.168.1.107:5060" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.107:5060</a>")<br><br>route{<br> if (!mf_process_maxfwd_header("10")) {<br> sl_send_reply("483","Too Many Hops");
<br> exit;
<br> };<br> if (msg:len >= 2048 ) {<br> sl_send_reply("513", "Message too big");<br> exit;<br> };<br><br> if (!is_method("REGISTER"))<br> record_route();
<br>
<br> if (loose_route()) {<br> route(1);<br> exit;<br> };<br><br> if (!uri==myself) {<br> route(1);<br> exit;<br> };<br><br> if (uri==myself) {<br> if (method=="REGISTER") {
<br> save("location");<br> exit;<br> };<br><br> if (!lookup("location")) {<br> sl_send_reply("404", "Not Found");<br> exit;
<br> };<br> };<br> if( is_method("PUBLISH|SUBSCRIBE")) {<br> route(2);<br> exit;<br> };<br><br> route(1);<br>}<br>route[1] {<br> if (!t_relay()) {<br> sl_reply_error();
<br> };<br> exit;<br>}<br>route[2]<br>{<br> sl_send_reply("100","trying");<br> if (!t_newtran())<br> {<br> sl_reply_error();<br> exit;<br> };<br><br> if(is_method("PUBLISH"))
<br> {<br> handle_publish();<br> t_release();<br> }<br> else if( is_method("SUBSCRIBE"))<br> {<br> handle_subscribe();<br> t_release();<br> };<br> <br> exit;<br>
}
<br><br>Thanks in advance,<br><br>Sebastian<br><br>-- <br>Sebastian Murray-Roberts (B.Sc Hons)<br>Server Developer<br>Yeigo Communications<br><a href="http://www.yeigo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.yeigo.com</a><br>Tel: +27 21 409 7807
<br>Fax: +27 21 409 7050<br>Mobile: +27 72 183 5998<br><br>CONFIDENTIALITY NOTICE: E-MAIL<br>This e-mail is confidential. If you receive it by mistake, please delete it and notify the sender immediately. If you are not the intended recipient, you may not use, disclose, distribute, copy or publish any information contained herein.