title: Twilio caller name on receive programmable voice call in ios application
body: <p>I’m using Twilio’s Programmable Voice in one of the projects. My primary requirement is to place VoIP class between mobile devices (no PSTN calls). I am able to place calls from one device to another, but unable to set appropriate Caller Name on Incoming Call screen.</p>
  
  <p>Please guide me about how to display Caller’s name on receiving device. TVOCallInvite’s “from” value shows a mobile number “+18xxxxxxxx”, but I need to display the name of the caller.
  .
  We have created TwiML PHP file which contains the dialled client name and callerID (my twill number). We have assigned url of this file in TwiML app’s request URL (<a href="https://www.twilio.com/console/voice/twiml/apps/myappid" rel="nofollow noreferrer">https://www.twilio.com/console/voice/twiml/apps/myappid</a>).</p>
  
  <p>We can assign name of the caller in CallKit’s “localizedCallerName”, but we are receiving phone number instead of caller’s identity.</p>
  
  <p>Details:
  Tutorial Followed : <a href="https://github.com/twilio/voice-quickstart-swift" rel="nofollow noreferrer">https://github.com/twilio/voice-quickstart-swift</a>
  TwilioVoice -> 2.0.0
  iOS Version : 10.1
  Device : iPhone 7 &amp; iPhone 5S </p>
  
  <p>Please find the attached screenshot.</p>
  
  <p><a href="https://i.stack.imgur.com/sTUW4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sTUW4.png" alt="enter image description here"></a></p>
  
  <p>Please note that I have searched google but I could not found the answer.</p>
  
  <p>Thanks.</p>
  
  <p>Below is my voice.php file </p>
  
  <pre><code>&lt;?php
  
  require __DIR__ . '/TwilioSdk/Twilio/autoload.php';
  include('config.php');
  use Twilio\Twiml;
  $response = new Twiml;
  
  if (isset($_REQUEST['To']) &amp;&amp; strlen($_REQUEST['To']) &gt; 0) 
  {
    $number = htmlspecialchars($_REQUEST['To']);
    $dial = $response-&gt;dial(array('callerId' =&gt; $callerid)); // callerid is +18XXXXXXXXX
    if (preg_match("/^[\d\+\-\(\) ]+$/", $number)) 
    {
      $dial-&gt;number($number);
    } 
    else 
    {
      $dial-&gt;client($number);
    }
  } 
  else 
  {
     $response-&gt;say("Thanks for calling!");
  }
  header('Content-Type: text/xml');
  echo $response;
  
  ?&gt;
  </code></pre>
  
  <p>Twilio console for call logs </p>
  
  <p><a href="https://i.stack.imgur.com/6ECic.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6ECic.png" alt="enter image description here"></a></p>