@Connector(name="cdc-software", friendlyName="CDCSoftware") public class CDCSoftwareConnector extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DTK_MULE_SHUTDOWN_EVENT |
static String |
DTK_PROPERTY_AGENT_INSTRUMENT |
static String |
DTK_PROPERTY_C2C_PHONE_NUMBER |
static String |
DTK_PROPERTY_CALL |
static String |
DTK_PROPERTY_PHONE_NUMBER |
static String |
DTK_PROPERTY_TEL_AGENT_ID |
static String |
DTK_SERVICE_TELEPHONY_ANSWER_CALL |
static String |
DTK_SERVICE_TELEPHONY_CALL_MAKE |
static String |
DTK_SERVICE_TELEPHONY_CLEAR_CONNECTION |
static String |
DTK_SERVICE_TELEPHONY_HOLD_CALL |
static String |
ERROR_ON_REQUEST |
static String |
GZIP |
static String |
GZIP_DEFLATE |
static String |
NO_RESPONSE |
static String |
OK |
static String |
TEXT_XML_UTF_8 |
static String |
UTF_8 |
Constructor and Description |
---|
CDCSoftwareConnector() |
Modifier and Type | Method and Description |
---|---|
String |
answerCall(String call,
String agentInstrument)
answerCall
|
String |
buildGetURL(String clientId) |
String |
buildPostURL() |
ConnectorConfig |
getConfig() |
void |
getEvents(org.mule.api.callback.SourceCallback callback)
getEvents
|
static String |
getResponseAsString(InputStream is) |
String |
makeCall(String agentId,
String phoneNumber)
makeCall
|
String |
releaseCall(String call,
String agentInstrument)
releaseCall
|
void |
setConfig(ConnectorConfig config) |
public static final String GZIP
public static final String OK
public static final String NO_RESPONSE
public static final String ERROR_ON_REQUEST
public static final String UTF_8
public static final String TEXT_XML_UTF_8
public static final String GZIP_DEFLATE
public static final String DTK_SERVICE_TELEPHONY_CALL_MAKE
public static final String DTK_SERVICE_TELEPHONY_ANSWER_CALL
public static final String DTK_SERVICE_TELEPHONY_HOLD_CALL
public static final String DTK_SERVICE_TELEPHONY_CLEAR_CONNECTION
public static final String DTK_PROPERTY_CALL
public static final String DTK_PROPERTY_AGENT_INSTRUMENT
public static final String DTK_PROPERTY_TEL_AGENT_ID
public static final String DTK_PROPERTY_PHONE_NUMBER
public static final String DTK_PROPERTY_C2C_PHONE_NUMBER
public static final String DTK_MULE_SHUTDOWN_EVENT
@Processor public String releaseCall(String call, String agentInstrument)
call
- the callId to answeragentInstrument
- the extension used by agent@Processor public String answerCall(String call, String agentInstrument)
call
- the callId to answeragentInstrument
- the extension used by agent@Processor public String makeCall(String agentId, String phoneNumber)
agentId
- the agent Id placing the callphoneNumber
- the phone number to dial@Source public void getEvents(org.mule.api.callback.SourceCallback callback) throws Exception
callback
- The sourcecallback used to dispatch message to the flowException
- error produced while processing the payloadpublic ConnectorConfig getConfig()
public void setConfig(ConnectorConfig config)
public static String getResponseAsString(InputStream is) throws IOException
IOException
public String buildPostURL()
Copyright © 2010–2017. All rights reserved.