Ok, good comment. Yes indeed we have a SIP proxy between the subscriber and opensips (which is only acting as presence server in this scenario).<div>I thought there were two problems (one at proxy and one at presence server side). We will work on proxy side now to solve this issue.<br>
<div><br></div><div>Many thanks for your time.</div><div>Pascal</div></div><div><div><br></div><div><br><div class="gmail_quote">On Thu, Mar 11, 2010 at 4:22 PM, Anca Vamanu <span dir="ltr"><<a href="mailto:anca@opensips.org">anca@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Pascal,<br>
<br>
Only now I observed that there is a Route header in the Notify - so the<br>
first hop is in fact the address in the route and not the RURI. So it is<br>
correct to send the Notify on udp, and the proxy at the next hop should<br>
switch to tcp.<br>
<div class="im"><br>
Regards,<br>
<br>
--<br>
Anca Vamanu<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
<br>
Pascal Maugeri wrote:<br>
</div><div><div></div><div class="h5">> Anca<br>
><br>
> I got the following logs when subscribing:<br>
><br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]:<br>
> DBG:presence:build_dlg_t: CONTACT =<br>
> sip:watcher@79.149.10.246:5060;transport=tcp<br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]: DBG:tm:t_uac:<br>
> next_hop=<sip:213.151.105.170:6666;lr=on><br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]:<br>
> DBG:core:mk_proxy: doing DNS lookup...<br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]:<br>
> DBG:tm:dlg2hash: 42964<br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]:<br>
> DBG:tm:print_request_uri: sip:watcher@79.149.10.246:5060;transport=tcp<br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]:<br>
> DBG:tm:set_timer: relative timeout is 500000<br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]:<br>
> DBG:tm:insert_timer_unsafe: [4]: 0x7f8fa84c0068 (4508500000)<br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]:<br>
> DBG:tm:set_timer: relative timeout is 30<br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]:<br>
> DBG:tm:insert_timer_unsafe: [0]: 0x7f8fa84c0098 (4538)<br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]:<br>
> INFO:presence:send_notify_request: NOTIFY<br>
> <a href="mailto:sip%3Awatcher@test.genaker.net">sip:watcher@test.genaker.net</a><br>
</div></div>> <mailto:<a href="mailto:sip%253Awatcher@test.genaker.net">sip%3Awatcher@test.genaker.net</a>> via<br>
<div class="im">> sip:213.151.105.170:6666;lr=on on behalf of<br>
> <a href="mailto:sip%3Apresentity@test.genaker.net">sip:presentity@test.genaker.net</a><br>
</div>> <mailto:<a href="mailto:sip%253Apresentity@test.genaker.net">sip%3Apresentity@test.genaker.net</a>> for event presence<br>
<div class="im">> Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]:<br>
> DBG:tm:t_unref: UNREF_UNSAFE: after is 0<br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]:<br>
> DBG:core:destroy_avp_list: destroying list (nil)<br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]:<br>
> DBG:core:receive_msg: cleaning up<br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3259]:<br>
> DBG:core:parse_msg: SIP Reply (status):<br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3259]:<br>
> DBG:core:parse_msg: version: <SIP/2.0><br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3259]:<br>
> DBG:core:parse_msg: status: <200><br>
> Mar 11 15:28:40 test /usr/local/sbin/opensips[3259]:<br>
> DBG:core:parse_msg: reason: <OK><br>
><br>
><br>
> What log could I add to your patch so we can get more details ?<br>
><br>
> I recompiled the whole opensips and its modules just to make sure your<br>
> patch is activated.<br>
><br>
> Cheers<br>
> Pascal<br>
><br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@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>
</div></div></blockquote></div><br></div></div>