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

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

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

Метод Описание
Callback ( string dest1, string dest2, int delaySeconds, int ringTimeoutLeg1, int ringTimeoutLeg2, string customHeadersCallLeg1, string customHeadersCallLeg2 ) : void

Establishes a new call with the client end tied to the proxy. Since the proxy will not be sending any audio the idea is that once the call is up it should be re-INVITED off somewhere else pronto to avoid the callee sitting their listening to dead air.

CallbackApp ( SIPTransport sipTransport, ISIPCallManager callManager, DialStringParser dialStringParser, SIPMonitorLogDelegate logDelegate, string username, string adminMemberId, SIPEndPoint outboundProxy, SIPAssetPersistor sipDialoguePersistor ) : System

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

Метод Описание
CallProgress ( SIPResponseStatusCodesEnum progressStatus, string reasonPhrase, string customHeaders, string progressContentType, string progressBody, ISIPClientUserAgent uac ) : void
Dial ( ForkCall call, string data, int ringTimeout, int answeredCallLimit, SIPRequest clientRequest, List customHeaders ) : SIPDialogue
GetCallbackInviteRequest ( IPEndPoint localSIPEndPoint, string sdp ) : SIPRequest
Log ( string message ) : void
SendRTPPacket ( string sourceSocket, string destinationSocket ) : void

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

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

Establishes a new call with the client end tied to the proxy. Since the proxy will not be sending any audio the idea is that once the call is up it should be re-INVITED off somewhere else pronto to avoid the callee sitting their listening to dead air.
public Callback ( string dest1, string dest2, int delaySeconds, int ringTimeoutLeg1, int ringTimeoutLeg2, string customHeadersCallLeg1, string customHeadersCallLeg2 ) : void
dest1 string The dial string of the first call to place.
dest2 string The dial string of the second call to place.
delaySeconds int Delay in seconds before placing the first call. Gives the user a chance to hangup their phone if they are calling themselves back.
ringTimeoutLeg1 int The ring timeout for the first call leg, If 0 the max timeout will be used.
ringTimeoutLeg2 int
customHeadersCallLeg1 string A | delimited string that contains a list of custom SIP headers to add to the INVITE request sent for the first call leg.
customHeadersCallLeg2 string A | delimited string that contains a list of custom SIP headers to add to the INVITE request sent for the second call leg.
Результат void

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

public CallbackApp ( SIPTransport sipTransport, ISIPCallManager callManager, DialStringParser dialStringParser, SIPMonitorLogDelegate logDelegate, string username, string adminMemberId, SIPEndPoint outboundProxy, SIPAssetPersistor sipDialoguePersistor ) : System
sipTransport SIPSorcery.SIP.SIPTransport
callManager ISIPCallManager
dialStringParser DialStringParser
logDelegate SIPMonitorLogDelegate
username string
adminMemberId string
outboundProxy SIPSorcery.SIP.SIPEndPoint
sipDialoguePersistor SIPAssetPersistor
Результат System