<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>there are couple of ways to achieve it, depending on the gateway
      to pstn.</p>
    <p>1) update the From header username -- probably the safest way</p>
    <p>  * see uac_replace_from(...) from uac module</p>
    <p>2) add P-Asserted-Identity/P-Preferred-Identity headers<br>
    </p>
    <p>  * see append_hf()/insert_hf()/remove_hf() functions from
      textops module</p>
    <p>3) set Remote-Party-Id headers -- only for old gateways -- same
      functions as for 2)</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 09.06.17 13:13, 赵国杰 wrote:<br>
    </div>
    <blockquote
      cite="mid:1bd7ca31.6e90.15c8c8f63e5.Coremail.zhaoguojie2010@163.com"
      type="cite">
      <div
        style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
        <div>Hello all.<br>
               I have a kamailio server routing request to a pstn gw and
          I want to change the number displayed on callee side. Say the
          caller's user name is "test", and it calls the number
          18512345678, and I want the incoming all number displayed on
          callee side to be 13587654321. How can I achieve this?<br>
          <br>
          Thanks,<br>
          Jesse<br>
        </div>
      </div>
      <br>
      <br>
      <span title="neteasefooter">
        <p> </p>
      </span><br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>