C# Class SIPSorcery.SIP.App.SIPServerUserAgent

A To tag MUST be set on all non 100 Trying responses, see RFC 3261 "8.2.6.2 Headers and Tags".
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
AnswerNonInvite ( SIPResponseStatusCodesEnum answerStatus, string reasonPhrase, string customHeaders, string contentType, string body ) : void
AuthenticateCall ( ) : bool
LoadSIPAccountForIncomingCall ( ) : bool
NoCDR ( ) : void
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
SIPServerUserAgent ( SIPTransport sipTransport, SIPEndPoint outboundProxy, string sipUsername, string sipDomain, SIPCallDirection callDirection, SIPAssetGetDelegate getSIPAccount, SIPAuthenticateRequestDelegate sipAuthenticateRequest, SIPMonitorLogDelegate logDelegate, UASInviteTransaction uasTransaction ) : System
SetDialPlanContextID ( System.Guid dialPlanContextID ) : void
SetOwner ( string owner, string adminMemberId ) : void
SetTraceDelegate ( SIPTransactionTraceMessageDelegate traceDelegate ) : void

Private Methods

Method Description
ClientTimedOut ( SIPTransaction sipTransaction ) : void
TransactionTraceMessage ( SIPTransaction sipTransaction, string message ) : void
UASTransactionCancelled ( SIPTransaction sipTransaction ) : void
UASTransaction_TransactionRemoved ( SIPTransaction sipTransaction ) : void

Method Details

Answer() public method

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

Answer() public method

public Answer ( string contentType, string body, string toTag, SIPDialogue answeredDialogue, SIPDialogueTransferModesEnum transferMode ) : SIPDialogue
contentType string
body string
toTag string
answeredDialogue SIPSorcery.SIP.SIPDialogue
transferMode SIPDialogueTransferModesEnum
return SIPSorcery.SIP.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

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 SIPSorcery.SIP.SIPURI
return void

Reject() public method

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

SIPServerUserAgent() public method

public SIPServerUserAgent ( SIPTransport sipTransport, SIPEndPoint outboundProxy, string sipUsername, string sipDomain, SIPCallDirection callDirection, SIPAssetGetDelegate getSIPAccount, SIPAuthenticateRequestDelegate sipAuthenticateRequest, SIPMonitorLogDelegate logDelegate, UASInviteTransaction uasTransaction ) : System
sipTransport SIPSorcery.SIP.SIPTransport
outboundProxy SIPSorcery.SIP.SIPEndPoint
sipUsername string
sipDomain string
callDirection SIPCallDirection
getSIPAccount SIPAssetGetDelegate
sipAuthenticateRequest SIPAuthenticateRequestDelegate
logDelegate SIPMonitorLogDelegate
uasTransaction SIPSorcery.SIP.UASInviteTransaction
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