PJSIP From Header - Wrong IP address

I have a customer with on site PBX and all the phones connecting from single subnet. When in Invite is sent to an endpoint the From header contains the wrong IP address:

INVITE sip:107@192.168.0.118:32768;line=lh1e00ue SIP/2.0
Via: SIP/2.0/UDP 192.168.0.100:5060;rport;branch=z9hG4bKPj4a9394cc-d0f5-4408-92cc-2707d7138485
From: "MyName Here" <sip:2564286000@127.0.0.2>;tag=40846648-dd2c-45d0-b9d8-ad0009991d1c
To: <sip:107@192.168.0.118;line=lh1e00ue>
Contact: <sip:asterisk@192.168.0.100:5060>

I have some very old phones that when they receive a missed call, when they redial the missed call number, it trying to call the From Header information exp: 2564286000@127.0.0.2
The PBX server then never receives the Invite back because the phone is trying to send it to 127.0.0.2 and not 192.168.0.100

Where in the Asterisk configuration can I force the From Header to use the correct IP address?

I found that setting the From_domain on the Endpoint did fix the From_header.

 from_domain                        : 192.168.0.100

I never use to change it on my old Asterisk 16 servers.

Via: SIP/2.0/UDP 192.168.0.118:32768;branch=z9hG4bK-ruf8z854mgqw;rport
From: "107" <sip:107@192.168.0.100>;tag=6hb7jrl2uj
To: <sip:167@192.168.0.100;user=phone>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.