C# Class SIPSorcery.AppServer.DialPlan.GoogleVoiceCall

ファイルを表示 Open project: sipsorcery/sipsorcery Class Usage Examples

Public Methods

Method Description
ClientCallTerminated ( CallCancelCause cancelCause ) : void
GoogleVoiceCall ( SIPTransport sipTransport, ISIPCallManager callManager, SIPMonitorLogDelegate logDelegate, string username, string adminMemberId, SIPEndPoint outboundProxy ) : System
InitiateCall ( string emailAddress, string password, string forwardingNumber, string destinationNumber, string fromUserRegexMatch, int phoneType, int waitForCallbackTimeout, string contentType, string body ) : SIPDialogue

Initiates a Google Voice callback by sending 3 HTTP requests and then waiting for the incoming SIP call.

Private Methods

Method Description
CancelCall ( ) : void
Login ( string emailAddress, string password ) : string
MatchIncomingCall ( ISIPServerUserAgent incomingCall ) : bool
SendCallRequest ( string forwardingNumber, string destinationNumber, int phoneType, int waitForCallbackTimeout, string contentType, string body ) : SIPDialogue

Method Details

ClientCallTerminated() public method

public ClientCallTerminated ( CallCancelCause cancelCause ) : void
cancelCause CallCancelCause
return void

GoogleVoiceCall() public method

public GoogleVoiceCall ( SIPTransport sipTransport, ISIPCallManager callManager, SIPMonitorLogDelegate logDelegate, string username, string adminMemberId, SIPEndPoint outboundProxy ) : System
sipTransport SIPSorcery.SIP.SIPTransport
callManager ISIPCallManager
logDelegate SIPMonitorLogDelegate
username string
adminMemberId string
outboundProxy SIPSorcery.SIP.SIPEndPoint
return System

InitiateCall() public method

Initiates a Google Voice callback by sending 3 HTTP requests and then waiting for the incoming SIP call.
public InitiateCall ( string emailAddress, string password, string forwardingNumber, string destinationNumber, string fromUserRegexMatch, int phoneType, int waitForCallbackTimeout, string contentType, string body ) : SIPDialogue
emailAddress string The Google Voice email address to login with.
password string The Google Voice password to login with.
forwardingNumber string The number to request Google Voice to do the intial callback on.
destinationNumber string The number to request Google Voice to dial out on. This is what Google will attempt to /// call once the callback on the forwardingNumber is answered.
fromUserRegexMatch string
phoneType int
waitForCallbackTimeout int
contentType string The content type of the SIP call into sipsorcery that created the Google Voice call. It is /// what will be sent in the Ok response to the initial incoming callback.
body string The content of the SIP call into sipsorcery that created the Google Voice call. It is /// what will be sent in the Ok response to the initial incoming callback.
return SIPSorcery.SIP.SIPDialogue