title: Building apjsua sample application of pjsip for android
body: <p>I have followed <a href="http://trac.pjsip.org/repos/wiki/Getting-Started/Android" rel="nofollow">PJSIP</a> tutorial and I have successfully build <strong>apjsua</strong> sample application.</p>
  
  <p>When I try to add account by +a it ask me for Sip Url, Url of the Registrar, Auth Realm, username, Password</p>
  
  <p>I entered </p>
  
  <ul>
  <li>Sip Url : sip:140@122.252.232.5</li>
  <li>Registrar : sip:122.252.232.5</li>
  <li>Auth Realm : *</li>
  <li>Username : 140</li>
  <li>Password : example</li>
  </ul>
  
  <p>After that it gave me following error</p>
  
  <pre><code>    10-17 19:57:27.165: I/apjsua(920): 19:57:27.165  sip_resolve.c  ...Failed to resolve '122.252.232.532.5'. Err=70018 (gethostbyname() has returned error (PJ_ERESOLVE))
  10-17 19:57:27.174: I/apjsua(920): 19:57:27.174    tsx0x223a5c  ...Failed to send Request msg REGISTER/cseq=54907 (tdta0x1eb9a0)! err=70018 (gethostbyname() has returned error (PJ_ERESOLVE))
  10-17 19:57:27.185: I/apjsua(920): 19:57:27.185    pjsua_acc.c  .....SIP registration failed, status=502 (gethostbyname() has returned error (PJ_ERESOLVE))
  10-17 19:57:27.199: I/apjsua(920): 19:57:27.199    pjsua_acc.c  .....Scheduling re-registration retry for acc 2 in 6 seconds..
  10-17 19:57:27.212: I/apjsua(920): 19:57:27.212      sip_reg.c  ..Error sending request, status=70018
  10-17 19:57:27.226: I/apjsua(920): 19:57:27.226    pjsua_acc.c  ..Unable to create/send REGISTER: gethostbyname() has returned error (PJ_ERESOLVE) [status=70018]
  </code></pre>
  
  <p>Does any body know where I am getting wrong???</p>
  
  <p>Or does anybody know any other way to use pjsip library for android???</p>