Eric Wieling
2023-Jun-21 18:46 UTC
[asterisk-users] Asterisk not replacing private FROM ip with public IP in INVITE
type=endpoint rewrite_contact=yes force_rport=yes rtp_symmetric=yes On 6/21/23 14:36, TTT wrote:> 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:16667778888 at 172.31.253.4>;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... > > >-- http://help.nyigc.net/
TTT
2023-Jun-21 18:58 UTC
[asterisk-users] Asterisk not replacing private FROM ip with public IP in INVITE
I tried that (only needed to add rewrite_contact=yes) but it didn't help. BTW, the CONTACT: line holds the correct ip! Only the FROM: line holds the wrong (private) IP. I'm still learning SIP...but I assume the FROM should also hold the rewritten public IP. Just don't know how to force Asterisk to do that. -----Original Message----- From: Eric Wieling [mailto:ewieling at nyigc.com] Sent: Wednesday, June 21, 2023 2:46 PM To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>; TTT <lists at telium.io> Subject: Re: [asterisk-users] Asterisk not replacing private FROM ip with public IP in INVITE type=endpoint rewrite_contact=yes force_rport=yes rtp_symmetric=yes On 6/21/23 14:36, TTT wrote:> 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:16667778888 at 172.31.253.4>;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... > > >-- http://help.nyigc.net/
Reasonably Related Threads
- Asterisk not replacing private FROM ip with public IP in INVITE
- Asterisk not replacing private FROM ip with public IP in INVITE
- Asterisk not replacing private FROM ip with public IP in INVITE
- Asterisk not replacing private FROM ip with public IP in INVITE
- SetCallerPres command gone