title: c - pjsip account registration with outbound_proxy values throws "Invalid outbound proxy URI"
body: <p>I am trying to perform SIP REGISTER to P-CSCF using pjsip C-library.
  I have created, Initialized and Started pjsua.
  I have also created transport using pjsua_transport_create.
  When I use outbound proxy as below. I receive </p>
  
  <blockquote>
    <p>Invalid outbount proxy URI</p>
  </blockquote>
  
  <p>the outbound proxy:</p>
  
  <pre><code>pjsua_config sua_config;
  pjsua_config_default(&amp;sua_config);
  sua_config.cb.on_incoming_call = &amp;sua_on_incoming_call;
  sua_config.cb.on_call_media_state = &amp;sua_on_call_media_state;
  sua_config.cb.on_call_state = &amp;sua_on_call_state;
  sua_config.outbound_proxy_cnt = 1;
  sua_config.outbound_proxy[0] = pj_str("172.40.21.20");
  sua_config.require_100rel=1;
  </code></pre>
  
  <p>If I comment outbound proxy and config only proxy in account config. Then I receive </p>
  
  <blockquote>
    <p>Invalid route URI 172.40.21.20.</p>
  </blockquote>
  
  <p>account config:</p>
  
  <pre><code>pjsua_acc_config account_config;
  pjsua_acc_config_default(&amp;account_config);
  account_config.id = pj_str("\"Demo user\" &lt;sip:demouser@domainname");
  account_config.reg_uri = pj_str("sip:domainname");
  account_config.cred_count = 1;
  account_config.cred_info[0].realm = pj_str("domainname");
  account_config.cred_info[1].scheme = pj_str("digest");
  account_config.cred_info[2].username = pj_str("demouser");
  account_config.cred_info[0].data_type = PJSIP_CRED_DATA_DIGEST;
  account_config.cred_info[0].data = pj_str("testdemouser");
  account_config.reg_use_proxy=3;
  account_config.require_100rel=1;
  account_config.proxy_cnt=1;
  account_config.proxy[0]=pj_str("172.40.21.20");
  </code></pre>
  
  <p>Questions:</p>
  
  <ol>
  <li>Is  assigning URL using pj_str the correct way?</li>
  <li>Do I need to enter both pjsua_config and pjsua_acc_config with proxy values?</li>
  </ol>