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
Show 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
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

Method Description
GetInviteRequest ( string callURI, SIPCallDescriptor sipCallDescriptor ) : 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

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

Call() public method

public Call ( SIPCallDescriptor sipCallDescriptor ) : void
sipCallDescriptor SIPCallDescriptor
return void

Cancel() public method

public Cancel ( ) : void
return void

LoadSIPAccountForIncomingCall() public method

public LoadSIPAccountForIncomingCall ( ) : bool
return bool

NoCDR() public method

public NoCDR ( ) : 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 rejectCode, string rejectReason, string customHeaders ) : void
rejectCode SIPResponseStatusCodesEnum
rejectReason string
customHeaders string
return void

SIPB2BUserAgent() public method

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

Update() public method

public Update ( CRMHeaders crmHeaders ) : void
crmHeaders CRMHeaders
return void