Table Of Contents
SIP—Configurable Hostname in Locally Generated SIP Headers
Prerequisites
Restrictions
How to Configure the Hostname in Locally Generated SIP Headers
SIP—Configurable Hostname in Locally Generated SIP Headers
This feature allows you to configure the hostname for use in locally generated SIP headers in either of two configuration modes.
Prerequisites
Cisco Unified Border Element
•
Cisco IOS Release 12.4(2)T or a later release must be installed and running on your Cisco Unified Border Element.
Cisco Unified Border Element (Enterprise)
•
Cisco IOS XE Release 2.5 or a later release must be installed and running on your Cisco ASR 1000 Series Router.
Restrictions
•
Dial-peer-specific configuration takes precedence over more general gateway-wide configuration.
How to Configure the Hostname in Locally Generated SIP Headers
To configure the Hostname in Locally Generated SIP Headers, perform the following tasks:
•
Configuring Hostname in Locally Generated SIP Headers at the Global Level
•
Configuring Hostname in Locally Generated SIP Headers at the Dial-Peer-Specific Level
Configuring Hostname in Locally Generated SIP Headers at the Global Level
To configure the local hostname in global configuration mode for use in locally generated URLs, complete the task in this section.
Note
Dial-peer-specific configuration takes precedence over more general gateway-wide configuration.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
voice service voip
4.
sip
5.
localhost dns:local-host-name-string
6.
exit
DETAILED STEPS
| |
Command or Action
|
Purpose
|
Step 1
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
• Enter your password if prompted.
|
Step 2
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3
|
voice service voip
Example:
Router(config)# voice service voip
|
(Required) Enters the voice-service VoIP configuration mode
|
Step 4
|
sip
Example:
Router(config-voi-serv)# sip
|
(Required) Enters the SIP configuration mode.
|
Step 5
|
localhost dns:local-host-name-string
Example:
Router(conf-serv-sip)# localhost dns:host_one
|
(Optional) Globally configures the gateway to substitute a DNS hostname or domain as the localhost name in place of the physical IP address in the From, Call-ID, and Remote-Party-ID headers in outgoing messages:
• dns:local-host-name-string—Alphanumeric value representing the DNS domain (consisting of the domain name with or without a specific hostname) in place of the physical IP address that is used in the host portion of the From, Call-ID, and Remote-Party-ID headers in outgoing messages.
• This value can be the hostname and the domain separated by a period (dns:hostname.domain) or just the domain name (dns:domain). In both case, the dns: delimiter must be included as the first four characters.
|
Step 6
|
exit
Example:
Router(conf-serv-sip)# exit
|
Exits the current configuration mode.
|
Configuring Hostname in Locally Generated SIP Headers at the Dial-Peer-Specific Level
To configure the local hostname in dial-peer-specific configuration mode for use in locally generated URLs, complete the task in this section.
Note
This configuration takes precedence over global configuration.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
dial-peer voice tag voip
4.
voice-class sip localhost dns:[hostname.]domain [preferred]
5.
exit
DETAILED STEPS
| |
Command or Action
|
Purpose
|
Step 1
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
• Enter your password if prompted.
|
Step 2
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3
|
dial-peer voice tag voip
Example:
Router# dial-peer voice 100 voip
|
(Required) Enters dial-peer configuration mode for the specified dial peer.
|
Step 4
|
voice-class sip localhost dns:[hostname.]domain
[preferred]
Example:
Router(config-dial-peer)# voice-class sip
localhost dns:example.com
|
(Optional) Configures individual dial peers to override global settings on the gateway and substitute a DNS hostname or domain as the localhost name in place of the physical IP address in the From, Call-ID, and Remote-Party-ID headers in outgoing messages:
• dns:local-host-name-string—Alphanumeric value representing the DNS domain (consisting of the domain name with or without a specific hostname) in place of the physical IP address that is used in the host portion of the From, Call-ID, and Remote-Party-ID headers in outgoing messages.
• This value can be the hostname and the domain separated by a period (dns:hostname.domain) or just the domain name (dns:domain). In both case, the dns: delimiter must be included as the first four characters.
|
Step 5
|
exit
Example:
Router(config-dial-peer)# exit
|
Exits the current configuration mode.
|
Verifying the Hostname in Locally Generated SIP Headers
To verify the hostname in locally generated SIP headers for global or dial-peer-specific configuration, use the following show commands:
•
show call active voice
•
show call history voice
Step 1
Use the show call active voice command to display output when the local hostname is enabled:
Router# show call active voice
Call agent controlled call-legs:0
CallDuration=00:00:47 sec
ConnectionId=[0xA0DC41CF 0x115511D9 0x8002EC82 0xAB4FD5BE]
IncomingConnectionId=[0xA0DC41CF 0x115511D9 0x8002EC82 0xAB4FD5BE]
OriginalRedirectCalledNumber=
OriginalRedirectCalledOctet=0x0
TranslatedCallingNumber=9001
TranslatedCallingOctet=0x0
TranslatedCalledOctet=0x80
TranslatedRedirectCalledNumber=
TranslatedRedirectCalledOctet=0x0
GwCollectedCalledNumber=9002
CallDuration=00:00:50 sec
ConnectionId[0xA0DC41CF 0x115511D9 0x8002EC82 0xAB4FD5BE]
IncomingConnectionId[0xA0DC41CF 0x115511D9 0x8002EC82 0xAB4FD5BE]
RemoteIPAddress=172.18.193.87
RemoteSignallingIPAddress=172.18.193.87
RemoteSignallingPort=5060
RemoteMediaIPAddress=172.18.193.87
tx_DtmfRelay=inband-voice
Separate H245 Connection=FALSE
ProtocolCallId=A240B4DC-115511D9-8005EC82-AB4FD5BE@pip.example.com
SessionTarget=172.18.193.87
GapFillWithPrediction=0 ms
GapFillWithInterpolation=0 ms
GapFillWithRedundancy=0 ms
HiWaterPlayoutDelay=70 ms
LoWaterPlayoutDelay=69 ms
PlayDelayClockOffset=43547
Media Setting=flow-around
OriginalCallingNumber=9001
OriginalCalledNumber=9002
OriginalRedirectCalledNumber=
OriginalRedirectCalledOctet=0x0
TranslatedCallingNumber=9001
TranslatedCallingOctet=0x0
TranslatedCalledNumber=9002
TranslatedCalledOctet=0x80
TranslatedRedirectCalledNumber=
TranslatedRedirectCalledOctet=0x0
GwCollectedCalledNumber=9002
GwOutpulsedCalledNumber=9002
GwOutpulsedCalledOctet3=0x80
GwOutpulsedCallingNumber=9001
GwOutpulsedCallingOctet3=0x0
GwOutpulsedCallingOctet3a=0x0
LocalHostname=pip.example.com ! LocalHostname field
Call agent controlled call-legs:0
Step 2
Use the show call history voice to display output when the local hostname is enabled:
Router# show call history voice
Call agent controlled call-legs:0
DisconnectText=normal call clearing (16)
CallDuration=00:03:18 sec
ConnectionId[0xA0DC41CF 0x115511D9 0x8002EC82 0xAB4FD5BE]
IncomingConnectionId[0xA0DC41CF 0x115511D9 0x8002EC82 0xAB4FD5BE]
RemoteIPAddress=172.18.193.87
RemoteSignallingIPAddress=172.18.193.87
RemoteSignallingPort=5060
RemoteMediaIPAddress=172.18.193.87
tx_DtmfRelay=inband-voice
Separate H245 Connection=FALSE
ProtocolCallId=A240B4DC-115511D9-8005EC82-AB4FD5BE@pip.example.com
SessionTarget=172.18.193.87
GapFillWithPrediction=0 ms
GapFillWithInterpolation=0 ms
GapFillWithRedundancy=0 ms
HiWaterPlayoutDelay=70 ms
LoWaterPlayoutDelay=69 ms
OriginalCallingNumber=9001
OriginalCalledNumber=9002
OriginalRedirectCalledNumber=
OriginalRedirectCalledOctet=0x0
TranslatedCallingNumber=9001
TranslatedCallingOctet=0x0
TranslatedCalledNumber=9002
TranslatedCalledOctet=0x80
TranslatedRedirectCalledNumber=
TranslatedRedirectCalledOctet=0x0
GwCollectedCalledNumber=9002
GwOutpulsedCalledNumber=9002
GwOutpulsedCalledOctet3=0x80
GwOutpulsedCallingNumber=9001
GwOutpulsedCallingOctet3=0x0
GwOutpulsedCallingOctet3a=0x0
LocalHostname=pip.example.com ! LocalHostname field
DisconnectText=normal call clearing (16)
CallDuration=00:03:19 sec
ConnectionId=[0xA0DC41CF 0x115511D9 0x8002EC82 0xAB4FD5BE]
IncomingConnectionId=[0xA0DC41CF 0x115511D9 0x8002EC82 0xAB4FD5BE]
VoiceTxDuration=195940 ms
OriginalRedirectCalledNumber=
OriginalRedirectCalledOctet=0x0
TranslatedCallingNumber=9001
TranslatedCallingOctet=0x0
TranslatedCalledOctet=0x80
TranslatedRedirectCalledNumber=
TranslatedRedirectCalledOctet=0x0
GwCollectedCalledNumber=9002