Misc (re #1945): Added TLS transport in pjsua2 sample app.

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5530 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Nanang Izzuddin 2017-01-18 10:09:42 +00:00
parent 532eba77fc
commit c40e9b5861
1 changed files with 8 additions and 0 deletions

View File

@ -385,6 +385,14 @@ class MyApp {
System.out.println(e);
}
try {
sipTpConfig.setPort(SIP_PORT+1);
ep.transportCreate(pjsip_transport_type_e.PJSIP_TRANSPORT_TLS,
sipTpConfig);
} catch (Exception e) {
System.out.println(e);
}
/* Create accounts. */
for (int i = 0; i < accCfgs.size(); i++) {
MyAccountConfig my_cfg = accCfgs.get(i);