|
| CallManager (UtlBoolean isRequiredUserIdMatch, SipLineMgr *lineMgrTask, UtlBoolean isEarlyMediaFor180Enabled, SdpCodecList *pCodecFactory, int rtpPortStart, int rtpPortEnd, const char *localAddress, const char *publicAddress, SipUserAgent *userAgent, int sipSessionReinviteTimer, PtMGCP *mgcpStackTask, const char *defaultCallExtension, int availableBehavior, const char *unconditionalForwardUrl, int forwardOnNoAnswerSeconds, const char *forwardOnNoAnswerUrl, int busyBehavior, const char *sipForwardOnBusyUrl, OsConfigDb *speedNums, CallTypes phonesetOutgoingCallProtocol, int numDialPlanDigits, int holdType, int offeringDelay, const char *pLocal, int inviteExpireSeconds, int expeditedIpTos, int maxCalls, CpMediaInterfaceFactory *pMediaFactory, int internalSamplerate) |
|
virtual | ~CallManager () |
|
virtual UtlBoolean | handleMessage (OsMsg &eventMessage) |
| For internal use only. More...
|
|
virtual void | requestShutdown (void) |
|
virtual void | setOutboundLine (const char *lineUrl) |
| Set the default address for the local connection. More...
|
|
virtual void | setOutboundLineForCall (const char *callId, const char *address, SIPX_CONTACT_TYPE eType=CONTACT_AUTO) |
|
virtual void | createCall (UtlString *callId, int metaEventId=0, int metaEventType=PtEvent::META_EVENT_NONE, int numMetaEventCalls=0, const char *metaEventCallIds[]=NULL, UtlBoolean assumeFocusIfNoInfocusCall=TRUE) |
| Creates a new call with an implicit local connection. More...
|
|
virtual OsStatus | getCalls (int maxCalls, int &numCalls, UtlString callIds[]) |
| Gets the list of names or identifiers for all of the existing calls. More...
|
|
virtual PtStatus | connect (const char *callId, const char *toAddress, const char *fromAddress=NULL, const char *desiredConnectionCallId=NULL, SIPX_CONTACT_ID contactId=0, const void *pDisplay=NULL, const void *pSecurity=NULL, const char *locationHeader=NULL, const int bandWidth=AUDIO_CODEC_BW_DEFAULT, SIPX_TRANSPORT_DATA *pTransportData=NULL, const RTP_TRANSPORT rtpTransportOptions=RTP_TRANSPORT_UDP) |
| Initiates a new outbound connection to the specified address. More...
|
|
virtual PtStatus | consult (const char *idleTargetCallId, const char *activeOriginalCallId, const char *originalCallControllerAddress, const char *originalCallControllerTerminalId, const char *consultAddressUrl, UtlString &targetCallControllerAddress, UtlString &targetCallConsultAddress) |
| Create a new call and associate it with an existing call. More...
|
|
virtual void | drop (const char *callId) |
| Drop this call and disconnect all connections associated with it. More...
|
|
virtual PtStatus | transfer_blind (const char *callId, const char *transferToUrl, UtlString *targetCallId, UtlString *targetConnectionAddress=NULL) |
| Blind transfer. More...
|
|
virtual PtStatus | transfer (const char *targetCallId, const char *originalCallId) |
| Consultative transfer. More...
|
|
PtStatus | transfer (const char *sourceCallId, const char *sourceAddress, const char *targetCallId, const char *targetAddress) |
|
virtual PtStatus | split (const char *szSourceCallId, const char *szSourceAddress, const char *szTargetCallId) |
|
virtual void | sendFlowgraphMessage (const char *callId, OsMsg &flowgraphMessage) |
|
virtual void | toneStart (const char *callId, int toneId, UtlBoolean local, UtlBoolean remote) |
| Direct the media subsystem to begin playing a DTMF or progress tone. More...
|
|
virtual void | toneStop (const char *callId) |
| Direct the media subsystem to stop playing a DTMF or progress tone. More...
|
|
virtual void | toneChannelStart (const char *callId, const char *szRemoteAddress, int toneId, UtlBoolean local, UtlBoolean remote) |
| Direct the media subsystem to begin playing a DTMF or progress tone. More...
|
|
virtual void | toneChannelStop (const char *callId, const char *szRemoteAddress) |
| Direct the media subsystem to stop playing a DTMF or progress tone. More...
|
|
virtual void | audioPlay (const char *callId, const char *audioUrl, UtlBoolean repeat, UtlBoolean local, UtlBoolean remote, UtlBoolean mixWithMic=false, int downScaling=100) |
| Deprecated, use the player controls. More...
|
|
virtual void | audioStop (const char *callId) |
| Deprecated, use the player controls. More...
|
|
virtual void | audioChannelPlay (const char *callId, const char *szRemoteAddress, const char *audioUrl, UtlBoolean repeat, UtlBoolean local, UtlBoolean remote, UtlBoolean mixWithMic=false, int downScaling=100) |
| Deprecated, use the player controls. More...
|
|
virtual void | audioChannelStop (const char *callId, const char *szRemoteAddress) |
| Deprecated, use the player controls. More...
|
|
virtual OsStatus | audioChannelRecordStart (const char *callId, const char *szRemoteAddress, const char *szFile, const CpMediaInterface::CpAudioFileFormat=CpMediaInterface::CP_WAVE_PCM_16, const UtlBoolean appendToFile=FALSE, const int numChannels=1) |
|
virtual OsStatus | audioChannelRecordPause (const char *callId, const char *szRemoteAddress) |
| Pause a file recording that is already started. More...
|
|
virtual OsStatus | audioChannelRecordResume (const char *callId, const char *szRemoteAddress) |
| Resume a file recording that is paused. More...
|
|
virtual OsStatus | audioChannelRecordStop (const char *callId, const char *szRemoteAddress) |
|
virtual OsStatus | audioChannelRecordBufferStart (const char *callId, const char *szRemoteAddress, const char *pBuffer, const int bufferSize, const int bufferType, const int maxRecordTime, const int maxSilence) |
|
virtual OsStatus | audioChannelRecordBufferStop (const char *callId, const char *szRemoteAddress) |
|
virtual OsStatus | setMediaPassThrough (const UtlString &callId, const UtlString &remoteAddress, CpMediaInterface::MEDIA_STREAM_TYPE mediaType, int mediaTypeStreamIndex, const UtlString &mediaRecieveAddress, int rtpPort, int rtcpPort) |
|
virtual OsStatus | createMediaConnection (const UtlString &callId, int &connectionId) |
|
virtual OsStatus | setRtpDestination (const UtlString &callId, int connectionId, CpMediaInterface::MEDIA_STREAM_TYPE mediaType, int mediaTypeStreamIndex, const UtlString &mediaRecieveAddress, int rtpPort, int rtcpPort) |
|
virtual OsStatus | startRtpSend (const UtlString &callId, int connectionId, const SdpCodecList &codecList) |
|
virtual OsStatus | stopRtpSend (const UtlString &callId, int connectionId) |
|
virtual void | bufferPlay (const char *callId, const void *audiobuf, int bufSize, int type, UtlBoolean repeat, UtlBoolean local, UtlBoolean remote) |
| Deprecated, use the player controls. More...
|
|
virtual void | createPlayer (const char *callid, MpStreamPlaylistPlayer **ppPlayer) |
| Create a MpStreamPlaylistPlayer media player associated with. More...
|
|
virtual void | createPlayer (int type, const char *callid, const char *szStream, int flags, MpStreamPlayer **ppPlayer) |
| Create a media player associated with the specified call. More...
|
|
virtual void | destroyPlayer (const char *callid, MpStreamPlaylistPlayer *pPlayer) |
| Destroy the media player associated with a call. More...
|
|
virtual void | destroyPlayer (int type, const char *callid, MpStreamPlayer *pPlayer) |
| Destroy the media player associated with a call. More...
|
|
virtual void | acceptConnection (const char *callId, const char *address, SIPX_CONTACT_ID contactId=0, const void *hWnd=NULL, const void *security=NULL, const char *locationHeader=NULL, const int bandWidth=AUDIO_CODEC_BW_DEFAULT, UtlBoolean sendEarlyMedia=FALSE) |
| Accept the incoming connection. More...
|
|
virtual void | rejectConnection (const char *callId, const char *address, int errorCode=0, const char *errorText="") |
| Reject the incoming connection. More...
|
|
virtual PtStatus | redirectConnection (const char *callId, const char *address, const char *forwardAddressUrl) |
| Redirect the incoming connection. More...
|
|
virtual void | dropConnection (const char *callId, const char *address) |
| Drop the specifed connection. More...
|
|
virtual void | getNumConnections (const char *callId, int &numConnections) |
| Query the number of connections in the specified call. More...
|
|
virtual OsStatus | getConnections (const char *callId, int maxConnections, int &numConnections, UtlString addresses[]) |
| Query the list of addresses or handles for the connections in the specified call. More...
|
|
virtual OsStatus | getCalledAddresses (const char *callId, int maxConnections, int &numConnections, UtlString addresses[]) |
| Query the list of addresses or handles for the connections in the specified call that were set up as outbound connections. More...
|
|
virtual OsStatus | getCallingAddresses (const char *callId, int maxConnections, int &numConnections, UtlString addresses[]) |
| Query the list of addresses or handles for the connections in the specified call that were set up as inbound connections. More...
|
|
virtual void | answerTerminalConnection (const char *callId, const char *address, const char *terminalId, const void *pDisplay=NULL, const void *pSecurity=NULL) |
| Answer the incoming terminal connection. More...
|
|
virtual void | holdTerminalConnection (const char *callId, const char *address, const char *terminalId) |
| Put the specified terminal connection on hold. More...
|
|
virtual void | holdAllTerminalConnections (const char *callId) |
| Convenience method to put all of the terminal connections in the specified call on hold. More...
|
|
virtual void | holdLocalTerminalConnection (const char *callId) |
| Convenience method to put the local terminal connection on hold. More...
|
|
virtual void | unholdLocalTerminalConnection (const char *callId) |
| Take the specified terminal connection off hold,. More...
|
|
virtual void | unholdAllTerminalConnections (const char *callId) |
| Convenience method to take all of the terminal connections in the specified call off hold. More...
|
|
virtual void | unholdTerminalConnection (const char *callId, const char *addresss, const char *terminalId) |
| Convenience method to take the local terminal connection off hold. More...
|
|
virtual void | limitCodecs (const char *callId, const char *remoteAddr, const char *codecNames) |
| Further limit the set of codecs to use for the call to the given set of codecs The codecs named, must be a subset of those enabled for the call. More...
|
|
virtual void | limitCodecPreferences (const char *callId, const char *remoteAddr, const int audioBandwidth, const int videoBandwidth, const char *szVideoCodecName) |
| Rebuild codec factory on the fly with new audio codec requirements and one specific video codec. More...
|
|
virtual void | limitCodecPreferences (const char *callId, const int audioBandwidth, const int videoBandwidth, const char *szVideoCodecName) |
|
virtual void | silentRemoteHold (const char *callId) |
|
virtual void | renegotiateCodecsTerminalConnection (const char *callId, const char *addresss, const char *terminalId) |
| Renegotiate the codecs to be use for the sepcified terminal connection. More...
|
|
virtual void | renegotiateCodecsAllTerminalConnections (const char *callId) |
| Convenience method to renegotiate the codecs for all of the terminal connections in the specified call. More...
|
|
virtual void | getNumTerminalConnections (const char *callId, const char *address, int &numTerminalConnections) |
| Query the number of terminal connections in the specified call. More...
|
|
virtual OsStatus | getTerminalConnections (const char *callId, const char *address, int maxTerminalConnections, int &numTerminalConnections, UtlString terminalNames[]) |
| Get the list of terminal connection identifiers for the specified call. More...
|
|
virtual UtlBoolean | isTerminalConnectionLocal (const char *callId, const char *address, const char *terminalId) |
| Query whether the specified terminal connection is a local or remote connection. More...
|
|
virtual void | doGetFocus (CpCall *call) |
|
virtual OsStatus | getSession (const char *callId, const char *address, SipSession &session) |
| Get the SIP session information for the specified terminal connection. More...
|
|
virtual OsStatus | getSipDialog (const char *callId, const char *address, SipDialog &dialog) |
| Get the SIP dialog information for the specified terminal connection. More...
|
|
virtual void | unhold (const char *callId) |
| Deprecated, use holdAllTerminalConnections. More...
|
|
virtual void | dialString (const char *url) |
| Deprecated, use connect. More...
|
|
virtual UtlBoolean | disconnectConnection (const char *callId, const char *addressUrl) |
|
virtual void | setTransferType (int type) |
| Deprecated. More...
|
|
virtual OsStatus | setCodecCPULimitCall (const char *callId, int limit, UtlBoolean bRenegotiate) |
| Sets the CPU codec limit for a call. More...
|
|
virtual OsStatus | setInboundCodecCPULimit (int limit) |
| Set the call codec CPU limit for inbound connections in a call. More...
|
|
virtual OsStatus | setMicGain (const char *callId, float gain) |
| Sets the Mic gain. More...
|
|
virtual OsStatus | setOutputMixWeight (const char *callId, int bridgeOutputIndex, float gain) |
| Set gain for all inputs to the given output on bridge. More...
|
|
virtual void | setMaxCalls (int maxCalls) |
|
virtual void | enableStun (const char *szStunServer, int iStunPort, int iKeepAlivePeriodSecs, OsNotification *pNotification=NULL) |
|
virtual void | enableTurn (const char *szTurnServer, int iTurnPort, const char *szUsername, const char *szPassword, int iKeepAlivePeriodSecs) |
|
virtual UtlBoolean | sendInfo (const char *callId, const char *szRemoteAddress, const char *szContentType, const size_t nContenLength, const char *szContent) |
|
virtual int | getNumLines () |
| Gets the number of lines made available by line manager. More...
|
|
virtual OsStatus | getOutboundAddresses (int maxAddressesRequested, int &numAddressesAvailable, UtlString **addresses) |
| maxAddressesRequested is the number of addresses requested if available numAddressesAvailable is the actual number of addresses available. More...
|
|
virtual UtlBoolean | getCallState (const char *callId, int &state) |
| Get the state of the identified call. More...
|
|
virtual UtlBoolean | getConnectionState (const char *callId, const char *remoteAddress, int &state) |
| Get the connection state for the specified connection. More...
|
|
virtual UtlBoolean | getTermConnectionState (const char *callId, const char *address, const char *terminal, int &state) |
| Get the terminal connection state for the specified terminal connection. More...
|
|
UtlBoolean | getNextSipCseq (const char *callId, const char *remoteAddress, int &nextCseq) |
|
void | printCalls () |
|
void | setOutGoingCallType (int callType) |
|
int | getTransferType () |
|
virtual PtStatus | validateAddress (UtlString &address) |
|
virtual OsStatus | getFromField (const char *callId, const char *remoteAddress, UtlString &fromField) |
| Deprecated, use getSession. More...
|
|
virtual OsStatus | getToField (const char *callId, const char *remoteAddress, UtlString &toField) |
| Deprecated, use getSession. More...
|
|
virtual OsStatus | getCodecCPUCostCall (const char *callId, int &cost) |
| Gets the CPU cost for an individual connection within the specified call. More...
|
|
virtual OsStatus | getCodecCPULimitCall (const char *callId, int &cost) |
| Gets the CPU cost for an individual connection within the specified call. More...
|
|
virtual void | getCalls (int ¤tCalls, int &maxCalls) |
|
virtual OsStatus | getLocalContactAddresses (const char *callid, SIPX_CONTACT_ADDRESS addresses[], size_t nMaxAddresses, size_t &nActaulAddresses) |
|
virtual CpMediaInterfaceFactory * | getMediaInterfaceFactory () |
|
virtual int | getMediaConnectionId (const char *szCallId, const char *remoteAddress, void **ppInstData=NULL) |
|
virtual UtlBoolean | getAudioEnergyLevels (const char *szCallId, const char *szRemoteAddress, int &iInputEnergyLevel, int &iOutputEnergyLevel, int &nContributors, unsigned int *pContributorSRCIds, int *pContributorEngeryLevels) |
|
virtual UtlBoolean | getAudioEnergyLevels (const char *szCallId, int &iInputEnergyLevel, int &iOutputEnergyLevel) |
|
virtual UtlBoolean | getAudioRtpSourceIDs (const char *szCallId, const char *szRemoteAddress, unsigned int &uiSendingSSRC, unsigned int &uiReceivingSSRC) |
|
virtual void | getRemoteUserAgent (const char *callId, const char *remoteAddress, UtlString &userAgent) |
|
virtual OsStatus | getInviteHeaderValue (const char *callId, const char *remoteAddress, const char *headerName, UtlString &headerValueString, UtlBoolean &inviteIsFromRemote, const int headerInstanceIndex) |
|
virtual UtlBoolean | canAddConnection (const char *szCallId) |
|
int | getTotalNumberOutgoingCalls () |
|
int | getTotalNumberIncomingCalls () |
|
virtual void | onCallDestroy (CpCall *pCall) |
|
virtual void | yieldFocus (CpCall *call) |
|
| CpCallManager (const char *taskName, const char *callIdPrefix, int rtpPortStart=8766, int rtpPortEnd=-1, const char *localAddress=NULL, const char *publicAddress=NULL, int internalSamplerate=8000) |
| Default constructor. More...
|
|
virtual | ~CpCallManager () |
| Destructor. More...
|
|
virtual void | setDoNotDisturb (int flag) |
| do-not-disturb flag More...
|
|
virtual void | setMessageWaiting (int flag) |
| msg waiting flag More...
|
|
virtual void | setOfferedTimeout (int millisec) |
| offered time-out for all incoming calls More...
|
|
virtual void | enableIce (UtlBoolean bEnable) |
|
virtual void | setVoiceQualityReportTarget (const char *szTargetSipUrl) |
| Set the target sip url for voice quality reports. More...
|
|
virtual UtlBoolean | isIceEnabled () const |
|
virtual UtlBoolean | getVoiceQualityReportTarget (UtlString &reportSipUrl) |
| Get the target sip url for voice quality reports. More...
|
|
virtual void | getLocalAddress (UtlString &address) |
| Get the configured local address. More...
|
|
virtual void | getNewCallId (UtlString *callId) |
| For internal use only. More...
|
|
void | getNewSessionId (UtlString *sessionId) |
| For internal use only. More...
|
|
int | getNewMetaEventId () |
| For internal use only. More...
|
|