I have Asterisk with registered endpoints for TLS calls.
However, while calling from one endpoint to another , Asterisk is creating outgoing call leg INVITE by replacing the To and From header with registered contact IP, unlike other TLS servers.
Is anyone using Asterisk for TLS calls, pls share the Asterisk behavior.
Can Asterisk be configured to use incoming user@domain in To and From header instead
This is not restricted to TLS and is because Asterisk is a back to back user agent, not a SIP proxy.
Note that the user part of the From header is propagated, under default configurations, as it is interpreted as the caller ID (although more and more service providers will not accept arbitrary caller IDs, because of criminal use for fraud.