<div dir="rtl"><div dir="ltr">I continue my attepmts to have some kind of BLF under OpenSIPS. At first I would like OpenSIPS to store the presence information, thus I am using the PUA_LOC features. Here are extracts from my config:</div>
<div dir="ltr"> </div>
<div dir="ltr"></div>
<div dir="ltr">modparam("pua", "db_url", "mysql://openser:XXXXX@localhost/openser")</div>
<div dir="ltr"></div>
<div dir="ltr">modparam("pua_usrloc", "default_domain", "<a href="http://cc.huji.ac.il">cc.huji.ac.il</a>")</div>
<div dir="ltr"></div>
<div dir="ltr">modparam("pua_usrloc", "entity_prefix", "pres")</div>
<div dir="ltr"></div>
<div dir="ltr">modparam("pua_bla", "server_address", "sip:sa@<strong><em>OPENsips-IP-address</em></strong>:5060")</div>
<div dir="ltr"></div>
<div dir="ltr">modparam("pua_bla", "default_domain", "<a href="http://cc.huji.ac.il">cc.huji.ac.il</a>")</div>
<div dir="ltr"></div>
<div dir="ltr">modparam("pua_bla", "header_name", "Sender")</div>
<div dir="ltr"></div>
<div dir="ltr">....</div>
<div dir="ltr"> </div>
<div dir="ltr"></div>
<div dir="ltr">and then during the processing of SIP messages:</div>
<div dir="ltr"></div>
<div dir="ltr"> </div>
<div dir="ltr"></div>
<div dir="ltr">if(is_method("PUBLISH")) {</div>
<div dir="ltr"></div>
<div dir="ltr"> if($hdr(Sender)!= NULL) </div>
<div dir="ltr"> handle_publish("$hdr(Sender)");</div>
<div dir="ltr"> else</div>
<div dir="ltr"></div>
<div dir="ltr"> handle_publish();</div>
<div dir="ltr"> t_release();</div>
<div dir="ltr"></div>
<div dir="ltr">}</div>
<div dir="ltr"></div>
<div dir="ltr">if( is_method("SUBSCRIBE")) {</div>
<div dir="ltr"></div>
<div dir="ltr"> handle_subscribe();</div>
<div dir="ltr"> t_release();</div>
<div dir="ltr">}</div>
<div dir="ltr">if(is_method("NOTIFY")){</div>
<div dir="ltr"></div>
<div dir="ltr"> bla_handle_notify();</div>
<div dir="ltr"> t_reply("200", "OK");</div>
<div dir="ltr"> t_release();")</div>
<div dir="ltr"></div>
<div dir="ltr">}</div>
<div dir="ltr"> </div>
<div dir="ltr">Now, when a Polycom-501 phone tries to publish its presence I get the following error:</div>
<div dir="ltr"> </div>
<div dir="ltr"><span lang="EN">
<p dir="ltr">Dec 23 15:33:23 [2836] ERROR:pua:send_publish: New PUBLISH and no body found- invalid request</p>
<p dir="ltr">Dec 23 15:33:23 [2836] ERROR:pua_usrloc:ul_publish: while sending publish.</p></span><font face="Courier New (Hebrew)" size="2"><font face="Courier New (Hebrew)" size="2"><span lang="HE"></span></font></font></div>
<div dir="ltr"> </div>
<div dir="ltr">The presentity table is empty, but watchers/active_watchers seems to have the other buddies that the phone would like to follow.</div>
<div dir="ltr"> </div>
<div dir="ltr">What causes this error and how can I overcome it?</div>
<div dir="ltr"> </div>
<div dir="ltr"> Thanks! __Yehavi:</div></div>