SIP URI - Private IP Address

Hi,

I have been testing FreeSBC on AWS and every time I send a call to my SIP provider I am getting 401 unauthorized. I checked with them and they said the reason is because you are including the private IP in the SIP URI.

CODE:
INVITE sip:514xxxx@206.80.xxx.xxx SIP/2.0 Content-Type:application/sdp To: <sip:514xxxx@206.80.xxx.xxx> From: <sip:514xxxxxxx@192.168.31.19>;tag=C7C7303033303330B5980000 Privacy:none P-Asserted-Identity: <sip:514xxxxxxx@192.168.31.19> Max-Forwards:65 Allow:INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,UPDATE,PRACK,REFER,SUBSCRIBE,NOTIFY Supported:100rel,timer Expires:120

They said From: sip:514xxxxxxx@192.168.31.19;tag=C7C7303033303330B5980000 should contain the public IP of the SBC.

On the NAP configuration, I tried to set the “Remote Method for SIP” to “Force Use of Public IP and Port” and also “Automatic NAT Traversal” but they still see the private IP of SBC.

How can I correct this?

Thanks.

Hi

Would you tell us which FreeSBC release are you using?

Hi,

It is 3.0.107 running on AWS.

Thanks.

Hi David,

It is normal that the From header has the private IP, we already put the src IP which initiates the Invite.
However, you can manipulate it Via Route → Remapped_Calling: /^([0-9]*)$/\1@ 35.183.232.213/

Hi Nicole,

The issue was with realm. After setting the proper value under the NAP settings, everything worked.

Thanks.