title: Error while trying registering with pjsip: PJSIP_EUNSUPTRANSPORT
body: <p>I'm developing a SIP client based on pjsip on Android (i'm using the csipsimple code as a reference for now).</p>
  
  <p>WHen I try to register the account I get the following error:</p>
  
  <blockquote>
    <p>Unable to generate suitable Contact header for registration:
    Unsupported transport (PJSIP_EUNSUPTRANSPORT)</p>
  </blockquote>
  
  <p>My code is almost the same as in <a href="https://stackoverflow.com/questions/16353653/account-re-registration-in-pjsip">here</a>
  The sipServer string is the ip address of the registrar "192.168...."</p>
  
  <p>I have also tried not to specify the transport method like in the following code:</p>
  
  <pre><code>        int[] accId = new int[1];
  
          accId[0] = 1;
  
          pjsua_acc_config cfg = new pjsua_acc_config();
          pjsua.acc_config_default(cfg);
          csipsimple_acc_config css_cfg = new csipsimple_acc_config();
          pjsua.csipsimple_acc_config_default(css_cfg);
          cfg.setPriority(10);
          cfg.setId(pjsua.pj_str_copy("sip:" + sipUser + "@" + sipServer));
          cfg.setReg_uri(pjsua.pj_str_copy("sip:" + sipServer)); 
          cfg.setReg_timeout(60);
          cfg.setCred_count(1);
  
          cfg.setPublish_enabled(0);
          cfg.setReg_delay_before_refresh(-1);
  
          cfg.setUse_timer(pjsua_sip_timer_use.PJSUA_SIP_TIMER_OPTIONAL);
          pjsua.csipsimple_set_acc_user_data(cfg, css_cfg);
          status = pjsua.acc_add(cfg, pjsuaConstants.PJ_FALSE, accId);
  </code></pre>
  
  <p>The error is:</p>
  
  <blockquote>
    <p>E/libpjsip(20934): pjsua_acc.c 
    ..Unable to generate suitable Contact header for registration:
    Unsupported transport (PJSIP_EUNSUPTRANSPORT) [status=171060]</p>
  </blockquote>
  
  <p>Of course after this there is no trace on wireshark: the lib gives up before sending any data.</p>
  
  <p>Thanks</p>