C# Класс SIPSorcery.SIP.App.SIPB2BUserAgent

This class represents a back-to-back (B2B) user agent (UA) that is used to attach an outgoing call (UAC) to an incoming (UAS) call. Normally the UAC call would be the client side of a call that is placed to an external UAS in this case it's the client side of a call to a UAS in the same process. The use for this class is to allow an outgoing call from a SIP Account to another SIP Account's incoming dial plan.
Наследование: ISIPServerUserAgent, ISIPClientUserAgent
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Answer ( string contentType, string body, SIPDialogue answeredDialogue, SIPDialogueTransferModesEnum transferMode ) : SIPDialogue
Answer ( string contentType, string body, string toTag, SIPDialogue answeredDialogue, SIPDialogueTransferModesEnum transferMode ) : SIPDialogue
AnswerNonInvite ( SIPResponseStatusCodesEnum answerStatus, string reasonPhrase, string customHeaders, string contentType, string body ) : void
AuthenticateCall ( ) : bool
Call ( SIPCallDescriptor sipCallDescriptor ) : void
Cancel ( ) : void
LoadSIPAccountForIncomingCall ( ) : bool
NoCDR ( ) : void
Progress ( SIPResponseStatusCodesEnum progressStatus, string reasonPhrase, string customHeaders, string progressContentType, string progressBody ) : void
Redirect ( SIPResponseStatusCodesEnum redirectCode, SIPURI redirectURI ) : void
Reject ( SIPResponseStatusCodesEnum rejectCode, string rejectReason, string customHeaders ) : void
SIPB2BUserAgent ( SIPMonitorLogDelegate logDelegate, QueueNewCallDelegate queueCall, SIPTransport sipTranpsort, string uacOwner, string uacAdminMemberId ) : System
SetDialPlanContextID ( System.Guid dialPlanContextID ) : void
SetOwner ( string owner, string adminMemberId ) : void
SetTraceDelegate ( SIPTransactionTraceMessageDelegate traceDelegate ) : void
Update ( CRMHeaders crmHeaders ) : void

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

Метод Описание
GetInviteRequest ( string callURI, SIPCallDescriptor sipCallDescriptor ) : SIPRequest

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

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

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

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

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

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

public Call ( SIPCallDescriptor sipCallDescriptor ) : void
sipCallDescriptor SIPCallDescriptor
Результат void

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

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

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

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

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

public NoCDR ( ) : 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 rejectCode, string rejectReason, string customHeaders ) : void
rejectCode SIPResponseStatusCodesEnum
rejectReason string
customHeaders string
Результат void

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

public SIPB2BUserAgent ( SIPMonitorLogDelegate logDelegate, QueueNewCallDelegate queueCall, SIPTransport sipTranpsort, string uacOwner, string uacAdminMemberId ) : System
logDelegate SIPMonitorLogDelegate
queueCall QueueNewCallDelegate
sipTranpsort SIPTransport
uacOwner string
uacAdminMemberId 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

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

public Update ( CRMHeaders crmHeaders ) : void
crmHeaders CRMHeaders
Результат void