Author Message
Mango_Gan
Joined: Sep 7, 2020
Messages: 5
Offline
Hi All,

Sorry for my bad English

I want to complete the configuration through Auto Configuration. I have referred to https://www.devconnectprogram.com/forums/posts/list/22003.page and other threads on the forum. If I use this format, do I need to configure anything?

## File Generation Notes
## Avaya Dynamic Configuration Service does not recognize User-Agent - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36

SET SIP_CONTROLLER_LIST "XXX:5061;transport=TLS,XXX:5060;transport=TCP,XXX:5060;transport=UDP"
SET SIPPROXYSRVR XXX
SET SIPPORT 5061
SET SIPSECURE 1
SET SIPENABLED 1
SET SIPDOMAIN XXX
SET SIPUSERNAME 000
SET SIPHA1 aa11bb22cc33
SET ESMSRVR XXX
SET CONFERENCE_VIRTUAL_ROOM 000
SET SETTINGS_FILE_URL XXX/configurations
SET ESMSSO 1
SET SSOENABLED 1
SET HOMESCREENLAYOUT 2
SET FNUSIMRINGENABLE 0212345678
SET ACSSRVR XXX
SET DIALPLANEXTENSIONLENGTHLIST "3,4,5"
SET DIRSRVRPRT 636
SET FNUSIMRINGDISABLE 0212345678
SET DIRSECURE 1
SET DIRENABLED 1
SET DIRSSO 1
SET APPCAST_ENABLED 1
SET ESMSECURE 1
SET APPCAST_CHECK_INTERVAL 1
SET PHNREMOVEAREACODE 1
SET DIRTOPDN "cn=Group,ou=X,dc=X,dc=com,dc=tw"
SET ACSSSO 1
SET SETTINGS_CHECK_INTERVAL 1
SET TRUSTCERTS XXX/SystemManagerCA.cacert.crt
SET ENABLE_VIDEO 1
SET APPCAST_URL XXX/acs/resources/webdeployment
SET DIALPLANNATIONALPHONENUMLENGTHLIST "8,9,10"
SET ACSSECURE 1
SET DIRSRVR XXX
SET ESMPORT 8443
SET ACSPORT 443
SET ENABLE_MDA_JOIN 1
SET ESMENABLED 1
SET EC500ENABLED 1
SET SP_AC 02
SET ENABLE_AVAYA_CLOUD_ACCOUNTS 0
SET SIPSSO 1
SET PHNOL 9
SET ACSENABLED 1
SET FNUIDLEAPPEARANCESELECT 0212345678
SET PHNCC 886
SET TLSSRVRID 0
SET CONFERENCE_PORTAL_URI XXX/portal
SET UNIFIEDPORTALENABLED 1
SET CONFERENCE_FACTORY_URI 71123@XXX
SET LOCKED_PREFERENCES ""
SET OBSCURE_PREFERENCES ""

In addition, when I use manual configuration through the sample application, the message "SERVER_UNTRUSTED_ERROR" will appear,

##Parameter of certificates
SET TRUSTCERTS "SystemManagerCA.cacert.crt"
SET TLSSRVRID "0"
SET AUTH 1
SET SSH_ALLOWED 0

Should I have to implement this file? please tell me how to do?
ware16.avaya.com
Joined: Sep 23, 2019
Messages: 80
Offline
Hi,

Thanks for your query!

You have mentioned two isses here.

1. Can I use instruction provided at https://www.devconnectprogram.com/forums/posts/list/22003.page for auto configuration?
Answer: Yes. This thread gives you information about how to implement 'download file from server'.
To be more specific,
CSDK has no built-in functionality to retrieve configuration from server, parse it and configure itself.
This functionality should be implemented by UI side.
The only thing that can provide CSDK to help you is to actually download file from server.
CSDK has DownloadService and the methods inside: DownloadFile, RetrieveDataFromUrl, RetrieveTextFromUrl.

2. You care receiving "SERVER_UNTRUSTED_ERROR" when you configure manually.
Answer: Looks like there is issue with server certificates. You need check whether certs you are using are proper.
You can also share the debug logs with us so that we can check issue from the logs.


Thanks,
Avaya DevConnect Team
Mango_Gan
Joined: Sep 7, 2020
Messages: 5
Offline
ware16.avaya.com wrote:Hi,

Thanks for your query!

You have mentioned two isses here.

1. Can I use instruction provided at https://www.devconnectprogram.com/forums/posts/list/22003.page for auto configuration?
Answer: Yes. This thread gives you information about how to implement 'download file from server'.
To be more specific,
CSDK has no built-in functionality to retrieve configuration from server, parse it and configure itself.
This functionality should be implemented by UI side.
The only thing that can provide CSDK to help you is to actually download file from server.
CSDK has DownloadService and the methods inside: DownloadFile, RetrieveDataFromUrl, RetrieveTextFromUrl.

2. You care receiving "SERVER_UNTRUSTED_ERROR" when you configure manually.
Answer: Looks like there is issue with server certificates. You need check whether certs you are using are proper.
You can also share the debug logs with us so that we can check issue from the logs.


Thanks,
Avaya DevConnect Team


Hi,

Thanks for your reply.

When I want login Avaya IX Workplace, I need enter the URL of the certificate below before I enter configuration URL.

##Parameter of certificates
SET TRUSTCERTS "SystemManagerCA.cacert.crt"
SET TLSSRVRID "0"
SET AUTH 1
SET SSH_ALLOWED 0

Does it apply to this situation?(login by sample app)
In addition, I don't know where can find debug logs from IDE, phones or Server.

Mango_Gan
Joined: Sep 7, 2020
Messages: 5
Offline
hi,

here is log


sorry, I'm a newbie at android IDE, it takes me a time to find.
Filename logg.txt [Disk] Download
ware16.avaya.com
Joined: Sep 23, 2019
Messages: 80
Offline
Hi,

From the logs, it looks like certificates either are not available, not installed or expired.

Please see the below log snippet:
E/AvayaClientServices: CCertificateInformationLogger::CCertificateInfoLogger(): No certificates are available in certificate validation request.


E/AvayaClientServices: AndroidCertificateProvider.validateCertificates(): Certificate exception occurred due to java.lang.reflect.InvocationTargetException
AndroidCertificateProvider.validateCertificates(): Root cause:java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
I/AvayaClientServices: AndroidCertificateProvider.validateCertificates(): Verifying if this exception is due to expired certificate chain.
D/AvayaClientServices: AndroidCertificateProviderJNI::MapOSErrorCodesToCSDKErrorCodes(): Certificate validation failed due to CertificateException.


Still, I will check with Dev Team about these errors and will let you know the root cause.

Thanks,
Avaya DevConnect Team
Mango_Gan
Joined: Sep 7, 2020
Messages: 5
Offline
hi,

can I set and store my certificates from URL before I login?
Mango_Gan
Joined: Sep 7, 2020
Messages: 5
Offline
hi,

I have set certificate in platform store as well.
but now it's display "AUTHENTICATION_ERROR" message

here is log
Filename logcat.txt [Disk] Download
ware16.avaya.com
Joined: Sep 23, 2019
Messages: 80
Offline
Hi,

Looks like you received 403 response for the register request and hence registration is failed.

2020-12-11 14:30:05.622 18581-18626/com.avaya.sdksampleapp D/SIP: RECEIVED 323 bytes from 123.51.218.13:5061 {
SIP/2.0 403 Forbidden
From: <sips:usc05@dimax.com.tw>;tag=ad43949c-c950-4b08-a5cc-d5663d8a612e
To: <sips:usc05@dimax.com.tw>;tag=zXcVbNm7a66aa411
CSeq: 1 REGISTER
Call-ID: 93712e89-9561-46a5-855c-36f195eb5f3f
Via: SIP/2.0/TLS 172.16.71.46:48923;branch=z9hG4bK2ea8b191-2b2c-4180-b656-1ae868ea3c09
Content-Length: 0

Please check server configuration to identify why server responding with 403?

Thanks,
Avaya DevConnect Team
Go to:   
Mobile view