39 • SIP gateway configuration SmartWare Software Configuration Guide468 Gateway configuration task listSN(cfg)#gateway sip sipSN(gw-sip)[sip]#use profile voip myvoipBinding the gateway to an IP interfaceBinding the gateway to one of the available IP interfaces is required to allow the gateway to determine the localIP address it should use. The gateway needs to know the local IP address For example, when it needs to tell theremote gateway in the call-signaling to which IP address the remote gateway should send the media streams(RTP data). The gateway always uses the IP address of the interface to which it is bound, when a local IPaddress is required. The following procedure describes how to bind the gateway to a local IP interface.Mode: Gateway SIPExample: Binding the gatewayThe following example shows how to bind the gateway to an IP interface.SN>enableSN#configureSN(cfg)#gateway sip sipSN(gw-sip)[sip]#bind interface eth0Enable the GatewayIn order to become active the SIP gateway must be enabled. The following procedure enables the SIP gateway:Mode: Gateway SIPExample: Enabling an SIP Gateway ConfigurationThe following example shows how to enable an already defined SIP Gateway.SN(cfg)#gateway sip sipSN(gw-sip)[sip]#no shutdownRegistering with a registrar (optional)If necessary, the SIP gateway can register one or more users with a SIP compliant registrar. If the gateway isused as a gateway to the PSTN, this functionality is usually not required. However, if the gateway is responsiblefor terminals, which are directly attached to it, it is often required that the gateway registers the phone numbersor usernames associated with these terminals with a registrar.Procedure: To register users with a SIP registrarStep Command Purpose1node(gw-hsip)[sip]#bind interfaceif-name Binds the gateway to the IP interface if-name.Step Command Purpose1node(gw-sip)[sip]#no shutdown Enable the SIP gateway