Hello all,
I have Asterisk 18, config. with 3 interfaces, one for sip trunk, the others two for internal endpoints. The problem is the address in FROM header, inbound call.
The endpoint is connected to a interface and in From header appear the address of the other interface. Is this behavior normal ?
In pjsip.conf parameter from_domain is empty. What is the default value in case of two interfaces? My intention is for the corresponding address to appear in the header in any network I would connect the phone to.
Thank you
The From header, for inbound calls, is supplied by the remote party and out of Asterisk’s control.
You didn’t provide the logging from Asterisk, and you truncated it so much that I can’t tell whether it really is inbound to Asterisk. Please provide logging as plain text, in future.
The call is coming from siptrunk (first INVITE) and is ended to my sip phone 823. The second Invite is from asterisk to internal endpoint 823. Thank you
I don’t know my way around chan_pjsip to give a definitive answer, but given that you can override it in the configuration, I would think the logical answer is that it is fixed at configuration time, and may well be based on the OS’ idea of the machine’s identity.
If you have a broken multi-homed configuration, I’d suggest that you should be using a transport for each disjoint network.
Phone’s generally don’t care. ITSPs generally either want the URI to be in their address of record space (i.e. their domain name), or don’t care.
I note that Contact, which is what should matter, is reflecting the interface used.
Thank you. You are wright, I can override in pjsip.conf, parameter from_domain. If this is empty, I thought it would be logical to write the address of the interface from which the message comes. But in may case, with two interfaces, only one address is used. And, again you are wright, phone don’t care and contact is correct value.
Regards