C# Класс 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.
Наследование: ISIPServerUserAgent
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
CreateDummyRequest ( SIPDialogue dialogueToReplace, string callDestination ) : SIPRequest

Описание методов

Answer() публичный Метод

public Answer ( string contentType, string body, SIPDialogue answeredDialogue, SIPDialogueTransferModesEnum transferMode ) : SIPDialogue
contentType string
body string
answeredDialogue SIPDialogue
transferMode SIPDialogueTransferModesEnum
Результат SIPDialogue

Answer() публичный Метод

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
Результат SIPDialogue

AnswerNonInvite() публичный Метод

public AnswerNonInvite ( SIPResponseStatusCodesEnum answerStatus, string reasonPhrase, string customHeaders, string contentType, string body ) : void
answerStatus SIPResponseStatusCodesEnum
reasonPhrase string
customHeaders string
contentType string
body string
Результат void

AuthenticateCall() публичный Метод

public AuthenticateCall ( ) : bool
Результат bool

LoadSIPAccountForIncomingCall() публичный Метод

public LoadSIPAccountForIncomingCall ( ) : bool
Результат bool

NoCDR() публичный Метод

public NoCDR ( ) : void
Результат void

PendingLegHungup() публичный Метод

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
Результат void

Progress() публичный Метод

public Progress ( SIPResponseStatusCodesEnum progressStatus, string reasonPhrase, string customHeaders, string progressContentType, string progressBody ) : void
progressStatus SIPResponseStatusCodesEnum
reasonPhrase string
customHeaders string
progressContentType string
progressBody string
Результат void

Redirect() публичный Метод

public Redirect ( SIPResponseStatusCodesEnum redirectCode, SIPURI redirectURI ) : void
redirectCode SIPResponseStatusCodesEnum
redirectURI SIPURI
Результат void

Reject() публичный Метод

public Reject ( SIPResponseStatusCodesEnum failureStatus, string reasonPhrase, string customHeaders ) : void
failureStatus SIPResponseStatusCodesEnum
reasonPhrase string
customHeaders string
Результат void

SIPTransferServerUserAgent() публичный Метод

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
Результат System

SetDialPlanContextID() публичный Метод

public SetDialPlanContextID ( System.Guid dialPlanContextID ) : void
dialPlanContextID System.Guid
Результат void

SetOwner() публичный Метод

public SetOwner ( string owner, string adminMemberId ) : void
owner string
adminMemberId string
Результат void

SetTraceDelegate() публичный Метод

public SetTraceDelegate ( SIPTransactionTraceMessageDelegate traceDelegate ) : void
traceDelegate SIPTransactionTraceMessageDelegate
Результат void