C# Class 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.
Inheritance: ISIPServerUserAgent, ISIPClientUserAgent
Afficher le fichier Open project: sipsorcery/sipsorcery Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetInviteRequest ( string callURI, SIPCallDescriptor sipCallDescriptor ) : SIPRequest

Method Details

Answer() public méthode

public Answer ( string contentType, string body, SIPDialogue answeredDialogue, SIPDialogueTransferModesEnum transferMode ) : SIPDialogue
contentType string
body string
answeredDialogue SIPDialogue
transferMode SIPDialogueTransferModesEnum
Résultat SIPDialogue

Answer() public méthode

public Answer ( string contentType, string body, string toTag, SIPDialogue answeredDialogue, SIPDialogueTransferModesEnum transferMode ) : SIPDialogue
contentType string
body string
toTag string
answeredDialogue SIPDialogue
transferMode SIPDialogueTransferModesEnum
Résultat SIPDialogue

AnswerNonInvite() public méthode

public AnswerNonInvite ( SIPResponseStatusCodesEnum answerStatus, string reasonPhrase, string customHeaders, string contentType, string body ) : void
answerStatus SIPResponseStatusCodesEnum
reasonPhrase string
customHeaders string
contentType string
body string
Résultat void

AuthenticateCall() public méthode

public AuthenticateCall ( ) : bool
Résultat bool

Call() public méthode

public Call ( SIPCallDescriptor sipCallDescriptor ) : void
sipCallDescriptor SIPCallDescriptor
Résultat void

Cancel() public méthode

public Cancel ( ) : void
Résultat void

LoadSIPAccountForIncomingCall() public méthode

public LoadSIPAccountForIncomingCall ( ) : bool
Résultat bool

NoCDR() public méthode

public NoCDR ( ) : void
Résultat void

Progress() public méthode

public Progress ( SIPResponseStatusCodesEnum progressStatus, string reasonPhrase, string customHeaders, string progressContentType, string progressBody ) : void
progressStatus SIPResponseStatusCodesEnum
reasonPhrase string
customHeaders string
progressContentType string
progressBody string
Résultat void

Redirect() public méthode

public Redirect ( SIPResponseStatusCodesEnum redirectCode, SIPURI redirectURI ) : void
redirectCode SIPResponseStatusCodesEnum
redirectURI SIPURI
Résultat void

Reject() public méthode

public Reject ( SIPResponseStatusCodesEnum rejectCode, string rejectReason, string customHeaders ) : void
rejectCode SIPResponseStatusCodesEnum
rejectReason string
customHeaders string
Résultat void

SIPB2BUserAgent() public méthode

public SIPB2BUserAgent ( SIPMonitorLogDelegate logDelegate, QueueNewCallDelegate queueCall, SIPTransport sipTranpsort, string uacOwner, string uacAdminMemberId ) : System
logDelegate SIPMonitorLogDelegate
queueCall QueueNewCallDelegate
sipTranpsort SIPTransport
uacOwner string
uacAdminMemberId string
Résultat System

SetDialPlanContextID() public méthode

public SetDialPlanContextID ( System.Guid dialPlanContextID ) : void
dialPlanContextID System.Guid
Résultat void

SetOwner() public méthode

public SetOwner ( string owner, string adminMemberId ) : void
owner string
adminMemberId string
Résultat void

SetTraceDelegate() public méthode

public SetTraceDelegate ( SIPTransactionTraceMessageDelegate traceDelegate ) : void
traceDelegate SIPTransactionTraceMessageDelegate
Résultat void

Update() public méthode

public Update ( CRMHeaders crmHeaders ) : void
crmHeaders CRMHeaders
Résultat void