Ignore:
Timestamp:
May 28, 2019 5:21:00 AM (6 years ago)
Author:
nanang
Message:

Misc (re #2147): Updated Android pjsua2 sample app: enable SRTP optional mode without requiring SIP TLS transport.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/swig/java/android/app/src/main/java/org/pjsip/pjsua2/app/MyApp.java

    r5969 r6012  
    416416            my_cfg.accCfg.getVideoConfig().setAutoShowIncoming(true); 
    417417 
     418            /* Enable SRTP optional mode and without requiring SIP TLS transport */ 
     419            my_cfg.accCfg.getMediaConfig().setSrtpUse(pjmedia_srtp_use.PJMEDIA_SRTP_OPTIONAL); 
     420            my_cfg.accCfg.getMediaConfig().setSrtpSecureSignaling(0); 
     421 
    418422            MyAccount acc = addAcc(my_cfg.accCfg); 
    419423            if (acc == null) 
Note: See TracChangeset for help on using the changeset viewer.