To enable this feature, you must first configure the sip-ua command to place the router in SIP user-agent configuration mode before you can use the host-registrar command.
By default, the Session Initiation Protocol (SIP) gateway and Cisco Unified Communications Manager Express (Cisco Unified
CME) populate the host portion of the diversion header with the domain name or IP address of the gateway that generates the
request or response. The SIP gateway and Cisco Unified CME also populate the host portion of the redirect contact header with
the session target IP address or hostname of the matching dial peer.
When the host-registrar command and the registrar command are both configured in SIP user-agent configuration mode, the SIP gateway or Cisco Unified CME populate the host
portion of both the diversion and redirect contact headers with the domain name or IP address configured by the registrar command.
The host-registrar command should be configured along with the registrar command in SIP user-agent configuration mode. If the host-registrar command is configured without the registrar command, the host portion of the diversion header is populated with the domain name or IP address of the gateway and the
host portion of the redirect contact header is populated with the session target IP address or hostname of the matching dial
peer.