Search in sources :

Example 1 with StringVector

use of org.pjsip.pjsua2.StringVector in project vialer-android by VoIPGRID.

the class SipConfig method configureStunServer.

/**
 * Use a stun server if one has been configured.
 *
 * @param uaConfig
 */
private void configureStunServer(UaConfig uaConfig) {
    String[] stunHosts = mSipService.getResources().getStringArray(R.array.stun_hosts);
    if (stunHosts.length <= 0)
        return;
    StringVector stun = new StringVector();
    for (String stunHost : stunHosts) {
        mRemoteLogger.i("Configuring STUN server: " + stunHost);
        stun.add(stunHost);
    }
    uaConfig.setStunServer(stun);
}
Also used : StringVector(org.pjsip.pjsua2.StringVector)

Aggregations

StringVector (org.pjsip.pjsua2.StringVector)1