sean-cc / jain-slee

Automatically exported from code.google.com/p/jain-slee
0 stars 0 forks source link

Expose the extended interfaces in SIP RA #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
ClientTransactionExt, ServerTransactionExt - those are needed for determining 
the physical address of remote side.

Also there are RequestEventEx and ResponseEventEx, those might make sense too.

The wrappers right now hide those and you can not cast to the extended 
interface. 

For example, instead of:

public class ServerTransactionWrapper extends TransactionWrapper implements 
ServerTransaction {

this should do it:

public class ServerTransactionWrapper extends TransactionWrapper implements 
ServerTransactionExt {

Further there is Mobicents extensitions 
http://code.google.com/p/jain-sip/source/browse/src/main/java/gov/nist/javax/sip
/stack/MobicentsSIPServerTransaction.java?repo=ext with setRetransmitTimer and 
such methods, but that would introduce more dependencies. 

Original issue reported on code.google.com by vladimir...@gmail.com on 5 Nov 2012 at 3:52

GoogleCodeExporter commented 9 years ago
There is no need for this change, which would result in a lot of delegation 
code added to the wrapper. You may access the jain sip or mobicents extensions 
by retrieving the wrapped object and casting it, for instance:

(ServerTransactionExt) ServerTransactionWrapper.getWrappedServerTransaction()

Original comment by EMMart...@gmail.com on 27 Feb 2013 at 3:00