[OpenSIPS-Users] [Presence] How to receive presence NOTIFY over TCP ?

Anca Vamanu anca at opensips.org
Wed Mar 10 15:02:27 CET 2010


Hi Pascal,

Please try this revised patch. It is also against svn, take a new copy 
of the tm module and apply it.

Thanks and regards,

-- 
Anca Vamanu
www.voice-system.ro



Pascal Maugeri wrote:
> Hi Anca
>
> We just tested the patch you sent us but we don't see any difference.
>
> Just in case, we recompiled the whole server (first we updated to rev 
> 6700) and applied the patch you kindly sent us:
>
>     svn update
>     ...
>     patch -p0 < tm_proto_fix.patch
>     make all
>     make install
>     service opensips restart   
>
>
> The NOTIFY message is still sent over UDP :-(
>
> What information could we send you in order to help you ?
>
> A big thank you for your help and fast answer!
>
> Cheers
> Pascal
>
> On Tue, Mar 9, 2010 at 4:55 PM, Anca Vamanu <anca at opensips.org 
> <mailto:anca at opensips.org>> wrote:
>
>     Hi Pascal,
>
>     We found the problem - the socket on which the Subscribe was
>     received was always used when sending the Notify.
>     Find attached a patch for tm module that should fix this problem.
>     Please test and report the results.
>
>     Regards,
>
>     -- 
>     Anca Vamanu
>     www.voice-system.ro <http://www.voice-system.ro>
>
>
>
>     Pascal Maugeri wrote:
>
>         Hi
>
>         Using opensips 1.6 we need to have the presence module to send
>         NOTIFY over TCP rather than UDP when the size of the message
>         is greater than a given MTU.
>
>         We tried to force it sending a SUBSCRIBE with transport=tcp in
>         Contact header:
>
>            SUBSCRIBE sip:echo123 at presence.net
>         <mailto:sip%3Aecho123 at presence.net>
>            <mailto:sip%3Aecho123 at presence.net
>         <mailto:sip%253Aecho123 at presence.net>> SIP/2.0
>
>            [...]
>            Contact: <sip:albertd at 10.1.1.24:5233;transport=tcp>
>            Event: presence
>
>
>         but the NOTIFY messages are sent over UDP (observe the
>         "transport=tcp" in the request line):
>
>            NOTIFY sip:albertd at 10.1.1.24:5233;transport=tcp SIP/2.0
>            [...]
>            Contact: <sip:sa at 213.151.105.170:6667
>         <http://sip:sa@213.151.105.170:6667>
>            <http://sip:sa@213.151.105.170:6667>>
>
>            Subscription-State: active;expires=120
>            Content-Type: application/pidf+xml
>            Content-Length: 1254
>
>
>         Could you please let me know what we should do to enable the
>         sending over TCP ? I don't understand what we're doing wrong.
>
>         Cheers
>         Pascal
>         ------------------------------------------------------------------------
>
>
>
>         _______________________________________________
>         Users mailing list
>         Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>          
>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tm_proto_fix.patch
Type: text/x-diff
Size: 1302 bytes
Desc: not available
Url : http://lists.opensips.org/pipermail/users/attachments/20100310/2c52da03/attachment.patch 


More information about the Users mailing list