Author Message
Alex999
Joined: Nov 4, 2019
Messages: 16
Offline
Hi Pallavi,

I tried to add factory Uri in the client sdk sample code(CommunicationSampleApp) download from AVAYA website with the following code.
boolean localContactsPermission = checkLocalContactsPermission();


LocalContactConfiguration localContactConfiguration = new LocalContactConfiguration();
localContactConfiguration.setEnabled(localContactsPermission);
userConfiguration.setLocalContactConfiguration(localContactConfiguration);

ConferenceConfiguration conferenceConfiguration = userConfiguration.getConferenceConfiguration();
conferenceConfiguration.setConferenceFactoryUri("xxxxxx@avaya.com");


and addparticipant with the following code.

b_test.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {

Conference conference = SDKManager.getInstance(getActivity()).getCallWrapperByCallId(callId).getCall().getConference();
if(conference.getAddParticipantViaDialoutCapability().isAllowed()){
/* List<ActiveParticipant> l = conference.getParticipants();
for(ActiveParticipant ap : l){
Log.d("Alex address ", ap.getAddress());
Log.d("Alex name ", ap.getDisplayName());
Log.d("Alex id ", ap.getParticipantId());
}*/
conference.addParticipant("501032@avaya.com.tw", new CallCompletionHandler() {
@Override
public void onSuccess() {
Log.d(LOG_TAG, "Alex add participant success");
}

@Override
public void onError(CallException e) {
Log.d(LOG_TAG, "Alex add participant failed"+e);
}
});
}
}
});


And we got the following log from the server complaining about user not found as log attached. Did I do it in the wrong way?
or what could be the possible reason for this?

2019-11-18 10:28:47.188 8482-8536/com.avaya.sdksampleapp D/AvayaClientServices: ~CSIPMessage[174]
2019-11-18 10:28:47.188 8482-8536/com.avaya.sdksampleapp D/AvayaClientServices: Conf[2]: NotifyAddParticipantFailed(), Failure:USER_NOT_FOUND
2019-11-18 10:28:47.188 8482-8536/com.avaya.sdksampleapp D/AvayaClientServices: CConferenceImpl::OnProviderConferenceAddParticipantFailed():
2019-11-18 10:28:47.188 8482-8482/com.avaya.sdksampleapp D/AvayaClientServices: CCallbackManager::ProcessNext(): Invoking OnConferenceAddParticipantFailed
Filename log.txt [Disk] Download
Pallavi_M
Joined: Dec 25, 2017
Messages: 105
Offline
Hi Alex,

The participant address is 501032@avaya.com.tw.

Looking at logs, I am seeing you are trying to invoke AddParticipant multiple times as probably you are not getting any response from SDK.

From SDK perspective, SDK is sending SIP REFER message to SM but it is not getting notification from server (may be CM or Conferencing server) about the status of add participant request.

We need to analyze what is really happening when this request is forwarded to SM.

Is it possible for you to capture Session Manager logs (captured using traceSM) to analyze this issue further ?


Thanks,
Avaya DevConnect support team
EdmondLii
Joined: Nov 17, 2017
Messages: 8
Offline
Hi Pallavi,

Appreciate your kind support, we got big progress today.

From SM trace, we see CSDK client send invite with P-Conference: UCCP = false, after we set UCCP parameters to true, CSDK client can add participants successfully.

Many thanks for your help.

Edmond
Alex999
Joined: Nov 4, 2019
Messages: 16
Offline
For those who are suffering the same config issue. We post the configuration code snippet for you guys' references.


localContactConfiguration.setEnabled(localContactsPermission);
userConfiguration.setLocalContactConfiguration(localContactConfiguration);

ConferenceConfiguration conferenceConfiguration = userConfiguration.getConferenceConfiguration();
conferenceConfiguration.setConferenceFactoryUri("XXXX@avaya.com");
conferenceConfiguration.setUCCPAdditionalFeaturesEnabled(true);
conferenceConfiguration.setUCCPEnabled(true);



BTW, thanks for the support from the Avaya support team Pallavi and Edmond.

Go to:   
Mobile view