Anca<div><br></div><div>I got the following logs when subscribing:</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]: DBG:presence:build_dlg_t: CONTACT = sip:watcher@79.149.10.246:5060;transport=tcp</div>
</div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]: DBG:tm:t_uac: next_hop=<sip:213.151.105.170:6666;lr=on></div></div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]: DBG:core:mk_proxy: doing DNS lookup...</div>
</div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]: DBG:tm:dlg2hash: 42964</div></div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]: DBG:tm:print_request_uri: sip:watcher@79.149.10.246:5060;transport=tcp</div>
</div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]: DBG:tm:set_timer: relative timeout is 500000</div></div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]: DBG:tm:insert_timer_unsafe: [4]: 0x7f8fa84c0068 (4508500000)</div>
</div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]: DBG:tm:set_timer: relative timeout is 30</div></div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]: DBG:tm:insert_timer_unsafe: [0]: 0x7f8fa84c0098 (4538)</div>
</div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]: INFO:presence:send_notify_request: NOTIFY <a href="mailto:sip%3Awatcher@test.genaker.net">sip:watcher@test.genaker.net</a> via sip:213.151.105.170:6666;lr=on on behalf of <a href="mailto:sip%3Apresentity@test.genaker.net">sip:presentity@test.genaker.net</a> for event presence</div>
</div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]: DBG:tm:t_unref: UNREF_UNSAFE: after is 0</div></div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]: DBG:core:destroy_avp_list: destroying list (nil)</div>
</div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3258]: DBG:core:receive_msg: cleaning up</div></div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3259]: DBG:core:parse_msg: SIP Reply (status):</div>
</div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3259]: DBG:core:parse_msg: version: <SIP/2.0></div></div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3259]: DBG:core:parse_msg: status: <200></div>
</div><div><div>Mar 11 15:28:40 test /usr/local/sbin/opensips[3259]: DBG:core:parse_msg: reason: <OK></div></div></blockquote><div><div><br></div><div>What log could I add to your patch so we can get more details ?</div>
<div><br></div><div>I recompiled the whole opensips and its modules just to make sure your patch is activated.</div><div><br></div><div>Cheers</div><div>Pascal</div><div><br></div><br><div class="gmail_quote">On Thu, Mar 11, 2010 at 2:07 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>
I have just tested myself - with a Subscribe sent on udp and contact<br>
with trasport=tcp and the Notify is sent over tcp.<br>
I would suggest to run opensips in debug mode and paste the log messages<br>
when starting the processing for sending the Notify ( starting with<br>
"DBG:presence:build_dlg_t: CONTACT ").<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>
</div><div class="im">Pascal Maugeri wrote:<br>
> to: OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
</div>> <mailto:<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>>><br>
> cc: Albert Petit <<a href="mailto:albertpetit@gmail.com">albertpetit@gmail.com</a> <mailto:<a href="mailto:albertpetit@gmail.com">albertpetit@gmail.com</a>>><br>
<div class="im">><br>
> Hello Anca<br>
><br>
> Sorry but this patch does not help neither :-(<br>
><br>
> FYI we applied it against rev 6706.<br>
><br>
> I will test this afternoon with a subscriber that is not behind NAT,<br>
> maybe we can isolate a bit more the problem.<br>
><br>
> I'm going to answer to Iñaki's email providing tracers.<br>
><br>
> Cheers<br>
> Pascal<br>
><br>
><br>
><br>
> On Wed, Mar 10, 2010 at 3:02 PM, Anca Vamanu <<a href="mailto:anca@opensips.org">anca@opensips.org</a><br>
</div><div class="im">> <mailto:<a href="mailto:anca@opensips.org">anca@opensips.org</a>>> wrote:<br>
><br>
> Hi Pascal,<br>
><br>
</div><div class="im">> Please try this revised patch. It is also against svn, take a new<br>
> copy of the tm module and apply it.<br>
><br>
> Thanks and regards,<br>
><br>
><br>
> --<br>
> Anca Vamanu<br>
</div><div class="im">> <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> <<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>><br>
><br>
><br>
><br>
> Pascal Maugeri wrote:<br>
><br>
</div><div class="im">> Hi Anca<br>
><br>
> We just tested the patch you sent us but we don't see any<br>
> difference.<br>
><br>
> Just in case, we recompiled the whole server (first we updated<br>
> to rev 6700) and applied the patch you kindly sent us:<br>
><br>
> svn update<br>
> ...<br>
> patch -p0 < tm_proto_fix.patch<br>
> make all<br>
> make install<br>
> service opensips restart<br>
><br>
> The NOTIFY message is still sent over UDP :-(<br>
><br>
> What information could we send you in order to help you ?<br>
><br>
> A big thank you for your help and fast answer!<br>
><br>
> Cheers<br>
> Pascal<br>
><br>
> On Tue, Mar 9, 2010 at 4:55 PM, Anca Vamanu <<a href="mailto:anca@opensips.org">anca@opensips.org</a><br>
</div>> <mailto:<a href="mailto:anca@opensips.org">anca@opensips.org</a>> <mailto:<a href="mailto:anca@opensips.org">anca@opensips.org</a><br>
<div><div></div><div class="h5">> <mailto:<a href="mailto:anca@opensips.org">anca@opensips.org</a>>>> wrote:<br>
><br>
> Hi Pascal,<br>
><br>
> We found the problem - the socket on which the Subscribe was<br>
> received was always used when sending the Notify.<br>
> Find attached a patch for tm module that should fix this<br>
> problem.<br>
> Please test and report the results.<br>
><br>
> Regards,<br>
><br>
> -- Anca Vamanu<br>
> <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> <<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>><br>
> <<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>><br>
><br>
><br>
><br>
><br>
> Pascal Maugeri wrote:<br>
><br>
> Hi<br>
><br>
> Using opensips 1.6 we need to have the presence module<br>
> to send<br>
> NOTIFY over TCP rather than UDP when the size of the<br>
> message<br>
> is greater than a given MTU.<br>
><br>
> We tried to force it sending a SUBSCRIBE with<br>
> transport=tcp in<br>
> Contact header:<br>
><br>
> SUBSCRIBE <a href="mailto:sip%3Aecho123@presence.net">sip:echo123@presence.net</a><br>
> <mailto:<a href="mailto:sip%253Aecho123@presence.net">sip%3Aecho123@presence.net</a>><br>
> <mailto:<a href="mailto:sip%253Aecho123@presence.net">sip%3Aecho123@presence.net</a><br>
> <mailto:<a href="mailto:sip%25253Aecho123@presence.net">sip%253Aecho123@presence.net</a>>><br>
> <mailto:<a href="mailto:sip%253Aecho123@presence.net">sip%3Aecho123@presence.net</a><br>
> <mailto:<a href="mailto:sip%25253Aecho123@presence.net">sip%253Aecho123@presence.net</a>><br>
> <mailto:<a href="mailto:sip%25253Aecho123@presence.net">sip%253Aecho123@presence.net</a><br>
</div></div>> <mailto:<a href="mailto:sip%2525253Aecho123@presence.net">sip%25253Aecho123@presence.net</a>>>> SIP/2.0<br>
<div><div></div><div class="h5">><br>
><br>
> [...]<br>
> Contact: <sip:albertd@10.1.1.24:5233;transport=tcp><br>
> Event: presence<br>
><br>
><br>
> but the NOTIFY messages are sent over UDP (observe the<br>
> "transport=tcp" in the request line):<br>
><br>
> NOTIFY sip:albertd@10.1.1.24:5233;transport=tcp SIP/2.0<br>
> [...]<br>
> Contact: <<a href="http://sip:sa@213.151.105.170:6667" target="_blank">sip:sa@213.151.105.170:6667</a><br>
> <<a href="http://sip:sa@213.151.105.170:6667" target="_blank">http://sip:sa@213.151.105.170:6667</a>><br>
> <<a href="http://sip:sa@213.151.105.170:6667" target="_blank">http://sip:sa@213.151.105.170:6667</a>><br>
> <<a href="http://sip:sa@213.151.105.170:6667" target="_blank">http://sip:sa@213.151.105.170:6667</a>>><br>
><br>
> Subscription-State: active;expires=120<br>
> Content-Type: application/pidf+xml<br>
> Content-Length: 1254<br>
><br>
><br>
> Could you please let me know what we should do to<br>
> enable the<br>
> sending over TCP ? I don't understand what we're doing<br>
> wrong.<br>
><br>
> Cheers<br>
> Pascal<br>
><br>
> ------------------------------------------------------------------------<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>>><br>
><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>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>>><br>
><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>
><br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<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>
><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<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>
><br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<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>
><br>
<br>
_______________________________________________<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>