public class ExtendedCall extends Call
ExtendedCall extends basic Call in order to:
- support call transfer (REFER/NOTIFY methods),
- support UAS and proxy authentication.
Modifier and Type | Class and Description |
---|---|
protected class |
ExtendedCall.ThisExtendedInviteDialogListener
This ExtendedInviteDialogListener.
|
Call.ThisInviteDialogListener
call_state, contact_naddr, dialog, from_naddr, local_sdp, remote_sdp, sip_provider
Constructor and Description |
---|
ExtendedCall(SipProvider sip_provider,
SipMessage invite,
ExtendedCallListener call_listener)
Creates a new Call for a callee, based on an already received INVITE request.
|
ExtendedCall(SipProvider sip_provider,
SipMessage invite,
SipUser callee,
ExtendedCallListener call_listener)
Creates a new Call for a callee, based on an already received INVITE request.
|
ExtendedCall(SipProvider sip_provider,
SipUser caller,
ExtendedCallListener call_listener)
Creates a new ExtendedCall for a caller.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptTransfer()
Accepts a call transfer request.
|
void |
attendedTransfer(NameAddress transfer_to,
Call replaced_call)
Requests an attended call transfer, replacing an existing call
|
void |
call(NameAddress callee,
NameAddress caller,
java.lang.String sdp)
Starts a new call, inviting a remote user (callee).
|
void |
call(SipMessage invite)
Starts a new call, with the given INVITE request.
|
void |
listen()
Waits for an incoming call.
|
protected void |
log(LogLevel level,
java.lang.String str)
Adds a new string to the default log.
|
void |
notify(int code,
java.lang.String reason)
Notifies about the satus of an other call.
|
void |
notify(SipMessage resp)
Notifies about the satus of an other call (the given response belongs to).
|
void |
refuseTransfer()
Refuses a call transfer request.
|
void |
transfer(NameAddress transfer_to)
Requests a call transfer.
|
accept, acceptUpdate, call, call, changeState, confirm1xx, confirm1xx, confirm2xxWithAnswer, getCallId, getContactAddress, getLocalSessionDescriptor, getRemoteSessionDescriptor, getState, hangup, modify, progress, progress, redirect, refuse, refuseUpdate, ring, setLocalSessionDescriptor
public ExtendedCall(SipProvider sip_provider, SipUser caller, ExtendedCallListener call_listener)
sip_provider
- the SIP providercaller
- the local calling usercall_listener
- the call listenerpublic ExtendedCall(SipProvider sip_provider, SipMessage invite, ExtendedCallListener call_listener)
sip_provider
- the SIP providerinvite
- the received INVITE messagecall_listener
- the call listenerpublic ExtendedCall(SipProvider sip_provider, SipMessage invite, SipUser callee, ExtendedCallListener call_listener)
sip_provider
- the SIP providerinvite
- the received INVITE messagecallee
- the local called usercall_listener
- the call listenerpublic void call(NameAddress callee, NameAddress caller, java.lang.String sdp)
public void call(SipMessage invite)
public void transfer(NameAddress transfer_to)
public void attendedTransfer(NameAddress transfer_to, Call replaced_call)
public void acceptTransfer()
public void refuseTransfer()
public void notify(SipMessage resp)
public void notify(int code, java.lang.String reason)