Configuring SIP


Configuring SIP

A SIP agreement consists of two parts: the SIP UA and the VoIP punch aeon that select

SIP as the affair protocol.

To accommodate Cisco IOS gateways into a SIP account provider VoIP network, you can perform,

at least, the afterward steps:

Step 1. Enable the SIP articulation account aural Cisco IOS.

Step 2. Specify the ambit for the SIP service.

Step 3. Configure the SIP UA.

Step 4. Configure the SIP-based VoIP punch aeon to affix and avenue calls to the

service provider’s SIP network.

Configuring a SIP Aperture Example

Figure 5-30 shows a book area you affix Cisco Unified Communications

Manager Express to a SIP account provider. The SIP articulation account agreement is one

part of the SIP configuration.

306 Authorized Self-Study Guide: Cisco Articulation over IP (CVOICE)

SIP Gateway

Configure Cisco Unified Communications Manager

Express to affix to a SIP account provider

network and avenue alien calls via that connection.

Sip2.cisco.com

SIP ITSP

IP

Figure 5-30 Integrating IOS Gateways with a SIP ITSP

SIP Aperture Agreement Scenario

As a arrangement administrator, one of your duties is to configure a articulation aperture to meet

network requirements. Specifically, you accept been asked to accommodate SIP connectivity

with your company’s VoIP account provider.

The requirements are as follows:

■ Use SIP as a signaling protocol.

■ Set the carriage agreement to UDP.

■ Use interface Loopback 0 as the antecedent interface for SIP.

■ Modify the UA as follows:

■ Enable bounded authentication.

■ Enable E.164 abode allotment for anon absorbed analog phones.

■ Configure a SIP server to be acclimated with punch peers.

■ Change the cardinal of SIP INVITE, RESPONSE, BYE, and Abolish retries to 2.

SIP Aperture Agreement Procedure

The afterward action describes how to configure a SIP aperture as per network

requirements:

Step 1. Enter voice-service agreement approach and specify VoIP as the voiceencapsulation

type.

Router(config)#voice account {pots | voatm | vofr | voip}

Step 2. Enter SIP agreement mode.

Router(conf-voi-serv)#sip

Step 3. Specify SIP parameters.

Specify the basal carriage band agreement for SIP messages, and bind

the antecedent abode for signaling and media packets to the IP abode of a specific

interface.

Router(conf-serv-sip)#session carriage { tcp | udp }

Router(conf-serv-sip)#bind {control | media | all} source-interface

interface-id

If the bind command is not enabled, the IP band still provides the best local

address.

Step 4. Exit SIP agreement mode.

Router(conf-serv-sip)#exit

Step 5. Activate the articulation service.

Router(conf-voi-serv)#no shutdown

Step 6. Enter SIP UA agreement mode.

Router(config)#sip-ua

Step 7. Configure Digest Authentication.

Router(config-sip-ua)#authentication username name countersign password

realm string

Step 8. Enable the SIP aperture to annals E.164 numbers on account of analog telephone

voice ports (FXS), IP buzz basic articulation ports (EFXS), and SCCP

phones with an alien SIP proxy or SIP registrar.

Router(config-sip-ua)#registrar name expires secs

Step 9. Enter the hostname or IP abode of the SIP server interface.

Router(config-sip-ua)#sip-server {dns:[hostname] | ipv4:ip_addr:[portnum]}

If you use this command, you can specify affair ambition sip-server for each

dial associate instead of again entering the SIP server interface abode for

each punch peer.

Step 10. Adjust the SIP ambit per arrangement requirements.

Router(config-sip-ua)#retry {invite cardinal | acknowledgment cardinal | bye

number | abolish number}

The complete agreement for these accomplish is presented in Archetype 5-14.

Example 5-14 Integrating IOS Gateways with a SIP ITSP

308 Authorized Self-Study Guide: Cisco Articulation over IP (CVOICE)

Router(config)#voice account voip

Router(conf-voi-serv)#sip

Router(conf-serv-sip)#session carriage udp

Router(conf-serv-sip)#bind ascendancy source-interface Loopback 0

Router(conf-serv-sip)#bind media source-interface Loopback 0

Router(conf-serv-sip)#exit

Router(conf-voi-serv)#no shutdown

Router(config)#sip-ua

Router(config-sip-ua)#authentication username JDoe countersign secret

Router(config-sip-ua)#registrar dns:sip2.cisco.com expires 3600

Router(config-sip-ua)#sip-server dns:sip2.cisco.com

Router(config-sip-ua)#retry allure 2

Router(config-sip-ua)#retry acknowledgment 2

Router(config-sip-ua)#retry bye 2

Router(config-sip-ua)#retry abolish 2

SIP Dial-Peer Example

SIP is called as the alarm ascendancy agreement from central a punch peer. SIP is requested by the

session agreement sipv2 dial-peer subcommand.

In this example, both punch aeon accommodate the affair agreement sipv2 subcommand, and SIP

is acclimated back the destination arrangement matches either punch peer. The affair ambition distinguishes

one affair from the other.

In dial-peer 999, the IP abode of the server is provided as the affair target. The

address can be the abode of a UA, proxy server, or alter server.

In dial-peer 200, the affair ambition is the sip-server parameter. Back the sip-server

parameter is the target, the IP abode of the absolute server is taken from the sip-server

subcommand in the SIP UA configuration. This agency that from all-around configuration

mode, the arrangement ambassador has entered the sip-ua command and the sip-server

dns:server subcommand. The abode represents the area of a proxy server or redirect

server. In this example, the name of the SIP server is “sip2.cisco.com.” The punch peer

must apperceive how to accord with DTMF signals. The afterward archetype uses the dtmf-relay

sip-notify command acclimated for sending telephone-event notifications via SIP NOTIFY

messages from a SIP gateway.

The cartography and complete agreement for this book are presented in Figure 5-31

and in Archetype 5-15.

Figure 5-31 SIP Dial-Peer Cartography Example

Example 5-15 SIP Dial-Peer Agreement Example

Chapter 5: Examining VoIP Gateways and Aperture Ascendancy Protocols 309

SIP Gateway

192.168.1.100

Ext.: 2...

Sip2.cisco.com

CUCM: 10.1.1.15

SIP ITSP

IP

IP

Router(config)#dial-peer articulation 2000 pots

Router(config-dial-peer)#destination-pattern 2...

Router(config-dial-peer)#session agreement sipv2

Router(config-dial-peer)#session ambition sip-server

Router(config-dial-peer)#dtmf-relay rtp-nte

Router(config)#dial-peer articulation 2001 pots

Router(config-dial-peer)#destination-pattern 2...

Router(config-dial-peer)#session agreement sipv2

Router(config-dial-peer)#session ambition ipv4:10.1.1.15

Router(config-dial-peer)#dtmf-relay sip-notify

Router(config-dial-peer)#preference 1

Router(config)#dial-peer articulation 90 voip

Router(config-dial-peer)#destination-pattern 9T

Router(config-dial-peer)#session ambition ipv4:192.168.1.100

Router(config-dial-peer)#session agreement sipv2

Router(config-dial-peer)#dtmf-relay rtp-nte