title: PJSIP Android TLS --Unable to generate suitable Contact header for registration: Unsupported transport (PJSIP_EUNSUPTRANSPORT)
body: <p>I am trying to make call using pjsip TLS in android.As per pjsip guidelines i built the pjsip library with openssl commands.</p>
  
  <p>I have included following in my config_site.h</p>
  
  <blockquote>
    <h1>define PJSIP_HAS_TLS_TRANSPORT 1</h1>
    
    <h1>define PJ_HAS_SSL_SOCK 1</h1>
  </blockquote>
  
  <p>I can see while building the library OpenSSL included.</p>
  
  <blockquote>
    <p>OpenSSL library found, SSL support enabled</p>
  </blockquote>
  
  <p>I sucessfully  created TLS transportusing below command</p>
  
  <pre><code>ep.transportCreate(pjsip_transport_type_e.PJSIP_TRANSPORT_TLS,
                      sipTpTLSConfig); 
  </code></pre>
  
  <p>I can see TLS Listener started on my local ip address.
  But when i try to register it gives me error</p>
  
  <blockquote>
    <p>Unable to generate suitable Contact header for registration:
    Unsupported transport (PJSIP_EUNSUPTRANSPORT)</p>
  </blockquote>
  
  <p><strong>Java Code</strong></p>
  
  <pre><code>String sipid = sipURI + username + "@" + switch_ip + ":" + switch_port;
  String registrar = sipURI + switch_ip + ":" + switch_port+addTransportTLS;
  String proxy = sipURI + switch_ip + ":" + switch_port;
  AccountConfig accCfg = new AccountConfig();
  accCfg.setIdUri(sipid);
  accCfg.getRegConfig().setRegistrarUri(registrar);
  accCfg.getRegConfig().setRetryIntervalSec(60);
  accCfg.getNatConfig().setIceEnabled(false);
  app.addAcc(accCfg);
  </code></pre>
  
  <p>I did the following as per pjsip docs and added <strong>;transport=tls</strong> to my registrar address. But I still get this error.</p>