Message |
[+]
DMCC APIs
» How to set a caller id in makecall request, 14/03/2022 22:56:14
» Go to message
|
|
Sure, thanks Martin!
I have changed the code to set the UUI, but still I am not getting the caller ID I set as part of UUI. Could you please have a look into below code snippet and let me know if I am missing anything?
try {
System.out.println("makeCall to number: " + numberToCall);
calledDevice = getDeviceID(numberToCall);
MakeCall request = new MakeCall();
request.setCallingDevice(getDeviceID(extension));
request.setCalledDirectoryNumber(calledDevice);
// ram edited start
String newNumber = "xxx973xxxx";
byte[] uui = { 0x01, 0x02, 0x03 };
// Length of new number
int numberLen = newNumber.length();
// Length of UUI data
int uuiLen = uui.length;
// Size of buffer needed
int byteLen = 7 + numberLen + uuiLen;
// length of 'Information element'
int ieLen = 5 + numberLen + uuiLen;
// length of the number section
int numSectionLen = 2 + numberLen;
byte[] ba = new byte[byteLen];
int count = 0;
ba[count++] = 0x7E;
ba[count++] = (byte)ieLen;
ba[count++] = 0x10;
ba[count++] = (byte)numSectionLen;
ba[count++] = 1;
ba[count++] = 0x21;
// Put in the number
for (int i = 0; i < newNumber.length(); i++)
{
ba[count++] = (byte)newNumber.indexOf(i);
}
// Put in the UUI
ba[count++] = (byte)uuiLen;
for (int i = 0; i < uuiLen; i++)
{
ba[count++] = uui[i];
}
UserData userData = new UserData();
userData.setString(ba);
request.setUserData(userData);
// ram edited end
MakeCallResponse response = callControlSvcs.makeCall(request);
// callLogGui.callBack(numberToCall);
// callLogGui.displayCallStatus(actionListener, numberToCall, response.getCallingDevice());
}
Thanks,
Ram
|
 |
[+]
DMCC APIs
» How to set a caller id in makecall request, 10/03/2022 15:35:19
» Go to message
|
|
Thanks Martin for your quick reply, if I am not wrong the link you shared is talking about how to set the UUI, also I might not understand completely as they are not Java examples.
I am talking about setting the custom CLI/caller id. Could you please share any java examples that are available?
Below is the snippet of code I am using to make call.
calledDevice = getDeviceID(numberToCall);
MakeCall request = new MakeCall();
request.setCallingDevice(getDeviceID(extension));
request.setCalledDirectoryNumber(calledDevice);
MakeCallResponse response = callControlSvcs.makeCall(request);
Please let me know if you need more details.
Thanks,
Ram
|
 |
[+]
DMCC APIs
» How to set a caller id in makecall request, 09/03/2022 16:59:36
» Go to message
|
|
Hi Team,
Could you please guide me setting a caller id as part of makecall request? any sample code would be greatly appreciated.
I am using the click2call(ccs) sample application and able to place a call using h.323 extension to a phone number. But I am not able to find the option to set the caller id. When calls goes out on a phone number the caller id I am seeing is extended extension number. But I want to set a different caller id so that when called party calls back it goes to IVR/wherever I wanted instead of calling party extension directly.
Thanks
Ram
|
 |
[+]
DMCC APIs
» How to get an UCID as part of click to dial using java cmapi(DMCC) of AES, 28/09/2021 18:43:33
» Go to message
|
|
Thank you Martin,
I am able to get the ucid from delivered event
event.getCallLinkageData().getGlobalCallData().getGlobalCallLinkageID().getGloballyUniqueCallLinkageID();
one more thing, when I do the same thing, try to initiate click2call/click2dial from/via SIP extension which is logged on one-x communicator or Avaya workplace client it is not going through and call is not placed on dialed number. I think monitoring services going through but nothing happening after that.
Could you please suggest if any changes I need to do on ccs.click2call sample application or on SIP extension config or CommunicationManager side or SessionManager side?
Below are the SIP extension config for 3PCC
display station xxxx Page 6 of 6
STATION
SIP FEATURE OPTIONS
Type of 3PCC Enabled: Avaya
SIP Trunk: aar
SIP URI:
Thanks,
Ram
|
 |
[+]
DMCC APIs
» How to get an UCID as part of click to dial using java cmapi(DMCC) of AES, 23/09/2021 19:51:14
» Go to message
|
|
Hi Team,
We are trying to implement a click to dial functionality for our agents such that when an agent click on a phone number on our CRM webpage it dials out that number via agent softphone ( one-x agent or avaya work place). As part of click to dial we would like get an UCID for the call placed so that CRM logs or ties that for reporting purpose.
I was going through the sample click2call application provided as part of java cmapi (DMCC), but I was not able to find the way to get a UCID for the call placed. Also, I would like to place the call based on agent/extension status like, place a call only when agent/extension is in available state not when in aux state/after work/busy/on call...etc.
It would be great if you can share the sample code which explains the way of getting UCID.
AES version: 7.1.3.2.0.2-0
CMAPI: cmapijava-sdk-7.1.1.0.0.51
Please let me know if you need any more details.
Appreciate your support/guidance.
Thanks,
Ram
|
 |