No subject


Mon Sep 1 20:02:59 CEST 2008


BTW, Polycom version 2.2.2 gets the error reply for the line-seize event and
resfuses to make a call. Version 3.1.1 works ok.

Any idea???

                              Thanks! __Yehavi:

2009/1/5 Anca Vamanu <anca at opensips.org>

> Hi Yehavi,
>
> The explication that Inaki gave about the errors that you see in the log is
> very good. It has to do with you restarting the server, cleaning pua table
> but not location table also.
> But this is only related to pua_usrloc module.
>
> The extracts from your configuration file are all right.  I hope that it is
> complete though and that you do have the processing needed in the main
> route:
> - calling route processing for Notfies with event dialog;sla:
>
> if (uri==myself) {
>
>        if(is_method("NOTIFY") && $hdr(event)=="dialog;sla")
>                route(2);
>
> }
>
>
> - calling 'bla_set_flag' when receiving Register messages from Polycom
> phones:
>
> if (method=="REGISTER") {
>        if($hdr(User-Agent)=~ "PolycomSoundPointIP")
>                bla_set_flag();
>
>
> regards,
> Anca
>
>
> Yehavi Bourvine wrote:
>
>> 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:
>>  modparam("pua", "db_url", "mysql://openser:XXXXX@localhost/openser")
>> modparam("pua_usrloc", "default_domain", "cc.huji.ac.il <
>> http://cc.huji.ac.il>")
>> modparam("pua_usrloc", "entity_prefix", "pres")
>> modparam("pua_bla", "server_address", "sip:sa@
>> */OPENsips-IP-address/*:5060")
>> modparam("pua_bla", "default_domain", "cc.huji.ac.il <
>> http://cc.huji.ac.il>")
>> modparam("pua_bla", "header_name", "Sender")
>> ....
>>  and then during the processing of SIP messages:
>>  if(is_method("PUBLISH")) {
>>     if($hdr(Sender)!= NULL)           handle_publish("$hdr(Sender)");
>>     else
>>            handle_publish();
>>            t_release();
>> }
>> if( is_method("SUBSCRIBE")) {
>>          handle_subscribe();
>>          t_release();
>> }
>> if(is_method("NOTIFY")){
>>        bla_handle_notify();
>>        t_reply("200", "OK");
>>        t_release();")
>> }
>>  Now, when a Polycom-501 phone tries to publish its presence I get the
>> following error:
>>
>> Dec 23 15:33:23 [2836] ERROR:pua:send_publish: New PUBLISH and no body
>> found- invalid request
>>
>> Dec 23 15:33:23 [2836] ERROR:pua_usrloc:ul_publish: while sending publish.
>>
>>  The presentity table is empty, but watchers/active_watchers seems to have
>> the other buddies that the phone would like to follow.
>>  What causes this error and how can I overcome it?
>>                                    Thanks! __Yehavi:
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>

------=_Part_23334_19477344.1231684056025
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr"><div>OK, I have been trying in the last few days to concentrate in making PUA_BLA work with Polycom phones. I am using either 1.4.3 or an SVN version of 1.4 from last week (both behave the same). The Polycom is model 501 running version 3.1.1; From various debugging prints I&#39;ve added I see:</div>

<div>&nbsp;</div>
<div>- The Polycom sends a subscribe for presence for the lines marked as &quot;buddies&quot; and gets a NOTIFY reply which states that the</div>
<div>&nbsp;&nbsp; other buddy is ACTIVE.&nbsp; However, it displays it as Off-line.</div>
<div>&nbsp;</div>
<div>- Once in a while the Polycom sends subscribe for event call-info which is rejected as invalid,</div>
<div>&nbsp; printing an error message to OpenSIPS&#39; console: Missin or unsupported event header value.</div>
<div>&nbsp;</div>
<div>- When I lift the handset it sends subscribe for event line-seize which is also rejected with the</div>
<div>&nbsp; same error above.</div>
<div>&nbsp;</div>
<div>From the code I see that indeed it does not recognise the last two events.</div>
<div>&nbsp;</div>
<div>BTW, Polycom version 2.2.2 gets the error reply for the line-seize event and resfuses to make a call. Version 3.1.1 works ok.</div>
<div>&nbsp;</div>
<div>Any idea???</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks! __Yehavi:<br><br></div>
<div class="gmail_quote">2009/1/5 Anca Vamanu <span dir="ltr">&lt;<a href="mailto:anca at opensips.org">anca at opensips.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Yehavi,<br><br>The explication that Inaki gave about the errors that you see in the log is very good. It has to do with you restarting the server, cleaning pua table but not location table also.<br>
But this is only related to pua_usrloc module.<br><br>The extracts from your configuration file are all right. &nbsp;I hope that it is complete though and that you do have the processing needed in the main route:<br>- calling route processing for Notfies with event dialog;sla:<br>
<br>if (uri==myself) {<br><br>&nbsp; &nbsp; &nbsp; &nbsp;if(is_method(&quot;NOTIFY&quot;) &amp;&amp; $hdr(event)==&quot;dialog;sla&quot;)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;route(2);<br><br>}<br><br><br>- calling &#39;bla_set_flag&#39; when receiving Register messages from Polycom phones:<br>
<br>if (method==&quot;REGISTER&quot;) {<br>&nbsp; &nbsp; &nbsp; &nbsp;if($hdr(User-Agent)=~ &quot;PolycomSoundPointIP&quot;)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bla_set_flag(); 
<div class="Ih2E3d"><br><br><br>regards,<br>Anca<br><br><br>Yehavi Bourvine wrote:<br></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">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:<br>
&nbsp;modparam(&quot;pua&quot;, &quot;db_url&quot;, &quot;mysql://openser:XXXXX@localhost/openser&quot;)<br></div>modparam(&quot;pua_usrloc&quot;, &quot;default_domain&quot;, &quot;<a href="http://cc.huji.ac.il/" target="_blank">cc.huji.ac.il</a> &lt;<a href="http://cc.huji.ac.il/" target="_blank">http://cc.huji.ac.il</a>&gt;&quot;) 
<div class="Ih2E3d"><br>modparam(&quot;pua_usrloc&quot;, &quot;entity_prefix&quot;, &quot;pres&quot;)<br>modparam(&quot;pua_bla&quot;, &quot;server_address&quot;, &quot;sip:sa@*/OPENsips-IP-address/*:5060&quot;)<br></div>
modparam(&quot;pua_bla&quot;, &quot;default_domain&quot;, &quot;<a href="http://cc.huji.ac.il/" target="_blank">cc.huji.ac.il</a> &lt;<a href="http://cc.huji.ac.il/" target="_blank">http://cc.huji.ac.il</a>&gt;&quot;) 
<div class="Ih2E3d"><br>modparam(&quot;pua_bla&quot;, &quot;header_name&quot;, &quot;Sender&quot;)<br>....<br>&nbsp;and then during the processing of SIP messages:<br>&nbsp;if(is_method(&quot;PUBLISH&quot;)) {<br>&nbsp; &nbsp; if($hdr(Sender)!= NULL) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; handle_publish(&quot;$hdr(Sender)&quot;);<br>
&nbsp; &nbsp; else<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;handle_publish();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;t_release();<br>}<br>if( is_method(&quot;SUBSCRIBE&quot;)) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;handle_subscribe();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;t_release();<br>}<br>if(is_method(&quot;NOTIFY&quot;)){<br>&nbsp; &nbsp; &nbsp; &nbsp;bla_handle_notify();<br>
&nbsp; &nbsp; &nbsp; &nbsp;t_reply(&quot;200&quot;, &quot;OK&quot;);<br>&nbsp; &nbsp; &nbsp; &nbsp;t_release();&quot;)<br>}<br>&nbsp;Now, when a Polycom-501 phone tries to publish its presence I get the following error:<br>&nbsp;<br>Dec 23 15:33:23 [2836] ERROR:pua:send_publish: New PUBLISH and no body found- invalid request<br>
<br>Dec 23 15:33:23 [2836] ERROR:pua_usrloc:ul_publish: while sending publish.<br><br>&nbsp;The presentity table is empty, but watchers/active_watchers seems to have the other buddies that the phone would like to follow.<br>&nbsp;What causes this error and how can I overcome it?<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Thanks! __Yehavi:<br></div>------------------------------------------------------------------------ 
<div class="Ih2E3d"><br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users at lists.opensips.org" target="_blank">Users at 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>
&nbsp;<br></div></blockquote><br></blockquote></div></div>

------=_Part_23334_19477344.1231684056025--



More information about the Users mailing list