Re: [asterisk-users] Asterisk not replacing private FROM ip with public IP in INVITE

2023-06-21 Thread Joshua C. Colp
On Wed, Jun 21, 2023 at 4:07 PM TTT  wrote:

> Something perhaps noteworth, since this is a multihomed system I bound the
> transport to 172.31.253.4:5060
>
> I don't *think* that would cause Asterisk to use that IP in the FROM...at
> least it shouldn't.
>
>
Copy/paste from FreePBX forum:

It doesn’t touch the From header because it doesn’t matter for normal use.
There is a “from_domain” option which can be used to explicitly set the
domain portion of the From header. It’s unlikely to be your problem, unless
Twilio requires a specific From domain.

-- 
Joshua C. Colp
Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-- 
_
-- 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

Re: [asterisk-users] Asterisk not replacing private FROM ip with public IP in INVITE

2023-06-21 Thread TTT
Something perhaps noteworth, since this is a multihomed system I bound the 
transport to 172.31.253.4:5060

I don't *think* that would cause Asterisk to use that IP in the FROM...at least 
it shouldn't. 

-Original Message-
From: asterisk-users [mailto:asterisk-users-boun...@lists.digium.com] On Behalf 
Of TTT
Sent: Wednesday, June 21, 2023 2:58 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion' 

Subject: Re: [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:ewiel...@nyigc.com] 
Sent: Wednesday, June 21, 2023 2:46 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion 
; TTT 
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" 
> ;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/


-- 
_
-- 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


-- 
_
-- 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

Re: [asterisk-users] Asterisk not replacing private FROM ip with public IP in INVITE

2023-06-21 Thread TTT
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:ewiel...@nyigc.com] 
Sent: Wednesday, June 21, 2023 2:46 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion 
; TTT 
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" 
> ;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/


-- 
_
-- 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

Re: [asterisk-users] Asterisk not replacing private FROM ip with public IP in INVITE

2023-06-21 Thread TTT
I've already done that.  However, I used the FQDN instead of an IP address 
which I think should be ok.

-Original Message-
From: asterisk-users [mailto:asterisk-users-boun...@lists.digium.com] On Behalf 
Of Carlos Chavez
Sent: Wednesday, June 21, 2023 2:53 PM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] Asterisk not replacing private FROM ip with 
public IP in INVITE

You need to put your external IP in the transport configuration:

external_media_address=X.X.X.X
external_signaling_address=X.X.X.X
external_signaling_port=5060


On 21/06/23 12: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" 
> ;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...
>
>
>
-- 
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez
+52 (55)8116-9161


-- 
_
-- 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


-- 
_
-- 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

Re: [asterisk-users] Asterisk not replacing private FROM ip with public IP in INVITE

2023-06-21 Thread Carlos Chavez

You need to put your external IP in the transport configuration:

external_media_address=X.X.X.X
external_signaling_address=X.X.X.X
external_signaling_port=5060


On 21/06/23 12: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" 
;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...




--
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez
+52 (55)8116-9161


--
_
-- 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

Re: [asterisk-users] Asterisk not replacing private FROM ip with public IP in INVITE

2023-06-21 Thread Eric Wieling

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" 
;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/

--
_
-- 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

[asterisk-users] Asterisk not replacing private FROM ip with public IP in INVITE

2023-06-21 Thread TTT
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" 
;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