![Patton electronics SmartWare R.3.20 Software Configuration Manual Download Page 497](http://html1.mh-extra.com/html/patton-electronics/smartware-r-3-20/smartware-r-3-20_software-configuration-manual_4044387497.webp)
Gateway configuration task list
497
SmartWare Software Configuration Guide
39 • SIP gateway configuration
Mode:
Gateway SIP
Example:
Defining authentication credentials
The following example shows how to add a set of authentication credentials for realm MySipNetwork, which
uses the username Bob and the password MyPassword for any request message, for which the server requests
authentication.
node(cfg)#gateway sip sip
node(gw-sip)[sip]#authentication MySipNetwork Bob MyPassword default
Automatic detection of the NAT IP address for SIP
In some cases, it is possible to get SIP working through a NAT, if the user agent behind the NAT inserts the
public IP address of the NAT into the SIP contact and SDP headers instead of the devices own IP address. The
software is now able to automatically detect the address of the NAT in between and insert it into the SIP mes-
sages. This can be enabled using the
contact-address nat-address
command in the SIP service configuration
mode. The
contact-address
command was already available in previous software releases, but the IP-address
had to be specified explicitly there.
Note
This is not a general solution for all SIP nat-traversal problems. It only works
in some specific scenarios.
The complete syntax of the new command is as follows:
Mode:
gateway sip <sip-gw-name> / service <sip-service-name>
SIP Remote-Party-ID
This procedure enables support for the SIP Remote-Party-ID header according to draft-sip-privacy-01. If this
feature is enabled, the Remote-Party-ID SIP-Header will be used instead of the From-Header.
Step
Command
Purpose
1
node(gw-sip)[sip]#
authentication
realm user-
name password
[default]
Add an authentication entry for a user.
Realm is the name of the authentication
realm as defined on the SIP server, which
requests authentication.
Username and Password are the credentials
to be used for authentication.
The default parameter indicates that this set
of credentials should also be used, if the user-
name does not match the username of the
local SIP URI. There is only one default set of
credentials allowed for each realm.
2
Repeat step 1 for any additional authentication credentials you need to add.
Command
Purpose
[
name
] (svc-sip)[svc-name]# [no] contact-
address { <ip-address> | nat-address }
Define the SIP contact / SDP IP address.