[sip-comm-dev] [Patch] All SIP accounts listen on the same ports


#1

Hi all,

Following the previous thread[1], this patch makes all
ProtocolProviderServiceSipImpl use the same JAIN-SIP stack and
SipProviderS, so that all accounts can now listen on the same ports
(5060/5061).

The patch is based on SVN revision 4362. It should worked without
regressions. Could people test if their multiple SIP accounts still
work with it? Thanks.

Changes summary:
.../sip/ProtocolProviderServiceSipImpl.java | 325 +++++++-------------
.../impl/protocol/sip/ProxyRouter.java | 115 +++++++
.../impl/protocol/sip/SipMessageDispatcher.java | 274 +++++++++++++++++
.../impl/protocol/sip/SipStackProperties.java | 165 ++++++++++
4 files changed, 670 insertions(+), 209 deletions(-)

Changes over the last snapshot[2]:

- The TCP ListeningPoint and the UDP ListeningPoint are now added to
the same SipProvider. Rationale: when a message is too big, it will be
SipStack <-> 2 SipProviderS <-> 3 ListeningPointS

- The outbound proxy regression is gone! The routing decision should
be exactly the same as in the trunk version.

- new method ProtocolProviderServiceSipImpl.getRegisteredInstances()

[1] https://sip-communicator.dev.java.net/servlets/BrowseList?list=dev&by=thread&from=1264012
[2] https://sip-communicator.dev.java.net/servlets/ReadMsg?list=dev&msgNo=4305

Cheers,

single_sip_stack-1.patch (41.2 KB)

···

sent via TCP rather than UDP by the SipProvider. So now we have 1

--
Sébastien Mazy


#2

updated:

- moved ProtocolProviderServiceSipImpl.getRegisteredInstances() to
ProtocolProviderServiceSipImpl.getAllInstances() which uses OSGi

- applies on SVN revision 4368

single_sip_stack-2.patch (42.4 KB)

···

--
Sébastien Mazy