Configuration Examples 565
SmartWare Software Configuration Guide 46 • Context SIP gateway overview
Configuration Examples
Example 1
This is the minimal configuration of a working context sip-gateway. It has one transport interface that is bound
to the ip address 0.0.0.0 and to the port 5060. With this configuration, the context sip-gateway processes all
SIP requests addressed to port 5060 independent on which ip interface they arrive.
context sip-gateway SIP-GW
interface lan
bind port 5060
context sip-gateway SIP-GW
no shutdown
Example 2
The following example shows a context sip-gateway that is explicitly bound to a LAN-Side and a WAN-Side ip
interface. In this case, only SIP requests sent to ip interface 'eth0' and 'pvc100' will be processed. This could be
a Back-To-Back User Agent application that interconnects a private SIP environment and a public SIP envi-
ronment.
context sip-gateway SIP-GW
interface lan
bind interface eth0 context router port 5060
interface wan
bind interface pvc100 context router port 5060
context sip-gateway SIP-GW
no shutdown
Example 3
If special features like Outbound Registration, Inbound Registration or Authentication is required, one or
more location services must be configured that enables theses capabilities in general, for a group of identities or
just for a single identity. These location services must be bound to the context sip-gateway that is responsible to
manage the location service's domains. For detailed description about location service configuration, see Chap-
ter 50, “Authentication Service” on page 604.
context sip-gateway SIP-GW
interface lan
bind interface eth0 context router port 5060
interface wan
bind interface pvc100 context router port 5060
context sip-gateway SIP-GW
bind location-service SIP_LS_1
no shutdown