asterisk / pjproject-archive

Asterisk fork of PJSIP NO PULL REQUESTS OR ISSUES!!!
GNU General Public License v2.0
69 stars 42 forks source link

PJSIP uses wrong IP in FROM headers #20

Closed alfred-vilsmeier closed 8 years ago

alfred-vilsmeier commented 8 years ago

Hi, we have an asterisk 13 box with PJSIP 2.4.5. Everything works great with a single NIC (eth0), but we recently added a SIP Trunk connected directly via a second NIC (eth1). There's a transport bound to each IP with the correct local_net and external IP addresses. Our SIP phones register to the asterisk box but the FROM header in the replies has the wrong IP address and all contacts now appear as unavailable, qualify shows them as unreachable, extensions are never rung from call queues with ringinuse disabled, etc. Please advise.

pjsip wrong ip in from.txt

jcolp commented 8 years ago

Please use the asterisk-users mailing list or https://community.asterisk.org/ site for help with Asterisk.

alfred-vilsmeier commented 8 years ago

Well, the actual headers are handled by PJSIP entirely, are they not?

Perhaps I'm approaching this the wrong way but I think the real issue lies with how PJSIP is evaluating the information to include in the headers.

Thank you.

jcolp commented 8 years ago

No, Asterisk constructs and determines what headers to put in. As well it is unlikely that the From header would be the problem. It's not used for routing. It's more likely the Contact header or the underlying routing of the software itself.

alfred-vilsmeier commented 8 years ago

Well, both Contact and Via headers are fine. I will post in the asterisk forums and update the entry here if anything comes up, thank you!