Hi,<br><br>I&#39;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 &quot;pending&quot; to &quot;active&quot;. 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 &quot;allow&quot; 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&#39;m missing? My config file is as follows:<br><br>debug=7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # debug level (cmd line: -dddddddddd)<br>fork=no
<br>log_stderror=yes<br>check_via=no&nbsp;&nbsp;&nbsp; # (cmd. line: -v)<br>dns=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: -r)<br>rev_dns=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (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>
&nbsp;<br>mpath=&quot;/usr/local/lib/openser/modules/&quot;<br>loadmodule &quot;mysql.so&quot;<br>loadmodule &quot;sl.so&quot;<br>loadmodule &quot;usrloc.so&quot;<br>loadmodule &quot;registrar.so&quot;<br>loadmodule &quot;maxfwd.so

&quot;<br>loadmodule &quot;textops.so&quot;<br>loadmodule &quot;tm.so&quot;<br>loadmodule &quot;rr.so&quot;<br>loadmodule &quot;presence.so&quot;<br>loadmodule &quot;avpops.so&quot;<br>loadmodule &quot;mi_fifo.so&quot;<br>

<br>modparam(&quot;mi_fifo&quot;, &quot;fifo_name&quot;, &quot;/tmp/openser_fifo&quot;)<br>modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 3)<br>modparam(&quot;rr&quot;, &quot;enable_full_lr&quot;, 1)<br>modparam(&quot;presence|^usrloc$&quot;, &quot;db_url&quot;,&quot;
mysql://user:pass@localhost/openser&quot;)<br>modparam(&quot;presence&quot;, &quot;force_active&quot;, 0)<br>modparam(&quot;presence&quot;, &quot;max_expires&quot;, 3600)<br>modparam(&quot;presence&quot;, &quot;server_address&quot;, &quot;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>&quot;)<br><br>route{<br>&nbsp;&nbsp;&nbsp; if (!mf_process_maxfwd_header(&quot;10&quot;)) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply(&quot;483&quot;,&quot;Too Many Hops&quot;);
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;
<br>&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; if (msg:len &gt;=&nbsp; 2048 ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply(&quot;513&quot;, &quot;Message too big&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>&nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp; if (!is_method(&quot;REGISTER&quot;))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; record_route();
<br>
<br>&nbsp;&nbsp;&nbsp; if (loose_route()) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>&nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp; if (!uri==myself) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route(1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>&nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp; if (uri==myself) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (method==&quot;REGISTER&quot;) {
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; save(&quot;location&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!lookup(&quot;location&quot;)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;404&quot;, &quot;Not Found&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; if( is_method(&quot;PUBLISH|SUBSCRIBE&quot;)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route(2);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp; route(1);<br>}<br>route[1] {<br>&nbsp;&nbsp;&nbsp; if (!t_relay()) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_reply_error();
<br>&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; exit;<br>}<br>route[2]<br>{<br>&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;100&quot;,&quot;trying&quot;);<br>&nbsp;&nbsp;&nbsp; if (!t_newtran())<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_reply_error();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>&nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp; if(is_method(&quot;PUBLISH&quot;))
<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; handle_publish();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_release();<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; else if( is_method(&quot;SUBSCRIBE&quot;))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; handle_subscribe();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t_release();<br>&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; 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.&nbsp;&nbsp;If you receive it by mistake, please delete it and notify the sender immediately.&nbsp;&nbsp;If you are not the intended recipient, you may not use, disclose, distribute, copy or publish any information contained herein.