A message stolen from OpenSIPS-devel that I think may be good input here as 
well.

/O

Vidarebefordrat brev:

> Från: Saúl Ibarra Corretgé <[email protected]>
> Ämne: [OpenSIPS-Devel] Avoiding creating outgoing TCP connections for NOTIFY 
> requests
> Datum: 8 oktober 2012 18:06:13 CEST
> Till: OpenSIPS devel mailling list <[email protected]>
> Svara till: OpenSIPS devel mailling list <[email protected]>
> 
> Hi all,
> 
> In order to avoid creating an outgoing TCP connection which would block 
> needlessly we have the ability to use tcp_no_new_conn_bflag. When looking up 
> the location for a user all flags will be loaded, so if we specified the said 
> flag when the user was registered a new connection will not be attempted if 
> there is no connection.
> 
> However AFAIK this doesn't apply to NOTIFY requests generated by OpenSIPS 
> when using presence. Scenario is simple: user subscribes using TCP, her 
> connection breaks, someone sends a PUBLISH. OpenSIPS will try to open a 
> connection to deliver the NOTIFY. This is what I'd like to avoid.
> 
> First thing that comes to my mind is reusing the idea with 
> tcp_no_new_conn_bflag, so if a user sets if before calling handle_subscribe, 
> in-dialog NOTIFY requests would not attempt to create the connection.
> 
> Thoughts, proposals, patches are welcome :-)
> 
> 
> Regards,
> 
> --
> Saúl Ibarra Corretgé
> AG Projects
> 
> 
> 
> 
> _______________________________________________
> Devel mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to