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