Asterisk not replacing private FROM ip with public IP in INVITE

"TTT" <[email protected]> Wed, 21 Jun 2023 18:36:58 +0000
Newsgroups gmane.comp.telephony.pbx.asterisk.user
Message-ID <01000188df3edc7f-fb602d04-2fd0-4437-8bc0-3fe8c1eb03e4-000000@email.amazonses.com>
I've split this thread off from another (PJSIP authentication) because I think the root cause is something different.    I think the problem is the following FROM line in my SIP INVITE transaction:

From: "MYNAME" <sip:[email protected]>;tag=773a3e6a-a677-4fb1-95fc-54b379b650a4

The IP address above is an internal/non-routable IP, so Twilio is rejecting it.  For some reason Asterisk is not replacing the private IP with my public IP address.  My pjsip.transport.conf contains a stanza for this transport with:

local_net=172.31.0.0/16

Is that all that's needed for Asterisk to replace the from IP with the external IP?  I'm not clear on why Asterisk is not substituting the private FROM ip with a public one...



-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users