Table Of Contents
Session Initiation Protocol (SIP) for VoIP
Related Features and Technologies
Supported Standards, MIBs, and RFCs
Configuring the SIP User Agent (UA)
Changing the Configuration of the SIP User Agent (UA)
Configuring SIP Support for VoIP Dial Peers
Configuring SIP Call Transfer for a POTS Dial Peer
Configuring SIP Call Transfer for a VoIP Dial Peer
Configuring Phone Number Translation Rules
Verifying the SIP Feature Configuration
Basic SIP Configuration Example
Configuring SIP with Multiple Codecs Example
Configuring Phone Number Translation Rules Examples
Call Transfer Configuration Examples
Session Initiation Protocol (SIP) for VoIP
Document Update Alert
This document was originally produced for Cisco IOS Release 12.2(11)T. This feature has been updated in subsequent releases, and more recent documentation is available.
If you are using Cisco IOS Release 12.3 or higher, refer to the following documentation in the Cisco IOS Voice Configuration Library, Release 12.3:
•
Cisco IOS SIP Configuration Guide
If you are using Cisco IOS Release 12.2 or higher, refer to the following chapter in the Cisco IOS Voice, Video, and Fax Configuration Guide, Release 12.2:
•
Configuring Session Initiation Protocol for Voice over IP
Feature History
This document describes the Session Initiation Protocol (SIP) for VoIP on Cisco 7200 series routers in Cisco IOS Release 12.2(8)T and contains the following sections:
•
Supported Standards, MIBs, and RFCs
Feature Overview
Session Initiation Protocol (SIP)
Voice over Internet Protocol (VoIP) currently implements ITU's H.323 specification within Internet Telephony Gateways (ITGs) to signal voice call setup. Session Initiation Protocol (SIP) is a protocol developed by the Internet Engineering Task Force (IETF) Multiparty Multimedia Session Control (MMUSIC) Working Group as an alternative to H.323. The Cisco SIP functionality equips Cisco routers to signal the setup of voice and multimedia calls over IP networks. SIP provides an alternative to H.323 within the VoIP internetworking software.
The SIP feature also provides nonproprietary advantages in the areas of:
•
Protocol extensibility
•
System scalability
•
Personal mobility services
•
Interoperability with different vendors
The SIP feature includes the following functionality:
•
Configurable in-band alerting
•
Ability to specify the maximum number of SIP redirects
•
Ability to specify SIP or H.323 on a dial-peer basis
•
Support for both User Datagram Protocol (UDP) and Transmission Control Protocol (TCP) transport layers for SIP messages
•
Powerful debugging support
•
Support for Domain Name System Server (DNS SRV) records for resolving SIP server host names
•
Configurable SIP message timers and retries
SIP Enhancements
Beginning in Cisco IOS Release 12.1(3)T, the following enhancements to SIP were introduced:
•
Configurable SIP message timers and retries
•
Interoperability with unified call services (UCS)
•
Support for a variety of signaling protocols, including ISDN, PRI, and CAS
•
Support for a variety of interfaces, including
–
Analog interfaces: FXS/FXO/E&M analog interfaces
–
Digital interfaces: T1 CAS and E1 CAS
•
Support for SIP redirection messages and interaction with SIP proxies. The gateway can redirect an unanswered call to another SIP gateway or SIP-enabled IP phone. In addition, the gateway supports proxy-routed calls.
•
Interoperability with DNS servers including support for DNS SRV and "A" records to look up SIP URLs
•
Support for SIP over TCP and UDP network protocols
•
Support for Routing Table Protocol/RTP Control Protocol (RTP/RTCP) for media transport in VoIP networks
•
Support for the following codecs (see Table 1):
•
Support for Record-Route headers
•
Support for IP Quality of Service (QoS) and IP precedence
•
Support for IP Security (IPSec) for SIP signalling messages
•
Authentication, Authorization, and Accounting (AAA) support. For accounting, the gateway device generates call data record (CDR) accounting records for export. For authentication, the SIP Gateway sends validate requests to the AAA server. For authorization, the existing access lists are used.
•
Support for configurable expiration time for SIP INVITEs and maximum number of proxies or redirect servers that can forward a SIP request
•
Expanded support for the mapping of Public Switched Telephone Network (PSTN) cause codes to SIP events
•
Ability to hide the calling party's identity based on the setting of the ISDN presentation indicator
For more information, see the Configuring SIP for VoIP part in the Cisco IOS Voice, Video, and Fax Configuration Guide, Release 12.2.
Call Transfer Capabilities Using the Refer Method
The Refer method provides call transfer capabilities to supplement the Bye and Also methods already implemented on Cisco IOS Session Initiation Protocol (SIP) gateways.
Call transfer allows a wide variety of decentralized multiparty call operations. These decentralized call operations form the basis for third-party call control, and thus are important features for Voice over IP (VoIP) and SIP. Call transfer is also critical for conference calling, where calls can transition smoothly between multiple point-to-point links and IP-level multicasting.
For more information, see the document Call Transfer Capabilities Using the Refer Method.
Configurable PSTN Cause Code to SIP Response Mapping
This feature allows customization of the standard RFC 2543 mappings between the Session Initiation Protocol (SIP) network and the Public Switched Telephone Network (PSTN).
For calls to be established between a SIP network and a PSTN, the two networks must be able to interoperate. One aspect of their interoperation is the mapping of PSTN cause codes, which indicate reasons for PSTN call failure or completion, to SIP status codes or events. The opposite is also true: SIP status codes or events are mapped to PSTN cause codes. Event mapping tables found in this document show the standard or default mappings between SIP and PSTN.
However, you may want to customize the SIP user agent software to override the default mappings between the SIP network and the PSTN. The Configurable PSTN Cause Code to SIP Response Mapping feature allows you to configure specific map settings between the PSTN and SIP networks. Thus, any SIP status code can be mapped to any PSTN cause code, or vice versa.
When set, these settings can be stored in the NVRAM and are restored automatically on bootup.
For more information about this feature, including configuration tasks and examples, see the document Configurable PSTN Cause Code to SIP Response Mapping.
DTMF Relay for SIP Calls Using Named Telephone Events
The DTMF Relay for SIP calls Using Named Telephone Events (NTE) feature adds support for relaying DTMF tones and hookflash events in SIP on Cisco VoIP gateways.
Note
The DTMF Relay for SIP Calls Using Named Telephone Events feature is implemented for SIP only.
Using NTE to relay dual tone multifrequency (DTMF) tones provides a standardized means of transporting DTMF tones in RTP packets according to section 3 of RFC 2833, RTP Payload for DTMF Digits, Telephony Tones and Telephony Signals, developed by the Internet Engineering Task Force (IETF) Audio/Video Transport (AVT) working group. RFC 2833 defines formats of NTE RTP packets used to transport DTMF digits, hookflash, and other telephony events between two peer endpoints.
DTMF tones are generated when a button on a touch-tone phone is pressed. When the tone is generated, it is compressed, transported to the other party, and decompressed. If a low-bandwidth codec, such as a G.729 or G.723 is used without a DTMF relay method, the tone may be distorted during compression and decompression.
The DTMF Relay for SIP Calls Using NTE feature adds SIP functionality. SIP IP phones currently do not have the capability to generate DTMF tones. Currently, DTMF tones are transferred using Cisco Proprietary RTP or transparently in band. The DTMF Relay using NTE feature allows SIP phones calling voice mail or other interactive voice response (IVR) systems to relay DTMF tones. Additionally, this feature prevents distortion of DTMF tones if the RTP session uses a low bit-rate codec, because tones are passed in NTE packets and are not compressed using the default codec.
With the DTMF Relay Using NTE feature, the endpoints can perform per-call negotiation of the DTMF relay method. During call setup, the calling and called parties negotiate to choose the DTMF relay mode. They also negotiate to determine the payload type value for the NTE RTP packets.
In a SIP call, the gateway forms a session description protocol (SDP) message that indicates:
•
If NTP will be used
•
Which events will be sent using NTE
•
NTE payload type value
The DTMF Relay Using NTE feature also provides hookflash support using in-band and out-of-band modes. In in-band mode, the gateway relays the hookflash without notifying the application, and the default session application and any IVR scripts do not receive the hookflash.
In out-of-band mode, the gateway reports the hookflash to the application and the application can relay the hookflash to the next call leg.
Note
In addition, the DTMF Relay for SIP Calls Using NTE feature does not support hookflash generation for advanced features such as call waiting and conferencing.
For more information, see the document DTMF Relay Using Named Telephone Event.
ISDN Progress Indicator Support for SIP Using 183 Session Progress
This feature provides support for handling inband treatments, such as call progress tones and announcements, when SIP is the session protocol for establishing call connections. The feature ensures the correct establishment of the media stream through the SIP network to allow the successful transport of in-band treatments, which might ingress from a PSTN node on a SIP gateway or egress to a PSTN node. The feature also allows VoIP calls using SIP to provide inband call treatment such as ringback tones, announcements when interworking with ISDN and channel associated signaling (CAS) PSTN networks.
SIP 183 Session Progress messages facilitate better call treatment for SIP VoIP calls when interworking with PSTN networks. The introduction of the 183 Session Progress message allows a called user agent to suppress local alerting from the calling user agent, and to play a tone or announcement during a preliminary call session, before the full SIP session is set up. This functionality enables the calling party to be notified of the status of the call without being charged for the preliminary portion of the call. A new Session header in the 183 Session Progress message controls whether or not the called user agent plays a tone or announcement for the calling party. The 183 Session Progress message is supported by default and does not require any special configuration.
RFC 2782 Compliance for DNS SRV
SIP on Cisco's VoIP gateways uses DNS SRV query to determine the IP address of the SIP Proxy or the Redirect Server. The query string generated has a prefix in the form of "protocol.transport." and is attached to the Fully Qualified Domain Name (FQDN) of the next hop SIP server. This prefix style from RFC 2052 has always been available; however, with this release a second style is also available. The second style is in compliance with RFC 2782, and prepends the protocol label with an underscore "_"; as in "_protocol._transport.". The addition of the underscore reduces the risk of the same name being used for unrelated purposes.
Use the srv version command to configure the DNS SRV feature.
For more information, see the document SIP Gateway Support of RSVP and TEL URL.
SIP Diversion Header Implementation for Redirecting Number
The SIP Diversion Header Implementation for Redirecting Number feature provides support for a new SIP header field; Call Control (CC)-Diversion. The CC-Diversion header field enables the SIP gateway to pass call control redirecting information during the call setup. Call control redirection is the redirection of a call based on a subscriber service such as call forwarding. Call redirection information is information typically used for Unified Messaging and voice mail services to identify the recipient of a message. Call control rediversion information can also be used to support applications such as automatic call distribution, and enhanced telephony features such as Do Not Disturb and Caller ID.
If generated by the SIP gateway during call process, the CC-Diversion header field is based on the contents of the Redirecting Number Information Element (IE) in the ISDN Setup message. In addition, information such as the reason the call was redirected is included in the CC-Diversion header field.
For more information, see the document SIP Diversion Header Implementation for Redirecting Number.
SIP Gateway Support for Bind Command
Currently, Session Initial Protocol (SIP) signaling and media paths use an IP address that is provided by the IP layer as the source address. However, with the addition of the bind command, you can now configure the source IP address of signaling packets, or both signaling and media packets.
In previous releases of Cisco IOS software, the source address of a packet going out of the gateway was never deterministic. That is, the session protocols and VoIP layers always depended on the IP layer to give the best local address. The best local address was then used as the source address (the address showing where the SIP request came from) for signaling and media packets. Using this nondeterministic address occasionally caused confusion for firewall applications, as a firewall could not be configured with an exact address and would take action on several different source address packets.
However, the bind interface command allows you to configure the source IP address of signaling and media packets to a specific interface's IP address. Thus, the address that goes out on the packet is bound to the IP address of the interface specified with the bind command. Packets that are not destined to the bound address are discarded.
When you do not want to specify a bind address, or if the interface is down, the IP layer still provides the best local address.
The bind command performs different functions based on the state of the interface.
For more information, see the document SIP Gateway Support for the Bind Command.
SIP Gateway Support of RSVP and TEL URL
The SIP Gateway Support of RSVP and TEL URL feature provides the following SIP enhancements:
•
RSVP
•
Telephone URL format in SIP messages
•
Interaction with forking proxies
•
SIP intra-gateway hairpinning
•
Reliability of SIP provisional responses
•
Configurable screening indicator
•
RFC 2782 Compliance (style of DNS SRV queries)
For more information, see the document SIP Gateway Support of RSVP and TEL URL.
SIP Intra-Gateway Hairpinning
SIP hairpinning is a call routing capability in which an incoming call on a specific gateway is signaled through the IP network and back out the same gateway. This can be a Public Switched Telephone Network (PSTN) call routed into the IP network and back out to the PSTN over the same gateway, as shown below:
Similarly, SIP hairpinning can be a call signaled from a line (for example, a telephone line) to the IP network and back out to a line on the same access gateway:
With SIP hairpinning, unique gateways for ingress and egress are no longer necessary.
For more information about the SIP Intra-Gateway Hairpinning feature, including configuration tasks and examples, see the document SIP Gateway Support of RSVP and TEL URL.
SIP INVITE Request with Malformed Via Header
In the past, when an INVITE contained a malformed Via header, the gateway would print a debug message and discard the INVITE without incrementing a counter. However, the printed debug message was often inadequate, and it was difficult to detect that messages were being discarded.
Note
This feature applies to messages arriving on UDP, because the Via header is not used to respond to messages arriving on TCP.
For more information about this feature, see the document SIP INVITE Request with Malformed Via Header.
SIP T.38 Fax Relay
The SIP T.38 Fax Relay feature adds standards-based fax support to SIP and conforms to ITU-T T.38, Procedures for real-time Group 3 facsimile communication over IP networks. The ITU-T standard specifies real-time transmission of faxes between two regular fax terminals over an IP network.
Much like a voice call, SIP T.38 Fax Relay requires call establishment, data transmission, and release signaling. The following figure shows the basic setup of SIP T.38 Fax Relay:
For more information, including configuration tasks and examples, see the document SIP T.38 Fax Relay.
SIP User Agent MIB
The SIP User Agent MIB addresses the need for SIP-specific gateway information to be made available by Simple Network Management Protocol (SNMP). The implementation of this capability is based upon the current IETF draft "draft-ietf-sip-mib-01.txt".
The implementation of the SIP MIB in the Cisco SIP gateway supports configuration objects related to SIP such as the configured SIP server, SIP timers, and number of retry attempts allowed for requests and responses.
The SIP MIB also supports SIP-specific statistical information objects. This includes information on numbers of provisional responses, success responses, redirection responses, client error responses, server error responses, and global error responses. In addition, the SIP MIB includes information regarding SIP Requests initiated and received as well as information about retries associated with each SIP Request type.
Benefits
Session Initiation Protocol
The SIP feature meets the needs of service providers that use SIP on the gateways of their VoIP network to:
•
Enable Cisco voice-enabled platforms to provide RFC 2543-compliant user-agent client gateways
•
Support codecs capable of Carrier-class voice quality
Although SIP is simpler than H.323, SIP provides similar capabilities in:
•
System scalability
•
End-to-end solutions
•
High-density voice gateways
SIP Enhancements
The SIP feature enhancements enable SIP gateways to:
•
Enable Cisco voice-enabled platforms to provide RFC 2543-compliant user-agent client gateways
•
Support proxy-routed calls
•
Redirect an unanswered call to another SIP gateway or SIP-enabled IP phone
•
Allow end users to place calls on hold
•
Hide the calling party's identity based on the setting of the ISDN presentation indicator
Call Transfer Capabilities Using the Refer Method
•
SIP Call Transfer Using the Refer Method supports attended transfer and blind transfer in accordance with emerging SIP standards.
Configurable PSTN Cause Code to SIP Response Mapping
•
The Configurable PSTN Cause Code to SIP Response Mapping feature offers control and flexibility. By using command-line interface commands, you can easily customize the default or standard mappings that are currently available between PSTN and SIP networks. This allows for flexibility when setting up deployment sites.
DTMF Relay for SIP Calls Using Named Telephone Events
•
DTMF relay support for SIP
•
Hookflash relay support for SIP
•
Simultaneous support with Cisco Proprietary RTP (used for modem passthrough and modem relay)
•
Provisioning of RTP payload type values
•
Per-call negotiation of relay method and payload type values
•
More accurate tone delivery
•
Interoperability with SIP applications from other vendors
ISDN Progress Indicator Support for SIP Using 183 Session Progress
•
Ensures that in-band treatments initiated in the PSTN are successfully transported through the SIP network
•
Allows for internetworking of features between the PSTN and the SIP network so that the correct inband feedback is provided to the feature user
RFC 2782 Compliance for DNS SRV
•
Compliance with RFC 2782 brings DNS compatibility. RFC 2782 updates RFC 2052 by prepending the protocol label with an underscore "_". This change reduces the risk of the same name being used for unrelated purposes. However, backward compatibility is available, allowing newer versions of IOS software to work with older networks that only support RFC 2052.
•
Currently you must know the exact address of a server to contact it. SRV records enable administrators to use several servers to provide the same service within a single domain. SRV Resource Records (RRs) allow administrators to define primary and backup servers and move services from host-to-host without affecting service.
SIP Diversion Header Implementation for Redirecting Number
•
Provides support for the Call Control (CC)-Diversion SIP header field
•
Enables the SIP gateway to pass call control redirecting information during the call setup
•
Redirection of a call based on a subscriber service such as call forwarding
•
Unified Messaging and voice mail services to identify the recipient of a message
•
Support of applications such as automatic call distribution, and enhanced telephony features such as Do Not Disturb and Caller ID
SIP Gateway Support for the Bind Command
•
With the bind command, SIP signaling and media paths can advertise the same source IP address on the gateway for certain applications, even if the paths used different addresses to reach the source. This eliminates confusion for firewall applications that, prior to the use of binding, may have taken action on several different source address packets.
SIP Gateway Support of RSVP and TEL URL
•
SIP Gateway Support of RSVP and TEL URL enables QoS, ensuring certain bandwidth reservations for specific calls. The bandwidth reservation can be best-effort, in which case the call is completed even if the reservation is not supported by both sides or cannot be established. Or the bandwidth reservation can be required, and the call is not set up if the bandwidth reservation is not performed successfully.
•
With the reliable provisional response features, you can ensure that media information is exchanged and resource reservation takes place before connecting a call.
•
Forked call responses to Cisco IOS gateways are now supported. Call forking enables the terminating gateway to handle multiple requests and the originating gateway to handle multiple provisional responses for the same call. Call forking is required for the deployment of the find me/follow me type of services.
•
Gateways now accept TEL calls sent through the Internet, which provides interoperability with other equipment that uses TEL URL. The TEL URL feature also gives service providers a way to differentiate services based on the type of call, allowing for deployment of specific services.
SIP Intra-Gateway Hairpinning
•
Hairpinning enables the same gateway to originate and terminate a call. It works independently of, but enhances, call forking. It also enables call control features to function when it is required that an incoming PSTN call is routed back out to the PSTN on the same Cisco gateway.
SIP INVITE Request with Malformed Via Header
•
Incrementing a counter and sending a response, rather than simply discarding the INVITE, if it contains a malformed Via header. The counter provides a useful and immediate indication that an INVITE has been discarded, and the response allows the result to be propagated back to the sender.
SIP T.38 Fax Relay
•
Cisco furthers its commitment to open standards and to the success of its customers by supporting standards such as ITU-T T.38, Procedures for real-time Group 3 facsimile communication over IP networks and T-38 Annex-D.
•
T.38 Fax Relay over packet networks has become a popular way to bypass tolls associated with sending faxes. SIP T.38 Fax Relay provides standards-based toll bypass for both fax and voice calls. Toll bypass capabilities can result in cost savings to end users of packet telephony networks.
•
A Cisco originating gateway (OGW) that has T.38 support automatically enters T.38 mode if it receives a T.38 INVITE, even if it is configured for the Cisco proprietary Fax Relay. This choice of fax protocols provides an extremely reliable fax transfer mechanism.
•
Currently, SIP uses the Cisco proprietary Fax Relay solution. However, Cisco Fax Relay is sometimes not an ideal solution for enterprise and service provider customers who have implemented a multivendor network. Because the T.38 Fax Relay protocol is standards-based, Cisco gateways and gatekeepers can operate with third-party T.38-enabled gateways and gatekeepers in a multivendor network where real-time Fax Relay capabilities are required.
•
T.38 Fax Relay is already implemented in Cisco gateways that support H.323 and Media Gateway Control Protocol (MGCP). The addition of T.38 for SIP strengthens SIPs position as a low-cost standards-based infrastructure, and increases its viability as the protocol of choice for next-generation IP networks.
SIP User Agent MIB
•
The SIP User Agent MIB provides SIP-specific information via SNMP—this information allows customers to have SIP-specific information available to evaluate the performance of gateways in conjunction with their SIP networks.
Restrictions
SIP
Ensure that your access platform has 16 MB Flash memory and 64 MB DRAM memory minimum, and that I/O memory is set to either 8 or 16 MB.
SIP Enhancements
•
The SIP Gateway does not support codecs other than those listed in Table 1.
–
If on the originating gateway, an appropriate SIP debug trace is presented, indicating the failure to originate the SIP call leg.
–
If on the terminating gateway, an appropriate SIP response (4xx) with a warning indicating incompatible media types is sent.
•
The SIP Gateway requires each INVITE to include a Session Description Protocol (SDP) header.
•
The contents of the Session Description Protocol (SDP) header cannot change between the 180 Ringing message and the 200 OK message.
•
SIP requires that all times be sent in Greenwich Mean Time (GMT). The INVITE is sent with GMT. However, the default for routers is to use Coordinated Universal Time (UTC). To configure the router to use GMT, issue the clock timezone command in global configuration mode and specify the GMT time.
•
The Enhancements to SIP for VoIP feature supports plain old telephone service (POTS) to POTS hairpinning (which means the call comes in one voice port and is router out another voice port). It also supports POTS to IP call legs and IP to POTS call legs. However, it does not support IP to IP hairpinning. This means the SIP Gateway cannot take an inbound SIP call and reroute it back to another SIP device using the VoIP dial peers.
•
SIP requires that all times be sent in Greenwich Mean Time (GMT). The INVITE is sent with GMT. However, the default for routers is to use Coordinated Universal Time (UTC). To configure the router to use GMT, issue the clock timezone command in global configuration mode and specify the GMT.
•
VoIP dial peers allow a user to configure the bytes parameter associated with a codec. However, Cisco SIP gateways currently do not present or respond to this parameter. Currently, the a=ptime parameter is not sent or recognized in the SDP body of a SIP message.
•
With call transfer, the Requested-By header identifies the party initiating the transfer. The Requested-By header is included in the INVITE request that is sent to the transferred-to party only if a Requested-By header was also included in the Bye request.
•
With call transfer, the Also header identifies the transferred-to party. To invoke a transfer, the user portion of the Also header must be defined explicitly or with wildcards as a destination pattern on a VoIP dial peer. The transferred call is routed using the session target parameter on the dial peer instead of the host portion of the Also header. Therefore, the Also header can contain user@host but the host portion is ignored for call routing purposes.
•
The grammar for the Also and Requested-By headers is not fully supported. Only the name-addr header is supported. This implies that the crypto-param, which might be present in the Bye request, will not be populated in the ensuing INVITE to the transferred-to party.
•
Cisco SIP Gateways do not support the user=np-queried parameter in a Request URI.
•
If a Cisco SIP Gateway receives an ISDN Progress message, it generates a 183 Session Progress message. If the gateway receives an ISDN ALERT, it generates a 180 Ringing message.
Call Transfer Capabilities Using the Refer Method
•
Although SIP IOS gateways currently support SIP URLs and TEL URLs, the Refer-To header must be in SIP URL format to be valid. The TEL URL format cannot be used, because it does not provide a host portion, and without one, the triggered Invite request cannot be routed.
•
Only three overloaded headers in the Refer-To header are accepted: Accept-Contact, Proxy-Authorization, and Replaces. All other headers present in the Refer-To are ignored.
•
The Refer-To and Contact headers are required in the Refer request. The absence of either header results in a 4xx class response to the Refer request. Also, the Refer request must contain exactly one Refer-To header. Multiple Refer-To headers result in a 4xx class response.
•
The Referred-By header is required in a Refer request. The absence of this header results in a 4xx class response to the Refer request. Also, the Refer request must contain exactly one Referred-By header. Multiple Referred-By headers result in a 4xx class response.
•
As with the Bye and Also call transfer methods, the dial peers must be configured for correct functioning of the Refer method.
DTMF Relay for SIP Calls Using Named Telephone Events
•
The DTMF Relay for SIP calls Using Named Telephone Events feature is only available on Cisco VoIP gateways using SIP. The DTMF Relay for SIP Calls Using NTE feature does not support hookflash generation for advanced features such as call waiting and conferencing.
SIP Gateway Support of RSVP and TEL URL
•
Support for interaction with forking proxies applied only to gateways acting as a user agent client (UAC) is not supported. It does not apply when the gateway acts as a user agent server (UAS). In that case, the proxy forks multiple INVITES with the same call ID to the same gateway but with different request URLs.
•
Forking functionality sets up RSVP for each transaction only if the dial peers are configured for QoS. If not, the calls proceed as best-effort. Bandwidth reservation (QoS) is not supported for Session Description Protocol (SDP changes between 183 Session Progress/180 Alerting and 200 OK responses).
•
Bandwidth reservation (QoS) is not attempted if the desired QoS level is set to the default of best-effort. The desired QoS for the associated dial peer must be set to controlled-load or guaranteed-delay.
•
Distributed Call Signaling (DCS) headers and extensions are not supported.
SIP INVITE Request with Malformed Via Header
•
Distributed Call Signaling (DCS) headers and extensions are not supported.
SIP T.38 Fax Relay
•
For SIP T.38 Fax Relay only UDP is supported for the transport layer.
•
If SIP T.38 Fax Relay is not supported by both gateways, the T.38 negotiation fails and the call reverts back to an audio codec.
•
T.38 Fax Relay requires 64 Kbps, the same amount of bandwidth as a voice call with the G.711 codec.
•
Calling tones (CNG) are optional, and are not used to initiate a switch to T.38 mode. Instead, called terminal identification tones (CED) or preamble flags are used.
•
This feature does not rely on named signaling events (NSE) to signal a switch to T.38 mode. Standard RFC 2543 and RFC 2327 SIP and SDP signaling are used instead.
Note
The transport protocols specified in the ITU-T Recommendation for T.38 are Transmission Control Protocol (TCP) and User Datagram Protocol (UDP). However, only UDP is supported for Cisco IOS Release 12.2(2)XB. For further information on T.38 protocol, refer to the ITU-T Recommendations.
Related Features and Technologies
•
Cisco Fax Relay
•
Cisco IP Phones
•
Cisco QoS
•
Cisco RSVP
•
Cisco SIP Proxy Server
•
Cisco TCL/IVR Version 2.0
•
Cisco VoIP
Related Documents
The following documents contain information related to Cisco SIP functionality:
•
Cisco IOS IP Configuration Guide, Release 12.2
•
Cisco IOS IP Command Reference, Volume 1 of 3: Addressing and Services, Release 12.2
•
Cisco IOS IP Command Reference, Volume 2 of 3: Routing Protocols, Release 12.2
•
Cisco IOS IP Command Reference, Volume 3 of 3: Multicast, Release 12.2
•
Cisco IOS Quality of Service Solutions Command Reference, Release 12.2
•
Cisco IOS Voice, Video, and Fax Command Reference, Release 12.2
•
Cisco IOS Voice, Video, and Fax Configuration Guide, Release 12.2
•
Cisco IP Telephony Network Design Guide
•
Configuring Session Initiation Protocol for Voice over IP
•
Service Provider Features for Voice over IP, Release 12.0(3)T
•
Session Initiation Protocol Call Flows
•
Session Initiation Protocol Gateway Call Flows
•
Session Initiation Protocol Gateway Call Flows and Compliance Information
•
SIP Call Flows, Release 12.2(4)T
•
SIP Diversion Header Implementation for Redirecting Number
•
SIP Gateway Support of RSVP and TEL URL, Release 12.2(2)XB
•
TCL IVR API Version 2.0 Programmer's Guide
•
VoIP Call Admission Control Using RSVP chapter in the Cisco IOS Voice, Video, and Fax Configuration Guide, Release 12.2
•
Voice over IP for the Cisco 2600/3600 Series
Supported Platforms
•
Cisco 2691
•
Cisco 3631
•
Cisco 3725
•
Cisco 3745
•
Cisco 7200 series
•
Cisco AS5850
Determining Platform Support Through Cisco Feature Navigator
Cisco IOS software is packaged in feature sets that support specific platforms. To get updated information regarding platform support for this feature, access Cisco Feature Navigator. Cisco Feature Navigator dynamically updates the list of supported platforms as new platform support is added for the feature.
Cisco Feature Navigator is a web-based tool that enables you to quickly determine which Cisco IOS software images support a specific set of features and which features are supported in a specific Cisco IOS image. You can search by feature or release. Under the release section, you can compare releases side by side to display both the features unique to each software release and the features in common.
Cisco Feature Navigator is updated regularly when major Cisco IOS software releases and technology releases occur. For the most current information, go to the Cisco Feature Navigator home page at the following URL:
Supported Standards, MIBs, and RFCs
Standards
•
ITU-T T.38, Procedures for real-time Group 3 facsimile communication over IP networks
•
ITU-T T.38, Procedures for real-time Group 3 facsimile communication over IP networks, Amendment 1
•
ITU-T, T.38, Annex-D
MIBs
•
CISCO-SIP-UA-MIB
To obtain lists of supported MIBs by platform and Cisco IOS release, and to download MIB modules, go to the Cisco MIB website on Cisco.com at the following URL:
http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml
RFCs
•
RFC 1890, RTP Profile for Audio and Video Conferences with Minimal Control
•
RFC 2327, SIP/SDP Signaling
•
RFC 2543, SIP: Session Initiation Protocol
•
RFC 2728, A DNS RR for Specifying the Location of Services (DNS SRV)
•
RFC 2806, URLs for Telephone Calls
•
RFC 2833, RTP Payload for DTMF Digits, Telephony Tones and Telephony Signals
Prerequisites
General SIP Prerequisites
•
Your gateway must have voice functionality that is configurable for either SIP.
•
Establish a working IP network.
•
Configure VoIP.
•
Ensure that your Cisco 2600 series, Cisco 3600 series, or Cisco 7200 series router has 16-MB Flash memory and 64-MB DRAM memory, minimum.
SIP Gateway Support for Bind Command
•
Set the bind address prior to using the bind command.
Call Transfer Capabilities Using the Refer Method
•
Configure the SIP dial peers for call transfer.
As with the Bye and Also call transfer methods, the dial peers must be configured for correct functioning of the Refer method. See the document Call Transfer Capabilities Using the Refer Method for complete configuration steps.
Configuration Tasks
SIP
See the following sections for configuration tasks for basic SIP functions. Each task in the list is identified as either required or optional.
•
Configuring the SIP User Agent (UA) (required)
•
Changing the Configuration of the SIP User Agent (UA) (optional)
•
Configuring SIP Support for VoIP Dial Peers (optional)
•
Configuring a POTS Dial Peer (optional)
•
Configuring SIP Call Transfer for a POTS Dial Peer (optional)
•
Configuring SIP Call Transfer for a VoIP Dial Peer (optional)
•
Configuring Phone Number Translation Rules (required)
•
Verifying the SIP Feature Configuration (optional)
For more information on SIP configuration, including call flows, refer to the Session Initiation Protocol Call Flows document.
Call Transfer Capabilities Using the Refer Method
For configuration tasks for this feature, see the document Call Transfer Capabilities Using the Refer Method.
Configurable PSTN Cause Code to SIP Response Mapping
For configuration tasks for this feature, see the document Configurable PSTN Cause Code to SIP Response Mapping.
Dual Tone Multifrequency Relay for SIP Calls Using Named Telephone Events
For configuration tasks for this feature, see the document Dual Tone Multifrequency Relay for SIP Calls Using Named Telephone Events.
ISDN Progress Indicator Support for SIP Using 183 Session Progress
There are no configuration tasks for this feature.
RFC 2782 Compliance for DNS SRV
For configuration tasks for this feature, see the document SIP Gateway Support of RSVP and TEL URL.
SIP Diversion Header Implementation for Redirecting Number
For configuration tasks for this feature, see the document SIP Diversion Header Implementation for Redirecting Number.
SIP Gateway Support for Bind Command
For configuration tasks for this feature, see the document SIP Gateway Support for Bind Command.
SIP Gateway Support of RSVP and TEL URL
For configuration tasks for this feature, see the document SIP Gateway Support of RSVP and TEL URL.
SIP Intra-Gateway Hairpinning
There are no configuration tasks for this feature.
SIP INVITE Request with Malformed Via Header
There are no configuration tasks for this feature.
SIP T.38 Fax Relay
For configuration tasks for this feature, see the document SIP T.38 Fax Relay.
SIP User Agent MIB
There are no configuration tasks for this feature.
Configuring the SIP User Agent (UA)
A terminating gateway that is not configured as an SIP user agent cannot receive incoming SIP calls. The transport command opens the SIP listener port (5060) to receive SIP (a SIP user agent is configured to listen by default).
To configure the terminating gateway, enter the following commands beginning in global configuration mode:
Changing the Configuration of the SIP User Agent (UA)
It is not necessary to configure a SIP UA in order to place a call. A SIP UA is configured to listen by default. However, if you want to adjust any of the settings, you can do so using the following commands beginning in global configuration mode:
Configuring SIP Support for VoIP Dial Peers
To configure SIP support for a VoIP dial peer, enter the following commands beginning in global configuration mode:
Configuring a POTS Dial Peer
To configure a POTS dial peer, enter the following commands beginning in global configuration mode:
Configuring SIP Call Transfer for a POTS Dial Peer
To configure SIP call transfer for a POTS dial peer, enter the following commands beginning in global configuration mode:
Configuring SIP Call Transfer for a VoIP Dial Peer
To configure SIP call transfer for a VoIP dial peer, enter the following commands beginning in global configuration mode:
Configuring Phone Number Translation Rules
By default, the SIP gateway tags called numbers that have 11 or more digits as "international" when sending SETUP messages to the PSTN switch. In some cases, such as situations where the user must dial 9 to access an outside line, this assumption may not be correct.
To accommodate such situations, you can define translation rules on the outbound POTS dial peer to convert the "type of number" to the correct value. Translation rules manipulate the called number digits and the "type of number" value associated with the called digits.
To define translation rules on a POTS dial peer, enter the following commands beginning in global configuration mode:
For more information about the commands used to configure translation rules, see the Dial Peer Enhancements documentation on Cisco.com.
Verifying the SIP Feature Configuration
Enter the show running configuration command to verify your configuration.
Configuration Examples
This section provides the following configuration examples:
•
Basic SIP Configuration Example
•
Configuring SIP with Multiple Codecs Example
•
Configuring Phone Number Translation Rules Examples
•
Call Transfer Configuration Examples
Call Transfer Capabilities Using the Refer Method
For configuration examples for this feature, see the document Call Transfer Capabilities Using the Refer Method.
Configurable PSTN Cause Code to SIP Response Mapping
For configuration examples for this feature, see the document Configurable PSTN Cause Code to SIP Response Mapping.
Dual Tone Multifrequency Relay for SIP Calls Using Named Telephone Events
For configuration examples for this feature, see the document Dual Tone Multifrequency Relay for SIP Calls Using Named Telephone Events.
ISDN Progress Indicator Support for SIP Using 183 Session Progress
There are no configuration examples for this feature.
RFC 2782 Compliance for DNS SRV
For configuration examples for this feature, see the document SIP Gateway Support of RSVP and TEL URL.
SIP Diversion Header Implementation for Redirecting Number
For configuration examples for this feature, see the document SIP Diversion Header Implementation for Redirecting Number.
SIP Gateway Support for Bind Command
For configuration examples for this feature, see the document SIP Gateway Support for Bind Command.
SIP Gateway Support of RSVP and TEL URL
For configuration examples for this feature, see the document SIP Gateway Support of RSVP and TEL URL.
SIP Intra-Gateway Hairpinning
There are no configuration examples for this feature.
SIP INVITE Request with Malformed Via Header
There are no configuration examples for this feature.
SIP T.38 Fax Relay
For configuration examples for this feature, see the document SIP T.38 Fax Relay.
SIP User Agent MIB
There are no configuration examples for this feature.
Basic SIP Configuration Example
The following shows an example of the output that appears when you enter the show running configuration command.
Router1# show running configurationBuilding configuration...Current configuration:!version 12.2service timestamps debug datetimeservice timestamps log uptimeno service password-encryption!hostname router1!enable secret 5 $1$dlEK$ziROgcQm08RwI/d0VSfal1enable password password1!dspint DSPfarm1/0!ip subnet-zeroip tcp path-mtu-discoveryip name-server 172.18.192.48!isdn voice-call-failure 0!!controller T1 1/0framing esfclock source line primarylinecode b8zs!controller T1 1/1!!voice-port 2/0/0!voice-port 2/0/1!voice class codec 1codec preference 1 g711alawcodec preference 2 g723r63codec preference 3 g723r53!!dial-peer voice 100 potsdestination-pattern 3660110port 2/0/0!dial-peer voice 200 potsapplication sessiondestination-pattern 3660120port 2/0/1!dial-peer voice 101 voipdestination-pattern 3660210session protocol sipv2session target ipv4:166.34.244.73codec g711ulaw!dial-peer voice 201 voipapplication sesiondestination-pattern 3660220session protocol sipv2session target dns:3660-2.sip.comcodec g711ulaw!dial-peer voice 999 voipdestination-pattern 5551111session protocol sipv2session target ipv4:161.44.53.89session transport tcp!dial-peer voice 300 potsdestination-pattern 2101100!dial-peer voice 350 voipdestination-pattern 3100607session protocol sipv2session target ipv4:172.18.192.197codec g711ulaw!dial-peer voice 301 voipapplication sessiondestination-pattern 1234session protocol sipv2session target ipv4:172.18.192.193codec g711ulaw!dial-peer voice 333 voipapplication sessiondestination-pattern 1235session protocol sipv2session target ipv4:172.18.192.199codec g711ulaw!dial-peer voice 888 voipdestination-pattern 888session protocol sipv2session target ipv4:161.44.53.89session transport tcpcodec g711ulaw!dial-peer voice 260011 voipdestination-pattern 260011session protocol sipv2session target ipv4:172.18.192.164codec g711ulaw!dial-peer voice 444 voipdestination-pattern 2339000session protocol sipv2session target ipv4:172.18.192.205codec g711ulaw!dial-peer voice 111 voipdestination-pattern 111session protocol sipv2session target sip-servercodec g711ulaw!dial-peer voice 7777777 voipdestination-pattern 19197777777session protocol sipv2session target ipv4:172.18.192.38codec g711ulaw!!sip-uamax-forwards 0retry invite 5retry response 0retry bye 0retry cancel 0retry prack 0retry comet 0retry rel1xx 0retry notify 0timers trying 501timers expires 0timers connect 0timers disconnect 0timers prack 0timers comet 0timers rel1xx 0timers notify 0sip-server ipv4:172.16.0.0no transport tcp!!interface FastEthernet0/0ip address 172.18.192.194 255.255.255.0load-interval 30speed autohalf-duplex!interface FastEthernet0/1ip address 166.34.245.230 255.255.255.224load-interval 30speed autohalf-duplex!ip classlessip route 0.0.0.0 0.0.0.0 172.18.192.1ip route 166.34.0.0 255.255.0.0 166.34.245.225no ip http server!access-list 101 permit ip host 10.0.2.30 host 10.0.2.31access-list 101 deny udp any eq rip anyaccess-list 101 deny udp any any eq ripaccess-list 101 deny udp any eq isakmp anyaccess-list 101 deny udp any any eq isakmpaccess-list 101 permit ip any anysnmp-server engineID local 000000090200003094202740snmp-server community public RW!line con 0exec-timeout 0 0transport input noneline aux 0line vty 0 4password xxxlogin!endConfiguring SIP with Multiple Codecs Example
The following shows an example of the output that appears when you enter the show running configuration command. Inapplicable modules are omitted.
Router# show running-configurationversion 12.2. . .hostname UA-4. . .controller T1 0framing esfclock source line primarylinecode b8zsds0-group 0 timeslots 1-24 type e&m-fgb dtmf dnis. . .controller T1 1framing esfclock source line secondary 1linecode b8zsds0-group 0 timeslots 1-24 type e&m-fgb dtmf dnis. . .voice-port 0:0. . .voice-port 1:0. . .voice class codec 100codec preference 1 g726r16codec preference 2 g729r8codec preference 3 g711alawcodec preference 4 g711ulaw. . .dial-peer voice 500 potsdestination-pattern 92055500..port 0:0prefix 92055500. . .dial-peer voice 600 voipincoming called-number 92055500..session protocol sipv2voice-class codec 100no vad. . .dial-peer voice 501 potsdestination-pattern 94055500..port 1:0prefix 94055500. . .dial-peer voice 601 voipincoming called-number 94055500..session protocol sipv2voice-class codec 100no vad. . .interface Ethernet0ip address 172.16.1.1 255.255.255.1no ip directed-broadcastload-interval 30. . .interface FastEthernet0ip address 172.16.1.2 255.255.255.2no ip directed-broadcastload-interval 30duplex autospeed autoConfiguring Phone Number Translation Rules Examples
The following example illustrates a translation rule for dialing national numbers in the situation where the user must dial 9 to access an outside line. In the rule command in this example:
•
91% is the input search pattern. The percent sign (%) is a wild card.
•
The second 1 is the substituted pattern.
•
The match type of number is international.
•
The substituted type of number is national.
The result of this command is that any outgoing call that is destined for a number that starts with 91 and that is considered by the gateway to be an international number will be sent to the PSTN as a national number with a prefix of 1.
translation-rule 10Rule 1 91% 1 international national!!!dial-peer voice 10 potsdestination-pattern 91..........translate-outgoing called 10port 1:D!The following example illustrates a translation rule for dialing national numbers in the situation where the user does not need to dial 9 to access an outside line.
translation-rule 10Rule 1 1% 1 international national!!!dial-peer voice 10 potsdestination-pattern 1..........translate-outgoing called 10port 1:Dprefix 1!The following example illustrates a translation rule for dialing international numbers in the situation where the user must dial 9 to access an outside line.
translation-rule 20Rule 1 9011% 011 unknown international!!!dial-peer voice 10 potsdestination-pattern 9011Ttranslate-outgoing called 20port 1:D!The following example illustrates a translation rule for dialing international numbers in the situation where the user does not need to dial 9 to access an outside line.
translation-rule 20Rule 1 011% 011 unknown international!!!dial-peer voice 10 potsdestination-pattern 011Ttranslate-outgoing called 20port 1:Dprefix 011!Call Transfer Configuration Examples
The following example illustrates how to configure call transfer. In Figure 1, User A and User C are in an established call. User C then transfers the call to User B. This results in call establishment between User A and User B. User C is then disconnected with User A, regardless of whether the transfer fails or succeeds.
When a call originates or terminates on a gateway, either the calling party number, the called party number, or the port is used (depending on the scenario) to match a dial peer in order to determine the basic call characteristics. One of the characteristics to determine is which application to use for the call. For the call transfer to succeed, the matching dial peer must have application set to "session" on the gateway that is controlling the transfer. (This is the gateway that receives the Bye with an Also header).
There are two scenarios for dial-peer matching based on whether the call is coming from a POTS interface or from the IP network:
•
For calls coming from a POTS interface, the port will be used to match a POTS dial peer with the port the call came in from. This dial peer should have "application session."
•
For calls coming from the IP network, a series of criteria is used (in the order listed below) to match dial peers. If the first criteria does not result in a match, the second criteria is used. If the second criteria does not result in a match, the third criteria is used. If a match does not occur, the default application, which does not support call transfer, is used.
a.
The called number matches the "incoming called-number" on a VoIP dial peer.
b.
The calling number matches the "answer-address" on a VoIP dial peer.
c.
The calling number matches the "destination-pattern" on a VoIP dial peer.
Note
For calls coming from the IP network, it is possible for the calling number to be blocked based on privacy restrictions. In such cases, the "incoming called-number" is used for call transfers.
Figure 1 Call Transfer Example
In this example, Gateway 1 handles the transfer (recipient of the Bye with the Also header). User C invokes the transfer service (originator of the Bye with the Also header). There are two scenarios in which a dial peer match must have application set to "session" for the transfer to succeed:
•
Incoming call from the PSTN—User A originates a call to User C. From the prospective of Gateway 1, this would be an incoming call from the POTS interface so Gateway 1 looks for a POTS dial peer matching the port on which the call came in. Gateway 1 must have a POTS dial peer for User A with application set to "session" if transfer is later invoked by User C.
•
Incoming call from IP network—User C calls User A. From the prospective of Gateway 1 this is an incoming call from the IP network. Gateway 1 uses the criteria previously discussed for a VoIP dial peer (match on incoming called-number, answer-address, or destination pattern). Gateway 1 must have one of the following:
–
A VoIP dial peer with an incoming called-number of User A
–
A VoIP dial peer with answer-address of User C
–
A VoIP dial peer with destination-pattern of User C.
The matching dial peer must have application set to "session" if transfer is later invoked by User C.
Note
To handle all call transfer situations, you should configure both POTS and VoIP dial peers.
The following example shows how to apply the "session" application to a dial peer:
Router(config)# dial-peer voice 10 potsRouter(config-dial-peer)# application sessionThe following example shows how to configure the E.164 telephone number 555-7922 for a dial peer:
Router(config)# dial-peer voice 10 potsRouter(config-dial-peer)# destination-pattern +5557922The following example configures the number (310) 555-9261 as the incoming called number for VoIP dial peer 10:
Router(config)# dial-peer voice 10 potsRouter(config-dial-peer)# incoming called-number 3105559261The following example configures the E.164 telephone number 555-9626 as the dial peer of an incoming call:
Router(config)# dial-peer voice 10 potsRouter(config-dial-peer)# answer-address +5559626Command Reference
This section documents modified commands. All other commands used with this feature are documented in the Cisco IOS Release 12.2 command reference publications and in the following documents:
Call Transfer Capabilities Using the Refer Method
For command reference pages for this feature, see the document Call Transfer Capabilities Using the Refer Method.
Configurable PSTN Cause Code to SIP Response Mapping
For command reference pages for this feature, see the document Configurable PSTN Cause Code to SIP Response Mapping.
Dual Tone Multifrequency Relay for SIP Calls Using Named Telephone Events
For command reference pages for this feature, see the document Dual Tone Multifrequency Relay for SIP Calls Using Named Telephone Events.
ISDN Progress Indicator Support for SIP Using 183 Session Progress
There are no commands associated with this feature.
RFC 2782 Compliance for DNS SRV
For command reference pages for this feature, see the document SIP Gateway Support of RSVP and TEL URL.
SIP Diversion Header Implementation for Redirecting Number
For command reference pages for this feature, see the document SIP Diversion Header Implementation for Redirecting Number.
SIP Gateway Support for Bind Command
For command reference pages for this feature, see the document SIP Gateway Support for Bind Command.
SIP Gateway Support of RSVP and TEL URL
For command reference pages for this feature, see the document SIP Gateway Support of RSVP and TEL URL.
SIP Intra-Gateway Hairpinning
There are no commands associated with this feature.
SIP INVITE Request with Malformed Via Header
There are no commands associated with this feature.
SIP T.38 Fax Relay
For command reference pages for this feature, see the document SIP T.38 Fax Relay.
SIP User Agent MIB
There are no commands associated with this feature.
aaa username
To determine the information to populate the username attribute for AAA billing records, use the aaa username command in SIP user agent configuration mode. To achieve default capabilities, use the no form of this command.
aaa username {calling-number | proxy-auth}
no aaa username
Syntax Description
Defaults
calling-number
Command Modes
SIP user-agent configuration
Command History
Usage Guidelines
Parsing of the Proxy-Authorization header, decoding of the PUID and password, and populating of the username attribute with the PUID must be enabled through this command. If this command is not issued, the Proxy-Authorization header is ignored.
The keyword proxy-auth is a nonstandard implementation, and SIP gateways do not normally receive or process the proxy-auth header.
Examples
The following example shows the processing of the SIP username from the Proxy-Authorization header being enabled:
Router(config)# sip-uaRouter(config-sip-ua)# aaa username proxy-authRelated Commands
Command Descriptionshow call active voice
Shows active call information for voice calls or fax transmissions in progress.
show call history voice
Displays the voice call history table.
debug ccsip all
To enable all SIP-related debugging, enter the debug ccsip all command in EXEC mode. To disable all debugging output, use the no form of this command.
debug ccsip all
no debug ccsip all
Syntax Description
This command has no arguments or keywords.
Defaults
SIP debugging is not enabled
Command Modes
EXEC
Command History
Usage Guidelines
The debug ccsip all command enables the following debug SIP commands:
Examples
The following example displays debug output from one side of the call:
Router# debug ccsip allAll SIP call tracing enabledRouter1#*Mar 6 14:10:42: 0x624CFEF8 : State change from (STATE_NONE, SUBSTATE_NONE) to (STATE_IDLE, SUBSTATE_NONE)*Mar 6 14:10:42: Queued event from SIP SPI : SIPSPI_EV_CC_CALL_SETUP*Mar 6 14:10:42: CCSIP-SPI-CONTROL: act_idle_call_setup*Mar 6 14:10:42: act_idle_call_setup:Not using Voice Class Codec*Mar 6 14:10:42: act_idle_call_setup: preferred_codec set[0] type :g711ulaw bytes: 160*Mar 6 14:10:42: Queued event from SIP SPI : SIPSPI_EV_CREATE_CONNECTION*Mar 6 14:10:42: 0x624CFEF8 : State change from (STATE_IDLE, SUBSTATE_NONE) to (STATE_IDLE, SUBSTATE_CONNECTING)*Mar 6 14:10:42: REQUEST CONNECTION TO IP:166.34.245.231 PORT:5060*Mar 6 14:10:42: 0x624CFEF8 : State change from (STATE_IDLE, SUBSTATE_CONNECTING) to (STATE_IDLE, SUBSTATE_CONNECTING)*Mar 6 14:10:42: CCSIP-SPI-CONTROL: act_idle_connection_created*Mar 6 14:10:42: CCSIP-SPI-CONTROL: act_idle_connection_created: Connid(1) created to 166.34.245.231:5060, local_port 54113*Mar 6 14:10:42: sipSPIAddLocalContact*Mar 6 14:10:42: Queued event from SIP SPI : SIPSPI_EV_SEND_MESSAGE*Mar 6 14:10:42: CCSIP-SPI-CONTROL: sip_stats_method*Mar 6 14:10:42: 0x624CFEF8 : State change from (STATE_IDLE, SUBSTATE_CONNECTING) to (STATE_SENT_INVITE, SUBSTATE_NONE)*Mar 6 14:10:42: Sent:INVITE sip:3660210@166.34.245.231;user=phone;phone-context=unknown SIP/2.0Via: SIP/2.0/UDP 166.34.245.230:54113From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>Date: Sat, 06 Mar 1993 19:10:42 GMTCall-ID: ABBAE7AF-823100CE-0-1CCAA69C@172.18.192.194Cisco-Guid: 2881152943-2184249548-0-483039712User-Agent: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledCSeq: 101 INVITEMax-Forwards: 6Timestamp: 731427042Contact: <sip:3660110@166.34.245.230:5060;user=phone>Expires: 180Content-Type: application/sdpContent-Length: 137v=0o=CiscoSystemsSIP-GW-UserAgent 1212 283 IN IP4 166.34.245.230s=SIP Callt=0 0c=IN IP4 166.34.245.230m=audio 20208 RTP/AVP 0*Mar 6 14:10:42: Received:SIP/2.0 100 TryingVia: SIP/2.0/UDP 166.34.245.230:54113From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>Date: Mon, 08 Mar 1993 22:36:40 GMTCall-ID: ABBAE7AF-823100CE-0-1CCAA69C@172.18.192.194Timestamp: 731427042Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledCSeq: 101 INVITEContent-Length: 0*Mar 6 14:10:42: HandleUdpSocketReads :Msg enqueued for SPI with IPaddr: 166.34.245.231:5060*Mar 6 14:10:42: CCSIP-SPI-CONTROL: act_sentinvite_new_message*Mar 6 14:10:42: CCSIP-SPI-CONTROL: sipSPICheckResponse*Mar 6 14:10:42: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 6 14:10:42: Roundtrip delay 4 milliseconds for method INVITE*Mar 6 14:10:42: 0x624CFEF8 : State change from (STATE_SENT_INVITE, SUBSTATE_NONE) to (STATE_RECD_PROCEEDING, SUBSTATE_PROCEEDING_PROCEEDING)*Mar 6 14:10:42: Received:SIP/2.0 180 RingingVia: SIP/2.0/UDP 166.34.245.230:54113From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>Date: Mon, 08 Mar 1993 22:36:40 GMTCall-ID: ABBAE7AF-823100CE-0-1CCAA69C@172.18.192.194Timestamp: 731427042Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledCSeq: 101 INVITEContent-Type: application/sdpContent-Length: 137v=0o=CiscoSystemsSIP-GW-UserAgent 969 7889 IN IP4 166.34.245.231s=SIP Callt=0 0c=IN IP4 166.34.245.231m=audio 20038 RTP/AVP 0*Mar 6 14:10:42: HandleUdpSocketReads :Msg enqueued for SPI with IPaddr: 166.34.245.231:5060*Mar 6 14:10:42: CCSIP-SPI-CONTROL: act_recdproc_new_message*Mar 6 14:10:42: CCSIP-SPI-CONTROL: sipSPICheckResponse*Mar 6 14:10:42: CCSIP-SPI-CONTROL: sipSPICheckResponse : Updating session description*Mar 6 14:10:42: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 6 14:10:42: Roundtrip delay 8 milliseconds for method INVITE*Mar 6 14:10:42: HandleSIP1xxRinging: SDP MediaTypes negotiation successful!Negotiated Codec : g711ulaw , bytes :160Inband Alerting : 0*Mar 6 14:10:42: 0x624CFEF8 : State change from (STATE_RECD_PROCEEDING, SUBSTATE_PROCEEDING_PROCEEDING) to (STATE_RECD_PROCEEDING, SUBSTATE_PROCEEDING_ALERTING)*Mar 6 14:10:46: Received:SIP/2.0 200 OKVia: SIP/2.0/UDP 166.34.245.230:54113From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27D3FCA8-C7FDate: Mon, 08 Mar 1993 22:36:40 GMTCall-ID: ABBAE7AF-823100CE-0-1CCAA69C@172.18.192.194Timestamp: 731427042Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledContact: <sip:3660210@166.34.245.231:5060;user=phone>CSeq: 101 INVITEContent-Type: application/sdpContent-Length: 137v=0o=CiscoSystemsSIP-GW-UserAgent 969 7889 IN IP4 166.34.245.231s=SIP Callt=0 0c=IN IP4 166.34.245.231m=audio 20038 RTP/AVP 0*Mar 6 14:10:46: HandleUdpSocketReads :Msg enqueued for SPI with IPaddr: 166.34.245.231:5060*Mar 6 14:10:46: CCSIP-SPI-CONTROL: act_recdproc_new_message*Mar 6 14:10:46: CCSIP-SPI-CONTROL: sipSPICheckResponse*Mar 6 14:10:46: CCSIP-SPI-CONTROL: sipSPICheckResponse : Updating session description*Mar 6 14:10:46: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 6 14:10:46: Roundtrip delay 3536 milliseconds for method INVITE*Mar 6 14:10:46: CCSIP-SPI-CONTROL: act_recdproc_new_message: SDP MediaTypes negotiation successful!Negotiated Codec : g711ulaw , bytes :160*Mar 6 14:10:46: CCSIP-SPI-CONTROL: sipSPIReconnectConnection*Mar 6 14:10:46: Queued event from SIP SPI : SIPSPI_EV_RECONNECT_CONNECTION*Mar 6 14:10:46: CCSIP-SPI-CONTROL: recv_200_OK_for_invite*Mar 6 14:10:46: Queued event from SIP SPI : SIPSPI_EV_SEND_MESSAGE*Mar 6 14:10:46: CCSIP-SPI-CONTROL: sip_stats_method*Mar 6 14:10:46: 0x624CFEF8 : State change from (STATE_RECD_PROCEEDING, SUBSTATE_PROCEEDING_ALERTING) to (STATE_ACTIVE, SUBSTATE_NONE)*Mar 6 14:10:46: The Call Setup Information is :Call Control Block (CCB) : 0x624CFEF8State of The Call : STATE_ACTIVETCP Sockets Used : NOCalling Number : 3660110Called Number : 3660210Negotiated Codec : g711ulawSource IP Address (Media): 166.34.245.230Source IP Port (Media): 20208Destn IP Address (Media): 166.34.245.231Destn IP Port (Media): 20038Destn SIP Addr (Control) : 166.34.245.231Destn SIP Port (Control) : 5060Destination Name : 166.34.245.231*Mar 6 14:10:46: HandleUdpReconnection: Udp socket connected for fd: 1 with 166.34.245.231:5060*Mar 6 14:10:46: Sent:ACK sip:3660210@166.34.245.231:5060;user=phone SIP/2.0Via: SIP/2.0/UDP 166.34.245.230:54113From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27D3FCA8-C7FDate: Sat, 06 Mar 1993 19:10:42 GMTCall-ID: ABBAE7AF-823100CE-0-1CCAA69C@172.18.192.194Max-Forwards: 6Content-Type: application/sdpContent-Length: 137CSeq: 101 ACKv=0o=CiscoSystemsSIP-GW-UserAgent 1212 283 IN IP4 166.34.245.230s=SIP Callt=0 0c=IN IP4 166.34.245.230m=audio 20208 RTP/AVP 0*Mar 6 14:10:46: CCSIP-SPI-CONTROL: ccsip_caps_ind*Mar 6 14:10:46: ccsip_caps_ind: Load DSP with codec (5) g711ulaw, Bytes=160*Mar 6 14:10:46: ccsip_caps_ind: set DSP for dtmf-relay = CC_CAP_DTMF_RELAY_INBAND_VOICE*Mar 6 14:10:46: CCSIP-SPI-CONTROL: ccsip_caps_ack*Mar 6 14:10:50: Received:BYE sip:3660110@166.34.245.230:5060;user=phone SIP/2.0Via: SIP/2.0/UDP 166.34.245.231:54835From: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27D3FCA8-C7FTo: "3660110" <sip:3660110@166.34.245.230>Date: Mon, 08 Mar 1993 22:36:44 GMTCall-ID: ABBAE7AF-823100CE-0-1CCAA69C@172.18.192.194User-Agent: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledMax-Forwards: 6Timestamp: 731612207CSeq: 101 BYEContent-Length: 0*Mar 6 14:10:50: HandleUdpSocketReads :Msg enqueued for SPI with IPaddr: 166.34.245.231:54835*Mar 6 14:10:50: CCSIP-SPI-CONTROL: act_active_new_message*Mar 6 14:10:50: CCSIP-SPI-CONTROL: sact_active_new_message_request*Mar 6 14:10:50: CCSIP-SPI-CONTROL: sip_stats_method*Mar 6 14:10:50: Queued event from SIP SPI : SIPSPI_EV_SEND_MESSAGE*Mar 6 14:10:50: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 6 14:10:50: CCSIP-SPI-CONTROL: sipSPIInitiateCallDisconnect : Initiate call disconnect(16) for outgoing call*Mar 6 14:10:50: 0x624CFEF8 : State change from (STATE_ACTIVE, SUBSTATE_NONE) to (STATE_DISCONNECTING, SUBSTATE_NONE)*Mar 6 14:10:50: Sent:SIP/2.0 200 OKVia: SIP/2.0/UDP 166.34.245.231:54835From: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27D3FCA8-C7FTo: "3660110" <sip:3660110@166.34.245.230>Date: Sat, 06 Mar 1993 19:10:50 GMTCall-ID: ABBAE7AF-823100CE-0-1CCAA69C@172.18.192.194Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledTimestamp: 731612207Content-Length: 0CSeq: 101 BYE*Mar 6 14:10:50: Queued event From SIP SPI to CCAPI/DNS : SIPSPI_EV_CC_CALL_DISCONNECT*Mar 6 14:10:50: CCSIP-SPI-CONTROL: act_disconnecting_disconnect*Mar 6 14:10:50: CCSIP-SPI-CONTROL: sipSPICallCleanup*Mar 6 14:10:50: Queued event from SIP SPI : SIPSPI_EV_CLOSE_CONNECTION*Mar 6 14:10:50: CLOSE CONNECTION TO CONNID:1*Mar 6 14:10:50: sipSPIIcpifUpdate :CallState: 4 Playout: 1755 DiscTime:48305031 ConnTime 48304651*Mar 6 14:10:50: 0x624CFEF8 : State change from (STATE_DISCONNECTING, SUBSTATE_NONE) to (STATE_DEAD, SUBSTATE_NONE)*Mar 6 14:10:50: The Call Setup Information is :Call Control Block (CCB) : 0x624CFEF8State of The Call : STATE_DEADTCP Sockets Used : NOCalling Number : 3660110Called Number : 3660210Negotiated Codec : g711ulawSource IP Address (Media): 166.34.245.230Source IP Port (Media): 20208Destn IP Address (Media): 166.34.245.231Destn IP Port (Media): 20038Destn SIP Addr (Control) : 166.34.245.231Destn SIP Port (Control) : 5060Destination Name : 166.34.245.231*Mar 6 14:10:50:Disconnect Cause (CC) : 16Disconnect Cause (SIP) : 200*Mar 6 14:10:50: udpsock_close_connect: Socket fd: 1 closed for connid 1 with remote port: 5060The following example displays debut output from the other side of the call:
Router# debug ccsip allAll SIP call tracing enabled3660-2#*Mar 8 17:36:40: Received:INVITE sip:3660210@166.34.245.231;user=phone;phone-context=unknown SIP/2.0Via: SIP/2.0/UDP 166.34.245.230:54113From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>Date: Sat, 06 Mar 1993 19:10:42 GMTCall-ID: ABBAE7AF-823100CE-0-1CCAA69C@172.18.192.194Cisco-Guid: 2881152943-2184249548-0-483039712User-Agent: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledCSeq: 101 INVITEMax-Forwards: 6Timestamp: 731427042Contact: <sip:3660110@166.34.245.230:5060;user=phone>Expires: 180Content-Type: application/sdpContent-Length: 137v=0o=CiscoSystemsSIP-GW-UserAgent 1212 283 IN IP4 166.34.245.230s=SIP Callt=0 0c=IN IP4 166.34.245.230m=audio 20208 RTP/AVP 0*Mar 8 17:36:40: HandleUdpSocketReads :Msg enqueued for SPI with IPaddr: 166.34.245.230:54113*Mar 8 17:36:40: CCSIP-SPI-CONTROL: sipSPISipIncomingCall*Mar 8 17:36:40: 0x624D8CCC : State change from (STATE_NONE, SUBSTATE_NONE) to (STATE_IDLE, SUBSTATE_NONE)*Mar 8 17:36:40: CCSIP-SPI-CONTROL: act_idle_new_message*Mar 8 17:36:40: CCSIP-SPI-CONTROL: sact_idle_new_message_invite*Mar 8 17:36:40: CCSIP-SPI-CONTROL: sip_stats_method*Mar 8 17:36:40: sact_idle_new_message_invite:Not Using Voice Class Codec*Mar 8 17:36:40: sact_idle_new_message_invite: Preferred codec[0] type: g711ulaw Bytes :160*Mar 8 17:36:40: sact_idle_new_message_invite: Media Negotiation successful for anincoming call*Mar 8 17:36:40: sact_idle_new_message_invite: Negotiated Codec : g711ulaw, bytes :160Preferred Codec : g711ulaw, bytes :160*Mar 8 17:36:40: Queued event from SIP SPI : SIPSPI_EV_SEND_MESSAGE*Mar 8 17:36:40: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 8 17:36:40: Num of Contact Locations 1 3660110 166.34.245.230 5060*Mar 8 17:36:40: 0x624D8CCC : State change from (STATE_IDLE, SUBSTATE_NONE) to (STATE_RECD_INVITE, SUBSTATE_RECD_INVITE_CALL_SETUP)*Mar 8 17:36:40: Sent:SIP/2.0 100 TryingVia: SIP/2.0/UDP 166.34.245.230:54113From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>Date: Mon, 08 Mar 1993 22:36:40 GMTCall-ID: ABBAE7AF-823100CE-0-1CCAA69C@172.18.192.194Timestamp: 731427042Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledCSeq: 101 INVITEContent-Length: 0*Mar 8 17:36:40: Queued event From SIP SPI to CCAPI/DNS : SIPSPI_EV_CC_CALL_PROCEEDING*Mar 8 17:36:40: CCSIP-SPI-CONTROL: act_recdinvite_proceeding*Mar 8 17:36:40: Queued event From SIP SPI to CCAPI/DNS : SIPSPI_EV_CC_CALL_ALERTING*Mar 8 17:36:40: CCSIP-SPI-CONTROL: ccsip_caps_ind*Mar 8 17:36:40: ccsip_caps_ind: codec(negotiated) = 5(Bytes 160)*Mar 8 17:36:40: ccsip_caps_ind: Load DSP with codec (5) g711ulaw, Bytes=160*Mar 8 17:36:40: ccsip_caps_ind: set DSP for dtmf-relay = CC_CAP_DTMF_RELAY_INBAND_VOICE*Mar 8 17:36:40: CCSIP-SPI-CONTROL: ccsip_caps_ack*Mar 8 17:36:40: CCSIP-SPI-CONTROL: act_recdinvite_alerting*Mar 8 17:36:40: 180 Ringing with SDP - not likely*Mar 8 17:36:40: Queued event from SIP SPI : SIPSPI_EV_SEND_MESSAGE*Mar 8 17:36:40: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 8 17:36:40: 0x624D8CCC : State change from (STATE_RECD_INVITE, SUBSTATE_RECD_INVITE_CALL_SETUP) to (STATE_SENT_ALERTING, SUBSTATE_NONE)*Mar 8 17:36:40: Sent:SIP/2.0 180 RingingVia: SIP/2.0/UDP 166.34.245.230:54113From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>Date: Mon, 08 Mar 1993 22:36:40 GMTCall-ID: ABBAE7AF-823100CE-0-1CCAA69C@172.18.192.194Timestamp: 731427042Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledCSeq: 101 INVITEContent-Type: application/sdpContent-Length: 137v=0o=CiscoSystemsSIP-GW-UserAgent 969 7889 IN IP4 166.34.245.231s=SIP Callt=0 0c=IN IP4 166.34.245.231m=audio 20038 RTP/AVP 0*Mar 8 17:36:44: Queued event From SIP SPI to CCAPI/DNS : SIPSPI_EV_CC_CALL_CONNECT*Mar 8 17:36:44: CCSIP-SPI-CONTROL: act_sentalert_connect*Mar 8 17:36:44: sipSPIAddLocalContact*Mar 8 17:36:44: Queued event from SIP SPI : SIPSPI_EV_SEND_MESSAGE*Mar 8 17:36:44: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 8 17:36:44: 0x624D8CCC : State change from (STATE_SENT_ALERTING, SUBSTATE_NONE) to (STATE_SENT_SUCCESS, SUBSTATE_NONE)*Mar 8 17:36:44: Sent:SIP/2.0 200 OKVia: SIP/2.0/UDP 166.34.245.230:54113From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27D3FCA8-C7FDate: Mon, 08 Mar 1993 22:36:40 GMTCall-ID: ABBAE7AF-823100CE-0-1CCAA69C@172.18.192.194Timestamp: 731427042Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledContact: <sip:3660210@166.34.245.231:5060;user=phone>CSeq: 101 INVITEContent-Type: application/sdpContent-Length: 137v=0o=CiscoSystemsSIP-GW-UserAgent 969 7889 IN IP4 166.34.245.231s=SIP Callt=0 0c=IN IP4 166.34.245.231m=audio 20038 RTP/AVP 0*Mar 8 17:36:44: Received:ACK sip:3660210@166.34.245.231:5060;user=phone SIP/2.0Via: SIP/2.0/UDP 166.34.245.230:54113From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27D3FCA8-C7FDate: Sat, 06 Mar 1993 19:10:42 GMTCall-ID: ABBAE7AF-823100CE-0-1CCAA69C@172.18.192.194Max-Forwards: 6Content-Type: application/sdpContent-Length: 137CSeq: 101 ACKv=0o=CiscoSystemsSIP-GW-UserAgent 1212 283 IN IP4 166.34.245.230s=SIP Callt=0 0c=IN IP4 166.34.245.230m=audio 20208 RTP/AVP 0*Mar 8 17:36:44: HandleUdpSocketReads :Msg enqueued for SPI with IPaddr: 166.34.245.230:54113*Mar 8 17:36:44: CCSIP-SPI-CONTROL: act_sentsucc_new_message*Mar 8 17:36:44: CCSIP-SPI-CONTROL: sip_stats_method*Mar 8 17:36:44: 0x624D8CCC : State change from (STATE_SENT_SUCCESS, SUBSTATE_NONE) to (STATE_ACTIVE, SUBSTATE_NONE)*Mar 8 17:36:44: The Call Setup Information is :Call Control Block (CCB) : 0x624D8CCCState of The Call : STATE_ACTIVETCP Sockets Used : NOCalling Number : 3660110Called Number : 3660210Negotiated Codec : g711ulawSource IP Address (Media): 166.34.245.231Source IP Port (Media): 20038Destn IP Address (Media): 166.34.245.230Destn IP Port (Media): 20208Destn SIP Addr (Control) : 166.34.245.230Destn SIP Port (Control) : 5060Destination Name : 166.34.245.230*Mar 8 17:36:47: Queued event From SIP SPI to CCAPI/DNS : SIPSPI_EV_CC_CALL_DISCONNECT*Mar 8 17:36:47: CCSIP-SPI-CONTROL: act_active_disconnect*Mar 8 17:36:47: Queued event from SIP SPI : SIPSPI_EV_CREATE_CONNECTION*Mar 8 17:36:47: 0x624D8CCC : State change from (STATE_ACTIVE, SUBSTATE_NONE) to (STATE_ACTIVE, SUBSTATE_CONNECTING)*Mar 8 17:36:47: REQUEST CONNECTION TO IP:166.34.245.230 PORT:5060*Mar 8 17:36:47: 0x624D8CCC : State change from (STATE_ACTIVE, SUBSTATE_CONNECTING) to (STATE_ACTIVE, SUBSTATE_CONNECTING)*Mar 8 17:36:47: CCSIP-SPI-CONTROL: act_active_connection_created*Mar 8 17:36:47: CCSIP-SPI-CONTROL: sipSPICheckSocketConnection*Mar 8 17:36:47: CCSIP-SPI-CONTROL: sipSPICheckSocketConnection: Connid(1) created to 166.34.245.230:5060, local_port 54835*Mar 8 17:36:47: Queued event from SIP SPI : SIPSPI_EV_SEND_MESSAGE*Mar 8 17:36:47: CCSIP-SPI-CONTROL: sip_stats_method*Mar 8 17:36:47: 0x624D8CCC : State change from (STATE_ACTIVE, SUBSTATE_CONNECTING) to (STATE_DISCONNECTING, SUBSTATE_NONE)*Mar 8 17:36:47: Sent:BYE sip:3660110@166.34.245.230:5060;user=phone SIP/2.0Via: SIP/2.0/UDP 166.34.245.231:54835From: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27D3FCA8-C7FTo: "3660110" <sip:3660110@166.34.245.230>Date: Mon, 08 Mar 1993 22:36:44 GMTCall-ID: ABBAE7AF-823100CE-0-1CCAA69C@172.18.192.194User-Agent: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledMax-Forwards: 6Timestamp: 731612207CSeq: 101 BYEContent-Length: 0*Mar 8 17:36:47: Received:SIP/2.0 200 OKVia: SIP/2.0/UDP 166.34.245.231:54835From: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27D3FCA8-C7FTo: "3660110" <sip:3660110@166.34.245.230>Date: Sat, 06 Mar 1993 19:10:50 GMTCall-ID: ABBAE7AF-823100CE-0-1CCAA69C@172.18.192.194Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledTimestamp: 731612207Content-Length: 0CSeq: 101 BYE*Mar 8 17:36:47: HandleUdpSocketReads :Msg enqueued for SPI with IPaddr: 166.34.245.230:54113*Mar 8 17:36:47: CCSIP-SPI-CONTROL: act_disconnecting_new_message*Mar 8 17:36:47: CCSIP-SPI-CONTROL: sact_disconnecting_new_message_response*Mar 8 17:36:47: CCSIP-SPI-CONTROL: sipSPICheckResponse*Mar 8 17:36:47: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 8 17:36:47: Roundtrip delay 4 milliseconds for method BYE*Mar 8 17:36:47: CCSIP-SPI-CONTROL: sipSPICallCleanup*Mar 8 17:36:47: Queued event from SIP SPI : SIPSPI_EV_CLOSE_CONNECTION*Mar 8 17:36:47: CLOSE CONNECTION TO CONNID:1*Mar 8 17:36:47: sipSPIIcpifUpdate :CallState: 4 Playout: 1265 DiscTime:66820800 ConnTime 66820420*Mar 8 17:36:47: 0x624D8CCC : State change from (STATE_DISCONNECTING, SUBSTATE_NONE) to (STATE_DEAD, SUBSTATE_NONE)*Mar 8 17:36:47: The Call Setup Information is :Call Control Block (CCB) : 0x624D8CCCState of The Call : STATE_DEADTCP Sockets Used : NOCalling Number : 3660110Called Number : 3660210Negotiated Codec : g711ulawSource IP Address (Media): 166.34.245.231Source IP Port (Media): 20038Destn IP Address (Media): 166.34.245.230Destn IP Port (Media): 20208Destn SIP Addr (Control) : 166.34.245.230Destn SIP Port (Control) : 5060Destination Name : 166.34.245.230*Mar 8 17:36:47:Disconnect Cause (CC) : 16Disconnect Cause (SIP) : 200*Mar 8 17:36:47: udpsock_close_connect: Socket fd: 1 closed for connid 1 with remote port: 5060Related Commands
debug ccsip calls
To display all SIP SPI call tracing and to trace the SIP call details as they are updated in the SIP call control block, enter the debug ccsip calls command in EXEC mode.
debug ccsip calls
Syntax Description
This command has no arguments or keywords.
Defaults
SIP SPI call tracing is not displayed
Command Modes
EXEC
Command History
Usage Guidelines
This command traces the SIP call details as updated in the SIP call control block.
Examples
The following example displays debug output from one side of the call:
Router1# debug ccsip callsSIP Call statistics tracing is enabledRouter1#*Mar 6 14:12:33: The Call Setup Information is :Call Control Block (CCB) : 0x624D078CState of The Call : STATE_ACTIVETCP Sockets Used : NOCalling Number : 3660110Called Number : 3660210Negotiated Codec : g711ulawSource IP Address (Media): 166.34.245.230Source IP Port (Media): 20644Destn IP Address (Media): 166.34.245.231Destn IP Port (Media): 20500Destn SIP Addr (Control) : 166.34.245.231Destn SIP Port (Control) : 5060Destination Name : 166.34.245.231*Mar 6 14:12:40: The Call Setup Information is :Call Control Block (CCB) : 0x624D078CState of The Call : STATE_DEADTCP Sockets Used : NOCalling Number : 3660110Called Number : 3660210Negotiated Codec : g711ulawSource IP Address (Media): 166.34.245.230Source IP Port (Media): 20644Destn IP Address (Media): 166.34.245.231Destn IP Port (Media): 20500Destn SIP Addr (Control) : 166.34.245.231Destn SIP Port (Control) : 5060Destination Name : 166.34.245.231*Mar 6 14:12:40:Disconnect Cause (CC) : 16Disconnect Cause (SIP) : 200The following example displays debug output from the other side of the call:
Router2# debug ccsip callsSIP Call statistics tracing is enabledRouter2#*Mar 8 17:38:31: The Call Setup Information is :Call Control Block (CCB) : 0x624D9560State of The Call : STATE_ACTIVETCP Sockets Used : NOCalling Number : 3660110Called Number : 3660210Negotiated Codec : g711ulawSource IP Address (Media): 166.34.245.231Source IP Port (Media): 20500Destn IP Address (Media): 166.34.245.230Destn IP Port (Media): 20644Destn SIP Addr (Control) : 166.34.245.230Destn SIP Port (Control) : 5060Destination Name : 166.34.245.230*Mar 8 17:38:38: The Call Setup Information is :Call Control Block (CCB) : 0x624D9560State of The Call : STATE_DEADTCP Sockets Used : NOCalling Number : 3660110Called Number : 3660210Negotiated Codec : g711ulawSource IP Address (Media): 166.34.245.231Source IP Port (Media): 20500Destn IP Address (Media): 166.34.245.230Destn IP Port (Media): 20644Destn SIP Addr (Control) : 166.34.245.230Destn SIP Port (Control) : 5060Destination Name : 166.34.245.230*Mar 8 17:38:38:Disconnect Cause (CC) : 16Disconnect Cause (SIP) : 200Related Commands
debug ccsip error
To display SIP Service Provider Interface (SPI) errors, enter the debug ccsip error command in EXEC mode.
debug ccsip error
Syntax Description
This command has no arguments or keywords.
Defaults
SIP SPI errors are not displayed
Command Modes
EXEC
Command History
Usage Guidelines
This command traces all error messages generated from errors encountered by the SIP subsystem.
Examples
The following example displays debug output from one side of the call:
Router1# debug ccsip errorSIP Call error tracing is enabledRouter1#*Mar 6 14:16:41: CCSIP-SPI-CONTROL: act_idle_call_setup*Mar 6 14:16:41: act_idle_call_setup:Not using Voice Class Codec*Mar 6 14:16:41: act_idle_call_setup: preferred_codec set[0] type :g711ulaw bytes: 160*Mar 6 14:16:41: REQUEST CONNECTION TO IP:166.34.245.231 PORT:5060*Mar 6 14:16:41: CCSIP-SPI-CONTROL: act_idle_connection_created*Mar 6 14:16:41: CCSIP-SPI-CONTROL: act_idle_connection_created: Connid(1) created to 166.34.245.231:5060, local_port 55674*Mar 6 14:16:41: sipSPIAddLocalContact*Mar 6 14:16:41: CCSIP-SPI-CONTROL: sip_stats_method*Mar 6 14:16:41: HandleUdpSocketReads :Msg enqueued for SPI with IPaddr: 166.34.245.231:5060*Mar 6 14:16:41: CCSIP-SPI-CONTROL: act_sentinvite_new_message*Mar 6 14:16:41: CCSIP-SPI-CONTROL: sipSPICheckResponse*Mar 6 14:16:41: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 6 14:16:41: Roundtrip delay 4 milliseconds for method INVITE*Mar 6 14:16:41: HandleUdpSocketReads :Msg enqueued for SPI with IPaddr: 166.34.245.231:5060*Mar 6 14:16:41: CCSIP-SPI-CONTROL: act_recdproc_new_message*Mar 6 14:16:41: CCSIP-SPI-CONTROL: sipSPICheckResponse*Mar 6 14:16:41: CCSIP-SPI-CONTROL: sipSPICheckResponse : Updating session description*Mar 6 14:16:41: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 6 14:16:41: Roundtrip delay 8 milliseconds for method INVITE*Mar 6 14:16:41: HandleSIP1xxRinging: SDP MediaTypes negotiation successful!Negotiated Codec : g711ulaw , bytes :160Inband Alerting : 0*Mar 6 14:16:45: HandleUdpSocketReads :Msg enqueued for SPI with IPaddr: 166.34.245.231:5060*Mar 6 14:16:45: CCSIP-SPI-CONTROL: act_recdproc_new_message*Mar 6 14:16:45: CCSIP-SPI-CONTROL: sipSPICheckResponse*Mar 6 14:16:45: CCSIP-SPI-CONTROL: sipSPICheckResponse : Updating session description*Mar 6 14:16:45: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 6 14:16:45: Roundtrip delay 3844 milliseconds for method INVITE*Mar 6 14:16:45: CCSIP-SPI-CONTROL: act_recdproc_new_message: SDP MediaTypes negotiation successful!Negotiated Codec : g711ulaw , bytes :160*Mar 6 14:16:45: CCSIP-SPI-CONTROL: sipSPIReconnectConnection*Mar 6 14:16:45: CCSIP-SPI-CONTROL: recv_200_OK_for_invite*Mar 6 14:16:45: CCSIP-SPI-CONTROL: sip_stats_method*Mar 6 14:16:45: HandleUdpReconnection: Udp socket connected for fd: 1 with 166.34.245.231:5060*Mar 6 14:16:45: CCSIP-SPI-CONTROL: ccsip_caps_ind*Mar 6 14:16:45: ccsip_caps_ind: Load DSP with codec (5) g711ulaw, Bytes=160*Mar 6 14:16:45: ccsip_caps_ind: set DSP for dtmf-relay = CC_CAP_DTMF_RELAY_INBAND_VOICE*Mar 6 14:16:45: CCSIP-SPI-CONTROL: ccsip_caps_ack*Mar 6 14:16:49: HandleUdpSocketReads :Msg enqueued for SPI with IPaddr: 166.34.245.231:56101*Mar 6 14:16:49: CCSIP-SPI-CONTROL: act_active_new_message*Mar 6 14:16:49: CCSIP-SPI-CONTROL: sact_active_new_message_request*Mar 6 14:16:49: CCSIP-SPI-CONTROL: sip_stats_method*Mar 6 14:16:49: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 6 14:16:49: CCSIP-SPI-CONTROL: sipSPIInitiateCallDisconnect : Initiate call disconnect(16) for outgoing call*Mar 6 14:16:49: CCSIP-SPI-CONTROL: act_disconnecting_disconnect*Mar 6 14:16:49: CCSIP-SPI-CONTROL: sipSPICallCleanup*Mar 6 14:16:49: CLOSE CONNECTION TO CONNID:1*Mar 6 14:16:49: sipSPIIcpifUpdate :CallState: 4 Playout: 2945 DiscTime:48340988 ConnTime 48340525*Mar 6 14:16:49: udpsock_close_connect: Socket fd: 1 closed for connid 1 with remote port: 5060The following example displays debug output from the other side of the call:
Router2# debug ccsip errorSIP Call error tracing is enabledRouter2#*Mar 8 17:42:39: HandleUdpSocketReads :Msg enqueued for SPI with IPaddr: 166.34.245.230:55674*Mar 8 17:42:39: CCSIP-SPI-CONTROL: sipSPISipIncomingCall*Mar 8 17:42:39: CCSIP-SPI-CONTROL: act_idle_new_message*Mar 8 17:42:39: CCSIP-SPI-CONTROL: sact_idle_new_message_invite*Mar 8 17:42:39: CCSIP-SPI-CONTROL: sip_stats_method*Mar 8 17:42:39: sact_idle_new_message_invite:Not Using Voice Class Codec*Mar 8 17:42:39: sact_idle_new_message_invite: Preferred codec[0] type: g711ulaw Bytes :160*Mar 8 17:42:39: sact_idle_new_message_invite: Media Negotiation successful for anincoming call*Mar 8 17:42:39: sact_idle_new_message_invite: Negotiated Codec : g711ulaw, bytes :160Preferred Codec : g711ulaw, bytes :160*Mar 8 17:42:39: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 8 17:42:39: Num of Contact Locations 1 3660110 166.34.245.230 5060*Mar 8 17:42:39: CCSIP-SPI-CONTROL: act_recdinvite_proceeding*Mar 8 17:42:39: CCSIP-SPI-CONTROL: ccsip_caps_ind*Mar 8 17:42:39: ccsip_caps_ind: codec(negotiated) = 5(Bytes 160)*Mar 8 17:42:39: ccsip_caps_ind: Load DSP with codec (5) g711ulaw, Bytes=160*Mar 8 17:42:39: ccsip_caps_ind: set DSP for dtmf-relay = CC_CAP_DTMF_RELAY_INBAND_VOICE*Mar 8 17:42:39: CCSIP-SPI-CONTROL: ccsip_caps_ack*Mar 8 17:42:39: CCSIP-SPI-CONTROL: act_recdinvite_alerting*Mar 8 17:42:39: 180 Ringing with SDP - not likely*Mar 8 17:42:39: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 8 17:42:42: CCSIP-SPI-CONTROL: act_sentalert_connect*Mar 8 17:42:42: sipSPIAddLocalContact*Mar 8 17:42:42: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 8 17:42:42: HandleUdpSocketReads :Msg enqueued for SPI with IPaddr: 166.34.245.230:55674*Mar 8 17:42:42: CCSIP-SPI-CONTROL: act_sentsucc_new_message*Mar 8 17:42:42: CCSIP-SPI-CONTROL: sip_stats_method*Mar 8 17:42:47: CCSIP-SPI-CONTROL: act_active_disconnect*Mar 8 17:42:47: REQUEST CONNECTION TO IP:166.34.245.230 PORT:5060*Mar 8 17:42:47: CCSIP-SPI-CONTROL: act_active_connection_created*Mar 8 17:42:47: CCSIP-SPI-CONTROL: sipSPICheckSocketConnection*Mar 8 17:42:47: CCSIP-SPI-CONTROL: sipSPICheckSocketConnection: Connid(1) created to 166.34.245.230:5060, local_port 56101*Mar 8 17:42:47: CCSIP-SPI-CONTROL: sip_stats_method*Mar 8 17:42:47: HandleUdpSocketReads :Msg enqueued for SPI with IPaddr: 166.34.245.230:55674*Mar 8 17:42:47: CCSIP-SPI-CONTROL: act_disconnecting_new_message*Mar 8 17:42:47: CCSIP-SPI-CONTROL: sact_disconnecting_new_message_response*Mar 8 17:42:47: CCSIP-SPI-CONTROL: sipSPICheckResponse*Mar 8 17:42:47: CCSIP-SPI-CONTROL: sip_stats_status_code*Mar 8 17:42:47: Roundtrip delay 0 milliseconds for method BYE*Mar 8 17:42:47: CCSIP-SPI-CONTROL: sipSPICallCleanup*Mar 8 17:42:47: CLOSE CONNECTION TO CONNID:1*Mar 8 17:42:47: sipSPIIcpifUpdate :CallState: 4 Playout: 1255 DiscTime:66856757 ConnTime 66856294*Mar 8 17:42:47: udpsock_close_connect: Socket fd: 1 closed for connid 1 with remote port: 5060Related Commands
debug ccsip events
To display all Session Initiation Protocol (SIP) Service Provider Interface (SPI) events tracing and traces the events posted to SIP SPI from all interfaces, enter the debug ccsip events command in EXEC mode.
debug ccsip events
Syntax Description
This command has no arguments or keywords.
Command Modes
EXEC
Defaults
SIP SPI events tracing is not displayed
Command History
Usage Guidelines
This command traces the events posted to SIP SPI from all interfaces.
Examples
The following example shows debug output from one side of the call:
Router1# debug ccsip eventsSIP Call events tracing is enabledRouter1#*Mar 6 14:17:57: Queued event from SIP SPI : SIPSPI_EV_CC_CALL_SETUP*Mar 6 14:17:57: Queued event from SIP SPI : SIPSPI_EV_CREATE_CONNECTION*Mar 6 14:17:57: Queued event from SIP SPI : SIPSPI_EV_SEND_MESSAGE*Mar 6 14:18:00: Queued event from SIP SPI : SIPSPI_EV_RECONNECT_CONNECTION*Mar 6 14:18:00: Queued event from SIP SPI : SIPSPI_EV_SEND_MESSAGE*Mar 6 14:18:04: Queued event from SIP SPI : SIPSPI_EV_SEND_MESSAGE*Mar 6 14:18:04: Queued event From SIP SPI to CCAPI/DNS : SIPSPI_EV_CC_CALL_DISCONNECT*Mar 6 14:18:04: Queued event from SIP SPI : SIPSPI_EV_CLOSE_CONNECTIONThe following example shows debug output from the other side of the call:
Router2# deb ccsip eventsSIP Call events tracing is enabledRouter2#*Mar 8 17:43:55: Queued event from SIP SPI : SIPSPI_EV_SEND_MESSAGE*Mar 8 17:43:55: Queued event From SIP SPI to CCAPI/DNS : SIPSPI_EV_CC_CALL_PROCEEDING*Mar 8 17:43:55: Queued event From SIP SPI to CCAPI/DNS : SIPSPI_EV_CC_CALL_ALERTING*Mar 8 17:43:55: Queued event from SIP SPI : SIPSPI_EV_SEND_MESSAGE*Mar 8 17:43:58: Queued event From SIP SPI to CCAPI/DNS : SIPSPI_EV_CC_CALL_CONNECT*Mar 8 17:43:58: Queued event from SIP SPI : SIPSPI_EV_SEND_MESSAGE*Mar 8 17:44:01: Queued event From SIP SPI to CCAPI/DNS : SIPSPI_EV_CC_CALL_DISCONNECT*Mar 8 17:44:01: Queued event from SIP SPI : SIPSPI_EV_CREATE_CONNECTION*Mar 8 17:44:01: Queued event from SIP SPI : SIPSPI_EV_SEND_MESSAGE*Mar 8 17:44:01: Queued event from SIP SPI : SIPSPI_EV_CLOSE_CONNECTIONRelated Commands
debug ccsip messages
To display all Session Initiation Protocol (SIP) Service Provider Interface (SPI) message tracing and to trace the SIP messages exchanged between the SIP UA client (UAC) and the access server, enter the debug ccsip messages command in Privileged EXEC mod.
debug ccsip messages
Syntax Description
This command has no arguments or keywords.
Defaults
SIP SPI message tracing is not displayed
Command Modes
EXEC
Command History
Usage Guidelines
This command traces the SIP messages exchanged between the SIP user agent client (UAC) and the access server.
Examples
The following example shows debug output from one side of the call:
Router1# debug ccsip messagesSIP Call messages tracing is enabledRouter1#*Mar 6 14:19:14: Sent:INVITE sip:3660210@166.34.245.231;user=phone;phone-context=unknown SIP/2.0Via: SIP/2.0/UDP 166.34.245.230:55820From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>Date: Sat, 06 Mar 1993 19:19:14 GMTCall-ID: ABBAE7AF-823100E2-0-1CD274BC@172.18.192.194Cisco-Guid: 2881152943-2184249568-0-483551624User-Agent: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledCSeq: 101 INVITEMax-Forwards: 6Timestamp: 731427554Contact: <sip:3660110@166.34.245.230:5060;user=phone>Expires: 180Content-Type: application/sdpContent-Length: 138v=0o=CiscoSystemsSIP-GW-UserAgent 5596 7982 IN IP4 166.34.245.230s=SIP Callt=0 0c=IN IP4 166.34.245.230m=audio 20762 RTP/AVP 0*Mar 6 14:19:14: Received:SIP/2.0 100 TryingVia: SIP/2.0/UDP 166.34.245.230:55820From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>Date: Mon, 08 Mar 1993 22:45:12 GMTCall-ID: ABBAE7AF-823100E2-0-1CD274BC@172.18.192.194Timestamp: 731427554Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledCSeq: 101 INVITEContent-Length: 0*Mar 6 14:19:14: Received:SIP/2.0 180 RingingVia: SIP/2.0/UDP 166.34.245.230:55820From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>Date: Mon, 08 Mar 1993 22:45:12 GMTCall-ID: ABBAE7AF-823100E2-0-1CD274BC@172.18.192.194Timestamp: 731427554Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledCSeq: 101 INVITEContent-Type: application/sdpContent-Length: 138v=0o=CiscoSystemsSIP-GW-UserAgent 1193 7927 IN IP4 166.34.245.231s=SIP Callt=0 0c=IN IP4 166.34.245.231m=audio 20224 RTP/AVP 0*Mar 6 14:19:16: Received:SIP/2.0 200 OKVia: SIP/2.0/UDP 166.34.245.230:55820From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27DBC6D8-1357Date: Mon, 08 Mar 1993 22:45:12 GMTCall-ID: ABBAE7AF-823100E2-0-1CD274BC@172.18.192.194Timestamp: 731427554Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledContact: <sip:3660210@166.34.245.231:5060;user=phone>CSeq: 101 INVITEContent-Type: application/sdpContent-Length: 138v=0o=CiscoSystemsSIP-GW-UserAgent 1193 7927 IN IP4 166.34.245.231s=SIP Callt=0 0c=IN IP4 166.34.245.231m=audio 20224 RTP/AVP 0*Mar 6 14:19:16: Sent:ACK sip:3660210@166.34.245.231:5060;user=phone SIP/2.0Via: SIP/2.0/UDP 166.34.245.230:55820From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27DBC6D8-1357Date: Sat, 06 Mar 1993 19:19:14 GMTCall-ID: ABBAE7AF-823100E2-0-1CD274BC@172.18.192.194Max-Forwards: 6Content-Type: application/sdpContent-Length: 138CSeq: 101 ACKv=0o=CiscoSystemsSIP-GW-UserAgent 5596 7982 IN IP4 166.34.245.230s=SIP Callt=0 0c=IN IP4 166.34.245.230m=audio 20762 RTP/AVP 0*Mar 6 14:19:19: Received:BYE sip:3660110@166.34.245.230:5060;user=phone SIP/2.0Via: SIP/2.0/UDP 166.34.245.231:53600From: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27DBC6D8-1357To: "3660110" <sip:3660110@166.34.245.230>Date: Mon, 08 Mar 1993 22:45:14 GMTCall-ID: ABBAE7AF-823100E2-0-1CD274BC@172.18.192.194User-Agent: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledMax-Forwards: 6Timestamp: 731612717CSeq: 101 BYEContent-Length: 0*Mar 6 14:19:19: Sent:SIP/2.0 200 OKVia: SIP/2.0/UDP 166.34.245.231:53600From: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27DBC6D8-1357To: "3660110" <sip:3660110@166.34.245.230>Date: Sat, 06 Mar 1993 19:19:19 GMTCall-ID: ABBAE7AF-823100E2-0-1CD274BC@172.18.192.194Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledTimestamp: 731612717Content-Length: 0CSeq: 101 BYEThe following example show debug output from the other side of the call:
Router2# debug ccsip messagesSIP Call messages tracing is enabledRouter2#*Mar 8 17:45:12: Received:INVITE sip:3660210@166.34.245.231;user=phone;phone-context=unknown SIP/2.0Via: SIP/2.0/UDP 166.34.245.230:55820From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>Date: Sat, 06 Mar 1993 19:19:14 GMTCall-ID: ABBAE7AF-823100E2-0-1CD274BC@172.18.192.194Cisco-Guid: 2881152943-2184249568-0-483551624User-Agent: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledCSeq: 101 INVITEMax-Forwards: 6Timestamp: 731427554Contact: <sip:3660110@166.34.245.230:5060;user=phone>Expires: 180Content-Type: application/sdpContent-Length: 138v=0o=CiscoSystemsSIP-GW-UserAgent 5596 7982 IN IP4 166.34.245.230s=SIP Callt=0 0c=IN IP4 166.34.245.230m=audio 20762 RTP/AVP 0*Mar 8 17:45:12: Sent:SIP/2.0 100 TryingVia: SIP/2.0/UDP 166.34.245.230:55820From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>Date: Mon, 08 Mar 1993 22:45:12 GMTCall-ID: ABBAE7AF-823100E2-0-1CD274BC@172.18.192.194Timestamp: 731427554Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledCSeq: 101 INVITEContent-Length: 0*Mar 8 17:45:12: Sent:SIP/2.0 180 RingingVia: SIP/2.0/UDP 166.34.245.230:55820From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>Date: Mon, 08 Mar 1993 22:45:12 GMTCall-ID: ABBAE7AF-823100E2-0-1CD274BC@172.18.192.194Timestamp: 731427554Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledCSeq: 101 INVITEContent-Type: application/sdpContent-Length: 138v=0o=CiscoSystemsSIP-GW-UserAgent 1193 7927 IN IP4 166.34.245.231s=SIP Callt=0 0c=IN IP4 166.34.245.231m=audio 20224 RTP/AVP 0*Mar 8 17:45:14: Sent:SIP/2.0 200 OKVia: SIP/2.0/UDP 166.34.245.230:55820From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27DBC6D8-1357Date: Mon, 08 Mar 1993 22:45:12 GMTCall-ID: ABBAE7AF-823100E2-0-1CD274BC@172.18.192.194Timestamp: 731427554Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledContact: <sip:3660210@166.34.245.231:5060;user=phone>CSeq: 101 INVITEContent-Type: application/sdpContent-Length: 138v=0o=CiscoSystemsSIP-GW-UserAgent 1193 7927 IN IP4 166.34.245.231s=SIP Callt=0 0c=IN IP4 166.34.245.231m=audio 20224 RTP/AVP 0*Mar 8 17:45:14: Received:ACK sip:3660210@166.34.245.231:5060;user=phone SIP/2.0Via: SIP/2.0/UDP 166.34.245.230:55820From: "3660110" <sip:3660110@166.34.245.230>To: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27DBC6D8-1357Date: Sat, 06 Mar 1993 19:19:14 GMTCall-ID: ABBAE7AF-823100E2-0-1CD274BC@172.18.192.194Max-Forwards: 6Content-Type: application/sdpContent-Length: 138CSeq: 101 ACKv=0o=CiscoSystemsSIP-GW-UserAgent 5596 7982 IN IP4 166.34.245.230s=SIP Callt=0 0c=IN IP4 166.34.245.230m=audio 20762 RTP/AVP 0*Mar 8 17:45:17: Sent:BYE sip:3660110@166.34.245.230:5060;user=phone SIP/2.0Via: SIP/2.0/UDP 166.34.245.231:53600From: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27DBC6D8-1357To: "3660110" <sip:3660110@166.34.245.230>Date: Mon, 08 Mar 1993 22:45:14 GMTCall-ID: ABBAE7AF-823100E2-0-1CD274BC@172.18.192.194User-Agent: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledMax-Forwards: 6Timestamp: 731612717CSeq: 101 BYEContent-Length: 0*Mar 8 17:45:17: Received:SIP/2.0 200 OKVia: SIP/2.0/UDP 166.34.245.231:53600From: <sip:3660210@166.34.245.231;user=phone;phone-context=unknown>;tag=27DBC6D8-1357To: "3660110" <sip:3660110@166.34.245.230>Date: Sat, 06 Mar 1993 19:19:19 GMTCall-ID: ABBAE7AF-823100E2-0-1CD274BC@172.18.192.194Server: Cisco VoIP Gateway/ IOS 12.x/ SIP enabledTimestamp: 731612717Content-Length: 0CSeq: 101 BYERelated Commands
debug ccsip states
To display all Session Initiation Protocol (SIP) Service Provider Interface (SPI) state tracing, and to trace the state machine changes of SIP SPI and to display the stat transitions, enter the debug ccsip states command in EXEC mode.
debug ccsip states
Syntax Description
This command has no arguments or keywords.
Defaults
SIP SPI state tracing is not displayed
Command Modes
EXEC
Command History
Usage Guidelines
This command traces the state machine changes of SIP SPI and displays the state transitions.
Examples
The following example shows output for the debug ccsip states command:
Router# debug ccsip statesSIP Call states tracing is enabledUA-1#*Jan 2 18:34:37.793:0x6220C634 :State change from (STATE_NONE, SUBSTATE_NONE) to (STATE_IDLE, SUBSTATE_NONE)*Jan 2 18:34:37.797:0x6220C634 :State change from (STATE_IDLE, SUBSTATE_NONE) to (STATE_IDLE, SUBSTATE_CONNECTING)*Jan 2 18:34:37.797:0x6220C634 :State change from (STATE_IDLE, SUBSTATE_CONNECTING) to (STATE_IDLE, SUBSTATE_CONNECTING)*Jan 2 18:34:37.801:0x6220C634 :State change from (STATE_IDLE, SUBSTATE_CONNECTING) to (STATE_SENT_INVITE, SUBSTATE_NONE)*Jan 2 18:34:37.809:0x6220C634 :State change from (STATE_SENT_INVITE, SUBSTATE_NONE) to (STATE_RECD_PROCEEDING, SUBSTATE_PROCEEDING_PROCEEDING)*Jan 2 18:34:37.853:0x6220C634 :State change from (STATE_RECD_PROCEEDING, SUBSTATE_PROCEEDING_PROCEEDING) to (STATE_RECD_PROCEEDING, SUBSTATE_PROCEEDING_ALERTING)*Jan 2 18:34:38.261:0x6220C634 :State change from (STATE_RECD_PROCEEDING, SUBSTATE_PROCEEDING_ALERTING) to (STATE_ACTIVE, SUBSTATE_NONE)*Jan 2 18:35:09.860:0x6220C634 :State change from (STATE_ACTIVE, SUBSTATE_NONE) to (STATE_DISCONNECTING, SUBSTATE_NONE)*Jan 2 18:35:09.868:0x6220C634 :State change from (STATE_DISCONNECTING, SUBSTATE_NONE) to (STATE_DEAD, SUBSTATE_NONE)*Jan 2 18:28:38.404: Queued event from SIP SPI :SIPSPI_EV_CLOSE_CONNECTIONRelated Commands
default
To reset the value of a command to its default, enter the default command in SIP user-agent configuration mode.
default {aaa username | max-forwards | retry {invite | response | bye | cancel} | sip-server | timers {trying | connect | disconnect | expires} | transport {tcp | udp}
Syntax Description
Defaults
No default behavior or values
Command Modes
SIP user-agent configuration
Command History
Examples
The following example shows how to set max-forwards to its default of 6:
Router(config)# sip-uaRouter(config-sip-ua)# default max-forwardsRelated Commands
Command Descriptioncap-list vfc
Adds a voice codec overlay file to the capability file list.
Enables the SIP user-agent configuration commands, with which you configure the user agent.
gw-accounting
To enable Voice over IP (VoIP) gateway-specific accounting and to define the accounting method, use the gw-accounting command in global configuration mode. To disable gateway-specific accounting, use the no form of this command.
gw-accounting {h323 [vsa] | syslog | voip}
no gw-accounting {h323 [vsa] | syslog | voip}
Syntax Description
Defaults
Disabled
Command Modes
Global configuration
Command History
Usage Guidelines
To collect basic start-stop connection accounting data, the gateway must be configured to support gateway-specific H.323 accounting functionality. The gw-accounting command enables you to send accounting data to the RADIUS server in one of four ways:
•
Using standard IETF RADIUS accounting attribute/value (AV) pairs—This method is the basic method of gathering accounting data (connection accounting) according to the specifications defined by the IETF. Use the gw-accounting h323 command to configure the standard IETF RADIUS method of applying H.323 gateway-specific accounting. Table 2 shows the supported IETF RADIUS attributes.
For more information about RADIUS and the use of IETF-defined attributes, refer to the Cisco IOS Security Configuration Guide.
•
Overloading the Acct-Session-Id field—Attributes that cannot be mapped to standard RADIUS are packed into the Acct-Session-Id attribute field as ASCII strings separated by the character "/". The Acct-Session-Id attribute is defined to contain the RADIUS account session ID, which is a unique identifier that links accounting records associated with the same login session for a user. To support additional fields, we have defined the following string format for this field:
<session id>/<call leg setup time>/<gateway id>/<connection id>/<call origin>/ <call type>/<connect time>/<disconnect time>/<disconnect cause>/<remote ip address>Table 3 shows the field attributes that you use with the overloaded session-ID method and a brief description of each.
Because of the limited size of the Acct-Session-Id string, it is not possible to embed very many information elements in it. Therefore, this feature supports only a limited set of accounting information elements.
Use the gw-accounting h323 command to configure the overloaded session ID method of applying H.323 gateway-specific accounting.
•
Using vendor-specific RADIUS attributes—The IETF draft standard specifies a method for communicating vendor-specific information between the network access server and the RADIUS server by using the vendor-specific attribute (Attribute 26). Vendor-specific attributes (VSAs) allow vendors to support their own extended attributes not suitable for general use. The Cisco RADIUS implementation supports one vendor-specific option using the format recommended in the specification. The Cisco vendor ID is 9, and the supported option has vendor-type 1, which is named "cisco-avpair." The value is a string of the format:
protocol: attribute sep value *"Protocol" is a value of the Cisco "protocol" attribute for a particular type of authorization. "Attribute" and "value" are an appropriate attribute/value (AV) pair defined in the Cisco TACACS+ specification, and "sep" is "=" for mandatory attributes and "*" for optional attributes. This allows the full set of features available for TACACS+ authorization to also be used for RADIUS.
The VSA fields and their ASCII values are listed in Table 4.
Use the gw-accounting h323 vsa command to configure the VSA method of applying H.323 gateway-specific accounting.
•
Using syslog records—The syslog accounting option exports the information elements associated with each call leg through a system log message, which can be captured by a syslog daemon on the network. The syslog output consists of the following:
<server timestamp> <gateway id> <message number> : <message label> : <list of AV pairs>The syslog message fields are listed in Table 5.
Use the gw-accounting syslog command to configure the syslog record method of gathering H.323 accounting data.
Use this command if you configure the AAA accounting application.
If you enable both h323 and syslog simultaneously, CDRs are generated in both methods.
Examples
The following example configures basic H.323 accounting using IETF RADIUS attributes:
gw-accounting h323The following example configures H.323 accounting using VSA RADIUS attributes:
gw-accounting h323 vsaThe following example enables gateway-specific accounting and defines the accounting method as voip:
gw-accounting voipRelated Commands
Command Descriptiondial-peer voice
Enters dial-peer configuration mode and specifies the method of voice-related encapsulation.
max-forwards
To set the maximum number of proxy or redirect servers that can forward the request, use the max-forwards command in SIP user agent configuration mode. To restore the default value, use the no form of this command.
max-forwards number
no max-forwards
Syntax Description
Defaults
6
Command Modes
SIP user agent configuration
Command History
Usage Guidelines
To reset this command to the default value, you can also use the default command.
Examples
The following is an example of setting the number of forwarding requests to proxy or redirect servers:
sip-uamax-forwards 2Related Commands
max-redirects
To set the maximum number of redirect servers that the user agent allows, use the max-redirects command in dial-peer configuration mode. To restore the default value, use the no form of this command.
max-redirects number
no max-redirects
Syntax Description
numberMaximum number of redirect servers that a call can traverse. Range is 1 to 10. The default is 1.
Defaults
1
Command Modes
Dial-peer configuration
Command History
Examples
The following is an example of setting the maximum number of redirect servers that the user agent allows:
dial-peer voice 102 voipmax-redirects 2Related Commands
Command Descriptiondial-peer voice
Enters dial-peer configuration mode and specifies the method of voice-related encapsulation.
retry bye
To configure the number of times that a BYE request is retransmitted to the other user agent, use the retry bye command in SIP user-agent configuration mode. To reset to the default, use the no form of this command.
retry bye number
no retry bye number
Syntax Description
Defaults
10 retries
Command Modes
SIP user-agent configuration
Command History
Usage Guidelines
To reset this command to the default value, you can also use the default command.
Examples
In the following example, the number of BYE retries has been set to 5.sip-uaretry bye 5Related Commands
Command Descriptiondefault
Resets the value of a command to its default.
sip-ua
Enables the SIP user-agent configuration commands, with which you configure the user agent.
retry cancel
To configure the number of times that a CANCEL request is retransmitted to the other user agent, use the retry cancel command in SIP user-agent configuration mode. To reset to the default, use the no form of this command.
retry cancel number
no retry cancel number
Syntax Description
Defaults
10 retries
Command Modes
SIP user-agent configuration
Command History
Usage Guidelines
To reset this command to the default value, you can also use the default command.
Examples
In the following example, the number of cancel retries has been set to 5.sip-uaretry cancel 5Related Commands
Command Descriptiondefault
Resets the value of a command to its default.
sip-ua
Enables the sip-ua configuration commands, with which you configure the user agent.
retry invite
To configure the number of times that a Session Initiation Protocol (SIP) INVITE request is retransmitted to the other user agent, use the retry invite command in SIP user-agent configuration mode. To reset to the default, use the no form of this command.
retry invite number
no retry invite number
Syntax Description
Defaults
6 retries
Command Modes
SIP user-agent configuration
Command History
Usage Guidelines
To reset this command to the default value, you can also use the default command.
When configuring SIP using SIP user-agent configuration commands such as the retry invite command, the use of the default values for the commands causes the rotary function to not take effect. The rotary function is when you set up more than one VoIP dial peer for the same destination pattern, and the dial peers are assigned to different targets. The purpose of assigning different targets is if the call cannot be set up with the first dial peer (preference one), the next dial peer can be tried. For example:
dial-peer voice 201 voipdestination-pattern 1234567codec g711ulawsession protocol sipv2session target ipv4:1.2.3.4dial-peer voice 202 voipdestination-pattern 12345..codec g711ulawsession protocol sipv2session target ipv4:10.2.3.42To use the rotary function within SIP, set the retry value for the SIP retry invite command to 4 or less. For example:
sip-uaretry invite 4Examples
In the following example, the number of invite retries is set to 5.sip-uaretry invite 5Related Commands
Command Descriptiondefault
Resets the value of a command to its default.
sip-ua
Enables the sip-ua configuration commands, with which you configure the user agent.
retry response
To configure the number of times that the RESPONSE message is retransmitted to the other user agent, use the retry response command in SIP user-agent configuration mode. To reset to the default, use the no form of this command.
retry response number
no retry response number
Syntax Description
Defaults
6 retries
Command Modes
SIP user-agent configuration
Command History
Usage Guidelines
To reset this command to the default value, you can also use the default command.
Examples
The following example sets the number of response retries to 5.sip-uaretry response 5Related Commands
Command Descriptiondefault
Resets the value of a command to its default.
sip-ua
Enables the sip-ua configuration commands, with which you configure the user agent.
session protocol
To specify a session protocol for calls between local and remote routers using the packet network, use the session protocol command in dial-peer configuration mode. To reset to the default, use the no form of this command.
session protocol {aal2-trunk | cisco | sipv2 | smtp}
no session protocol
Syntax Description
Defaults
No default behaviors or values
Command Modes
Dial-peer configuration
Command History
Usage Guidelines
The cisco keyword is applicable only to VoIP on the Cisco 1750, Cisco 1751, Cisco 3600 series, and Cisco 7200 series routers.
The aal2-trunk keyword is applicable only to VoATM on the Cisco MC3810 multiservice access concentrator and the Cisco 7200 series router.
This command applies to both on-ramp and off-ramp store-and-forward fax functions.
Examples
The following example shows that AAL2 trunking has been configured as the session protocol:
dial-peer voice 10 voatmsession protocol aal2-trunkThe following example shows that Cisco session protocol has been configured as the session protocol:
dial-peer voice 20 voipsession protocol ciscoThe following example shows that a VoIP dial peer for SIP has been configured as the session protocol for VoIP call signaling:
dial-peer voice 102 voipsession protocol sipv2Related Commands
session target (VoIP)
To specify a network-specific address for a dial peer, use the session target command in dial-peer configuration mode. To restore default values for this parameter, use the no form of this command.
Note
This command applies to all dial peers except plain old telephone service (POTS) dial peers.
session target {sip-server | ipv4:destination-address[:port-number] | dns:[$s$. | $d$. | $e$. | $u$.] host-name | loopback:rtp | loopback:compressed | loopback:uncompressed | ras | settlement provider-number}
no session target {ipv4:destination-address | dns:[$s$. | $d$. | $e$. | $u$.]
host-name | loopback:rtp | loopback:compressed | loopback:uncompressed | ras | settlement provider-number}Syntax Description
Defaults
The default for this command is enabled with no IP address or domain name defined.
Command Modes
Dial-peer configuration
Command History
Usage Guidelines
Enter the session target command to specify a network-specific address or domain name for a dial peer. Whether you select a network-specific address or a domain name depends on the session protocol you select.
You can enter the session target dns command with or without the specified wild cards. Using the optional wildcards can reduce the number of VoIP dial-peer session targets you need to configure if you have groups of numbers associated with a particular router.
Examples
The following example shows how to configure a session target using DNS for a host, "voice_router," in the domain "cisco.com":
Router(config)# dial-peer voice 102 voipRouter(config-dial-peer)# session target dns:voice_router.cisco.comThe following example shows how to configure a session target using DNS, with the optional $u$. wildcard. In this example, the destination pattern has been configured to allow for any four-digit extension, beginning with the numbers 1310222. The optional wildcard $u$. indicates that the router will use the unmatched portion of the dialed number—in this case, the four-digit extension—to identify the dial peer. As in the preceding example, the domain is "cisco.com."
Router(config)# dial-peer voice 10 voipRouter(config-dial-peer)# destination-pattern 1310222....Router(dial-peer-config)# session target dns:$u$.cisco.comThe following example shows how to configure a session target using DNS, with the optional $d$. wildcard. In this example, the destination pattern has been configured for 13102221111. The optional wildcard $d$. indicates that the router will use the destination pattern to identify the dial peer in the "cisco.com" domain.
Router(config)# dial-peer voice 10 voipRouter(config-dial-peer)# destination-pattern 13102221111Router(config-dial-peer)# session target dns:$d$.cisco.comThe following example shows how to configure a session target using DNS, with the optional $e$. wildcard. In this example, the destination pattern has been configured for 12345. The optional wildcard $e$. indicates that the router will reverse the digits in the destination pattern, add periods between the digits, and then use this reverse-exploded destination pattern to identify the dial peer in the "cisco.com" domain.
Router(config)# dial-peer voice 10 voipRouter(config-dial-peer)# destination-pattern 12345Router(config-dial-peer)# session target dns:$e$.cisco.comThe following example shows how to configure a session target using RAS:
Router(config)# dial-peer voice 11 voipRouter(config-dial-peer)# destination-pattern 13102221111Router(config-dial-peer)# session target rasThe following example shows how to configure a session target using the settlement server:
Router(dial-peer-config)# session target settlement:0Related Commands
Command Descriptiondial-peer voice
Enters dial-peer configuration mode, and specifies the method of voice-related encapsulation.
Configures the SIP server interface.
session transport
To configure the VoIP dial peer to use TCP or User Datagram Protocol (UDP) as the underlying transport layer protocol for Session Initiation Protocol (SIP) messages, use the session transport command in dial-peer configuration mode. To reset this command to the default value, use the no form of this command.
session transport {udp | tcp}
no session transport
Syntax Description
udp
Configure the SIP dial peer to use the UDP transport layer protocol. This is the default.
tcp
Configure the SIP dial peer to use the TCP transport layer protocol.
Defaults
The SIP dial peer uses UDP.
Note
The transport protocol for transport and session transport must be the same.
Command Modes
Dial-peer configuration
Command History
Usage Guidelines
Use the show sip-ua status command to ensure that the transport protocol that you set using the session transport command matches the protocol set using the transport command.
Examples
The following example shows how to configure a VoIP dial peer to use UDP as the underlying transport layer protocol for SIP messages:
Router(config)# dial-peer voice 102 voipRouter(dial-peer-config)# session transport udpRelated Commands
show sip-ua
To display information and settings for the Session Initiation Protocol (SIP) user agent (UA), use the show sip-ua command in privileged EXEC mode.
show sip-ua {map {pstn-sip | sip-pstn} | retry | statistics | status | timers}
Syntax Description
Defaults
No default behavior or values
Command Modes
Privileged EXEC
Command History
Examples
The following example displays output for the show sip-ua retry command:
Router# show sip-ua retrySIP UA Retry Valuesinvite retry count = 2response retry count = 2bye retry count = 2cancel retry count = 1The following example displays output for the show sip-ua statistics command:
Router# show sip-ua statisticsSIP Response Statistics (Inbound/Outbound)Informational:Trying 0/0, Ringing 0/0,Forwarded 0/0, Queued 0/0,SessionProgress 0/0Success:OkInvite 0/0, OkBye 0/0,OkCancel 0/0, OkOptions 0/0Redirection (Inbound only):MultipleChoice 0, MovedPermanently 0,MovedTemporarily 0, SeeOther 0,UseProxy 0, AlternateService 0Client Error:BadRequest 0/0, Unauthorized 0/0,PaymentRequired 0/0, Forbidden 0/0,NotFound 0/0, MethodNotAllowed 0/0,NotAcceptable 0/0, ProxyAuthReqd 0/0,ReqTimeout 0/0, Conflict 0/0, Gone 0/0,LengthRequired 0/0, ReqEntityTooLarge 0/0,ReqURITooLarge 0/0, UnsupportedMediaType 0/0,BadExtension 0/0, TempNotAvailable 0/0,CallLegNonExistent 0/0, LoopDetected 0/0,TooManyHops 0/0, AddrIncomplete 0/0,Ambiguous 0/0, BusyHere 0/0Server Error:InternalError 0/0, NotImplemented 0/0,BadGateway 0/0, ServiceUnavail 0/0,GatewayTimeout 0/0, BadSipVer 0/0Global Failure:BusyEverywhere 0/0, Decline 0/0,NoExistAnywhere 0/0, NotAcceptable 0/0SIP Total Traffic Statistics (Inbound/Outbound)Invite 0/0, Ack 0/0, Bye 0/0,Cancel 0/0, Options 0/0Retry StatisticsInvite 0, Bye 0, Cancel 0, Response 0The following example displays output for the show sip-ua status command:
Router# show sip-ua statusSIP User Agent StatusSIP User Agent for UDP :ENABLEDSIP User Agent for TCP :ENABLEDSIP max-forwards :6The following example displays output for the show sip-ua timers command:
Router# show sip-ua timersSIP UA Timer Values (millisecs)trying 500, expires 180000, connect 500, disconnect 500The following example displays output for the show sip-ua map pstn-sip command:
Router# show sip-ua map pstn-sipThe PSTN Cause to SIP Status code mapping table:-PSTN-Cause Configured DefaultSIP-Status SIP-Status1 404 4042 404 4043 404 4044 500 5005 500 5006 500 5007 500 5008 500 5009 500 50015 500 50016 500 50017 486 48618 480 48019 480 48020 480 48021 403 40322 410 41026 404 40427 404 404...The following example displays output for the show sip-ua map sip-pstn command:
doc-7204vxr# show sip-ua map sip-pstnThe SIP Status code to PSTN Cause mapping table:-SIP-Status Configured DefaultPSTN-Cause PSTN-Cause400 127 127401 57 57402 21 21403 57 57404 1 1405 127 127406 127 127407 21 21408 102 102409 41 41410 1 1411 127 127413 127 127414 127 127415 79 79420 127 127480 18 18481 127 127...Related Commands
Command DescriptionEnables the SIP user-agent configuration commands, with which you configure the user agent.
sip-server
To configure a network address for the Session Initiation Protocol (SIP) server interface, use the sip-server command in SIP user-agent configuration mode.
sip-server {dns:[host-name] | ipv4:ip-addr[:port-num]}
Syntax Description
Defaults
The default for this command is a null value.
Command Modes
SIP user-agent configuration
Command History
Usage Guidelines
If you use this command, you can then use the session target sip-server command on each dial peer instead of repeatedly entering the SIP server interface address for each dial peer.
To reset this command to a null value, use the default command. This command does not have a no form.
Examples
The following example, beginning in global configuration mode, sets the global SIP server interface to the DNS host name "UA-1-f0.sip.com":
sip-uasip-server dns:UA-1-f0.sip.comRelated Commands
sip-ua
To enable the Session Initiation Protocol (SIP) user-agent configuration commands, in order to configure the user agent, use the sip-ua command in global configuration mode. To reset all SIP user-agent configuration commands to their default values, use the no form of this command.
sip-ua
no sip-ua
Syntax Description
This command has no arguments or keywords.
Defaults
No default behavior or values
Command Modes
Global configuration
Command History
Usage Guidelines
Use the sip-ua command to enter SIP user-agent configuration mode. Table 6 lists the SIP user-agent configuration mode commands:
Examples
The following example, beginning in global configuration mode, enters SIP user-agent configuration mode, configures the SIP user agent, and then returns to global configuration mode:
sip-uaretry invite 2retry response 2retry bye 2retry cancel 2sip-server ipv4:10.0.2.254timers invite-wait-100 500exitRelated Commands
timers
To configure the Session Initiation Protocol (SIP) signaling timers, use the timers command in the Session Initiation Protocol (SIP) user-agent configuration mode. To restore the default value, use the no form of this command.
timers {trying number | connect number | disconnect number | expires number}
no timers {trying number | connect number | disconnect number | expires number}
Syntax Description
Defaults
trying, connect, and disconnect—500
expires—180000Command Modes
SIP user-agent configuration
Command History
Usage Guidelines
If you used the previous version of this command to configure timers, your previous timer settings will be maintained. The output of the show running configuration command will reflect both timers.
To reset this command to the default value, you can also use the default command.
Examples
The following example shows how to configure the SIP signaling timers to wait 500 milliseconds for a 100 response to an INVITE request:
Router(config)# sip-uaRouter(config-sip-ua)# timers trying 500Related Commands
Command DescriptionEnables the SIP user-agent configuration commands, with which you configure the user agent.
transport
To configure the Session Initiation Protocol (SIP) user agent (gateway) for SIP signaling messages on inbound calls through the SIP TCP or UDP socket, use the transport command in SIP user-agent configuration mode. To block reception of SIP signaling messages on a particular socket, use the no form of this command.
transport {udp | tcp}
no transport {udp | tcp}
Syntax Description
udp
Configures the SIP user agent to receive SIP messages on UDP port 5060.
tcp
Configures the SIP user agent to receive SIP messages on TCP port 5060.
Defaults
Bboth UDP and TCP transport layer protocols are enabled
Command Modes
SIP user-agent configuration
Command History
Usage Guidelines
This command controls whether messages reach the SIP service provider interface (SPI). By setting udp or tcp as the protocol, this will be the protocol SIP user agents will be listening for on port 5060 (default). To block reception of SIP signaling messages on a specific socket, use the no form of this command.
To reset this command to the default value, use the default command.
Examples
The following example shows how to configure the SIP user agent to block reception of SIP signaling messages on the TCP socket:
Router(config)# sip-uaRouter(config-sip-ua)# no transport tcpRelated Commands





