C# Класс SIPSorcery.AppServer.DialPlan.GoogleVoiceCall

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

Метод Описание
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

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

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

public ClientCallTerminated ( CallCancelCause cancelCause ) : void
cancelCause CallCancelCause
Результат void

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

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
Результат System

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

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.
Результат SIPSorcery.SIP.SIPDialogue