C# Class SIPSorcery.SIP.App.SIPTransferServerUserAgent

A server user agent that replaces an existing sip dialogue rather than creating a new dialogue with a client user agent.
Inheritance: ISIPServerUserAgent
Mostra file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Methods

Method Description
Answer ( string contentType, string body, SIPDialogue answeredDialogue, SIPDialogueTransferModesEnum transferMode ) : SIPDialogue
Answer ( string contentType, string body, string toTag, SIPDialogue answeredDialogue, SIPDialogueTransferModesEnum transferMode ) : SIPDialogue

An answer on a blind transfer means the remote end of the dialogue being replaced should be re-invited and then the replaced dialogue should be hungup.

AnswerNonInvite ( SIPResponseStatusCodesEnum answerStatus, string reasonPhrase, string customHeaders, string contentType, string body ) : void
AuthenticateCall ( ) : bool
LoadSIPAccountForIncomingCall ( ) : bool
NoCDR ( ) : void
PendingLegHungup ( ) : void

Fired when a transfer is pending and the call leg that is going to be bridged hangs up before the transfer completes.

Progress ( SIPResponseStatusCodesEnum progressStatus, string reasonPhrase, string customHeaders, string progressContentType, string progressBody ) : void
Redirect ( SIPResponseStatusCodesEnum redirectCode, SIPURI redirectURI ) : void
Reject ( SIPResponseStatusCodesEnum failureStatus, string reasonPhrase, string customHeaders ) : void
SIPTransferServerUserAgent ( SIPMonitorLogDelegate logDelegate, BlindTransferDelegate blindTransfer, SIPTransport sipTransport, SIPEndPoint outboundProxy, SIPDialogue dialogueToReplace, SIPDialogue oppositeDialogue, string callDestination, string owner, string adminID ) : System
SetDialPlanContextID ( System.Guid dialPlanContextID ) : void
SetOwner ( string owner, string adminMemberId ) : void
SetTraceDelegate ( SIPTransactionTraceMessageDelegate traceDelegate ) : void

Private Methods

Method Description
CreateDummyRequest ( SIPDialogue dialogueToReplace, string callDestination ) : SIPRequest

Method Details

Answer() public method

public Answer ( string contentType, string body, SIPDialogue answeredDialogue, SIPDialogueTransferModesEnum transferMode ) : SIPDialogue
contentType string
body string
answeredDialogue SIPDialogue
transferMode SIPDialogueTransferModesEnum
return SIPDialogue

Answer() public method

An answer on a blind transfer means the remote end of the dialogue being replaced should be re-invited and then the replaced dialogue should be hungup.
public Answer ( string contentType, string body, string toTag, SIPDialogue answeredDialogue, SIPDialogueTransferModesEnum transferMode ) : SIPDialogue
contentType string
body string
toTag string
answeredDialogue SIPDialogue
transferMode SIPDialogueTransferModesEnum
return SIPDialogue

AnswerNonInvite() public method

public AnswerNonInvite ( SIPResponseStatusCodesEnum answerStatus, string reasonPhrase, string customHeaders, string contentType, string body ) : void
answerStatus SIPResponseStatusCodesEnum
reasonPhrase string
customHeaders string
contentType string
body string
return void

AuthenticateCall() public method

public AuthenticateCall ( ) : bool
return bool

LoadSIPAccountForIncomingCall() public method

public LoadSIPAccountForIncomingCall ( ) : bool
return bool

NoCDR() public method

public NoCDR ( ) : void
return void

PendingLegHungup() public method

Fired when a transfer is pending and the call leg that is going to be bridged hangs up before the transfer completes.
public PendingLegHungup ( ) : void
return void

Progress() public method

public Progress ( SIPResponseStatusCodesEnum progressStatus, string reasonPhrase, string customHeaders, string progressContentType, string progressBody ) : void
progressStatus SIPResponseStatusCodesEnum
reasonPhrase string
customHeaders string
progressContentType string
progressBody string
return void

Redirect() public method

public Redirect ( SIPResponseStatusCodesEnum redirectCode, SIPURI redirectURI ) : void
redirectCode SIPResponseStatusCodesEnum
redirectURI SIPURI
return void

Reject() public method

public Reject ( SIPResponseStatusCodesEnum failureStatus, string reasonPhrase, string customHeaders ) : void
failureStatus SIPResponseStatusCodesEnum
reasonPhrase string
customHeaders string
return void

SIPTransferServerUserAgent() public method

public SIPTransferServerUserAgent ( SIPMonitorLogDelegate logDelegate, BlindTransferDelegate blindTransfer, SIPTransport sipTransport, SIPEndPoint outboundProxy, SIPDialogue dialogueToReplace, SIPDialogue oppositeDialogue, string callDestination, string owner, string adminID ) : System
logDelegate SIPMonitorLogDelegate
blindTransfer BlindTransferDelegate
sipTransport SIPTransport
outboundProxy SIPEndPoint
dialogueToReplace SIPDialogue
oppositeDialogue SIPDialogue
callDestination string
owner string
adminID string
return System

SetDialPlanContextID() public method

public SetDialPlanContextID ( System.Guid dialPlanContextID ) : void
dialPlanContextID System.Guid
return void

SetOwner() public method

public SetOwner ( string owner, string adminMemberId ) : void
owner string
adminMemberId string
return void

SetTraceDelegate() public method

public SetTraceDelegate ( SIPTransactionTraceMessageDelegate traceDelegate ) : void
traceDelegate SIPTransactionTraceMessageDelegate
return void