<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Mas,<br>
      <br>
      Use the uac_replace_from() if you need to change the URI or
      display in the FROM hdr:<br>
         
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.3.x/uac.html#idp5583120">http://www.opensips.org/html/docs/modules/2.3.x/uac.html#idp5583120</a><br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
</pre>
    <div class="moz-cite-prefix">On 12/10/2017 12:28 PM, mas_66 wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:md5:zs80Su7IS3GeoyH5g11C2g==">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div>Hi Everyone </div>
      <div>Any idea on how to change the FROM domain on a call?</div>
      <div>I have more than one NIC and my calls fail because the
        sending domain to my Carrier is incorrect </div>
      <div>Thanks</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div id="composer_signature">
        <div style="font-size:85%;color:#575757" dir="auto">Sent from
          Samsung Mobile on O2</div>
      </div>
      <div><br>
      </div>
      <div style="font-size:100%;color:#000000"><!-- originalMessage -->
        <div>-------- Original message --------</div>
        <div>From: mas_66--- via Users <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a>
        </div>
        <div>Date: 29/11/2017 11:55 (GMT+00:00) </div>
        <div>To: <a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>, OpenSIPS users mailling list
          <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a> </div>
        <div>Subject: Re: [OpenSIPS-Users] Opensips 2.3.2 </div>
        <div><br>
        </div>
      </div>
      Hi Bogdan<br>
      I tried your suggestion but unfortunately i am still presenting
      the incorrect <br>
      domain when i try to dial 02088253053. So i am still trying to
      dial out From: <br>
      "6691"<a class="moz-txt-link-rfc2396E" href="sip:6691@159.99.8.111"><sip:6691@159.99.8.111></a> instead of <br>
      "6691"<a class="moz-txt-link-rfc2396E" href="sip:6691@172.23.100.55"><sip:6691@172.23.100.55></a>. below is the udp stream if
      it helps.<br>
      <br>
      Thanks <br>
      Mas<br>
      <br>
      <br>
      <br>
      U 172.23.100.250:5060 -> 172.23.100.55:5060<br>
      OPTIONS <a class="moz-txt-link-freetext" href="sip:172.23.100.55:5060">sip:172.23.100.55:5060</a> SIP/2.0.<br>
      Via: SIP/2.0/UDP
      172.23.100.250:5060;branch=z9hG4bK00Bc649aa94943d13d3.<br>
      From: <a class="moz-txt-link-rfc2396E" href="sip:172.23.100.250"><sip:172.23.100.250></a>;tag=gK007fa50f.<br>
      To: <a class="moz-txt-link-rfc2396E" href="sip:172.23.100.55"><sip:172.23.100.55></a>.<br>
      Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:35425181_134052342@172.23.100.250">35425181_134052342@172.23.100.250</a>.<br>
      CSeq: 500409 OPTIONS.<br>
      Max-Forwards: 1.<br>
      Allow:
      INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,UPDATE,<br>
      OPTIONS,MESSAGE,PUBLISH.<br>
      Accept: application/sdp, application/isup, application/dtmf,
      application/dtmf-<br>
      relay, multipart/mixed.<br>
      Contact: <a class="moz-txt-link-rfc2396E" href="sip:172.23.100.250:5060"><sip:172.23.100.250:5060></a>.<br>
      Content-Length: 0.<br>
      .<br>
      <br>
      <br>
      U 172.23.100.55:5060 -> 172.23.100.250:5060<br>
      SIP/2.0 484 Address Incomplete.<br>
      Via: SIP/2.0/UDP
      172.23.100.250:5060;branch=z9hG4bK00Bc649aa94943d13d3.<br>
      From: <a class="moz-txt-link-rfc2396E" href="sip:172.23.100.250"><sip:172.23.100.250></a>;tag=gK007fa50f.<br>
      To:
      <a class="moz-txt-link-rfc2396E" href="sip:172.23.100.55"><sip:172.23.100.55></a>;tag=5588ad0e2fdda81c4b33ac6770683a01.1b10.<br>
      Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:35425181_134052342@172.23.100.250">35425181_134052342@172.23.100.250</a>.<br>
      CSeq: 500409 OPTIONS.<br>
      Server: OpenSIPS (2.3.2 (x86_64/linux)).<br>
      Content-Length: 0.<br>
      .<br>
      <br>
      <br>
      U 172.23.100.55:5060 -> 172.23.100.250:5060<br>
      INVITE <a class="moz-txt-link-freetext" href="sip:02088253053@172.23.100.250">sip:02088253053@172.23.100.250</a> SIP/2.0.<br>
      Record-Route: <a class="moz-txt-link-rfc2396E" href="sip:172.23.100.55;r2=on;lr;did=bb3.90ad9f94"><sip:172.23.100.55;r2=on;lr;did=bb3.90ad9f94></a>.<br>
      Record-Route: <a class="moz-txt-link-rfc2396E" href="sip:192.168.54.55;r2=on;lr;did=bb3.90ad9f94"><sip:192.168.54.55;r2=on;lr;did=bb3.90ad9f94></a>.<br>
      Via: SIP/2.0/UDP 172.23.100.55:5060;branch=z9hG4bK2f3e.20349925.0.<br>
      Via: SIP/2.0/UDP
      192.168.200.162:56511;received=55.59.210.100;branch=z9hG4bK-<br>
      524287-1---3b2989732e03e469;rport=12328.<br>
      Max-Forwards: 69.<br>
      Contact:
      <a class="moz-txt-link-rfc2396E" href="sip:6691@55.59.210.100:12328;rinstance=f9fd12e599850665"><sip:6691@55.59.210.100:12328;rinstance=f9fd12e599850665></a>.<br>
      To: <a class="moz-txt-link-rfc2396E" href="sip:02088253053@172.23.100.250"><sip:02088253053@172.23.100.250></a>.<br>
      From: "6691"<a class="moz-txt-link-rfc2396E" href="sip:6691@159.99.8.111"><sip:6691@159.99.8.111></a>;tag=1a24473b.<br>
      Call-ID: 88254ZjZhZjYwYmI1N2MyYzNjODkzYTNmYzRhMzg2MWFiYTI.<br>
      CSeq: 1 INVITE.<br>
      Allow: SUBSCRIBE, NOTIFY, INVITE, ACK, CANCEL, BYE, REFER, INFO,
      OPTIONS, <br>
      MESSAGE.<br>
      Content-Type: application/sdp.<br>
      Supported: replaces.<br>
      User-Agent: X-Lite release 5.0.3 stamp 88254.<br>
      Content-Length: 340.<br>
      P-hint: outbound.<br>
      .<br>
      v=0.<br>
      o=- 13156428154656607 1 IN IP4 192.168.200.162.<br>
      s=X-Lite release 5.0.3 stamp 88254.<br>
      c=IN IP4 192.168.200.162.<br>
      t=0 0.<br>
      m=audio 59698 RTP/AVP 9 8 120 0 84 101.<br>
      a=rtpmap:120 opus/48000/2.<br>
      a=fmtp:120 useinbandfec=1; usedtx=1; maxaveragebitrate=64000.<br>
      a=rtpmap:84 speex/16000.<br>
      a=rtpmap:101 telephone-event/8000.<br>
      a=fmtp:101 0-15.<br>
      a=sendrecv.<br>
      <br>
      <br>
      U 172.23.100.250:5060 -> 172.23.100.55:5060<br>
      SIP/2.0 100 Trying.<br>
      Via: SIP/2.0/UDP 172.23.100.55:5060;branch=z9hG4bK2f3e.20349925.0.<br>
      Via: SIP/2.0/UDP
      192.168.200.162:56511;received=55.59.210.100;branch=z9hG4bK-<br>
      524287-1---3b2989732e03e469;rport=12328.<br>
      From: "6691"<a class="moz-txt-link-rfc2396E" href="sip:6691@159.99.8.111"><sip:6691@159.99.8.111></a>;tag=1a24473b.<br>
      To: <a class="moz-txt-link-rfc2396E" href="sip:02088253053@172.23.100.250"><sip:02088253053@172.23.100.250></a>;tag=gK04ead159.<br>
      Call-ID: 88254ZjZhZjYwYmI1N2MyYzNjODkzYTNmYzRhMzg2MWFiYTI.<br>
      CSeq: 1 INVITE.<br>
      Content-Length: 0.<br>
      .<br>
      <br>
      <br>
      U 172.23.100.250:5060 -> 172.23.100.55:5060<br>
      SIP/2.0 488 Not Acceptable Here.<br>
      Via: SIP/2.0/UDP 172.23.100.55:5060;branch=z9hG4bK2f3e.20349925.0.<br>
      Via: SIP/2.0/UDP
      192.168.200.162:56511;received=55.59.210.100;branch=z9hG4bK-<br>
      524287-1---3b2989732e03e469;rport=12328.<br>
      From: "6691"<a class="moz-txt-link-rfc2396E" href="sip:6691@159.99.8.111"><sip:6691@159.99.8.111></a>;tag=1a24473b.<br>
      To: <a class="moz-txt-link-rfc2396E" href="sip:02088253053@172.23.100.250"><sip:02088253053@172.23.100.250></a>;tag=gK04ead159.<br>
      Call-ID: 88254ZjZhZjYwYmI1N2MyYzNjODkzYTNmYzRhMzg2MWFiYTI.<br>
      CSeq: 1 INVITE.<br>
      Content-Length: 0.<br>
      .<br>
      <br>
      <br>
      U 172.23.100.55:5060 -> 172.23.100.250:5060<br>
      ACK <a class="moz-txt-link-freetext" href="sip:02088253053@172.23.100.250">sip:02088253053@172.23.100.250</a> SIP/2.0.<br>
      Via: SIP/2.0/UDP 172.23.100.55:5060;branch=z9hG4bK2f3e.20349925.0.<br>
      From: "6691"<a class="moz-txt-link-rfc2396E" href="sip:6691@159.99.8.111"><sip:6691@159.99.8.111></a>;tag=1a24473b.<br>
      Call-ID: 88254ZjZhZjYwYmI1N2MyYzNjODkzYTNmYzRhMzg2MWFiYTI.<br>
      To: <a class="moz-txt-link-rfc2396E" href="sip:02088253053@172.23.100.250"><sip:02088253053@172.23.100.250></a>;tag=gK04ead159.<br>
      CSeq: 1 ACK.<br>
      Max-Forwards: 70.<br>
      User-Agent: OpenSIPS (2.3.2 (x86_64/linux)).<br>
      Content-Length: 0.<br>
      <br>
      _______________________________________________<br>
      Users mailing list<br>
      <a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
      <a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
    </blockquote>
    <br>
  </body>
</html>