eduardo:cisco:cucm:sip-gw
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eduardo:cisco:cucm:sip-gw [2010/09/25 00:38] – eduardo | eduardo:cisco:cucm:sip-gw [2024/02/23 08:20] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SIP Gateway ====== | ||
+ | * SIP trunk is limited to the used of codec | ||
+ | * All media to/from SIP trunk is terminate on MTP | ||
+ | |||
+ | ===== Gateway ===== | ||
+ | * Configure source interface for SIP messages | ||
+ | < | ||
+ | voice service voip | ||
+ | sip | ||
+ | bind all source-interface Fa0/0.20 | ||
+ | </ | ||
+ | |||
+ | * Reduce timer for faster failover | ||
+ | * Send SIP invite 3 times max (1 initial + 2 retries) | ||
+ | * Wait 300ms for each trying | ||
+ | < | ||
+ | sip-ua | ||
+ | retry invite 2 | ||
+ | timers trying 300 | ||
+ | </ | ||
+ | |||
+ | * Configure Dial Peer | ||
+ | < | ||
+ | dial-peer voice 1 voip | ||
+ | destination-pattern 212394... | ||
+ | session protocol sipv2 | ||
+ | session target ipv4:< | ||
+ | voice-class codec 1 | ||
+ | dtmf-relay rtp-nte | ||
+ | no vad | ||
+ | </ | ||
+ | |||
+ | ===== Debug ===== | ||
+ | * Display active call inbound and outbound dial peer | ||
+ | * In the example below | ||
+ | * pid:5000 = inbound dial peer 5000 | ||
+ | * pid:91212 = outbound dial peer 91212 | ||
+ | < | ||
+ | Router# show call active voice brief | ||
+ | ... | ||
+ | Telephony call-legs: 1 | ||
+ | SIP call-legs: 1 | ||
+ | H323 call-legs: 0 | ||
+ | Call agent controlled call-legs: 0 | ||
+ | SCCP call-legs: 0 | ||
+ | Multicast call-legs: 0 | ||
+ | Total call-legs: 2 | ||
+ | 1383 : 280 920799800ms.1 +1960 pid:5000 Answer 2123945001 active | ||
+ | dur 00:00:06 tx: | ||
+ | IP 192.168.100.205: | ||
+ | media inactive detected:n media contrl rcvd:n/a timestamp: | ||
+ | long duration call detected:n long duration call duration: | ||
+ | 1383 : 281 920799830ms.1 +1930 pid:91212 Originate 912123942123 active | ||
+ | dur 00:00:06 tx: | ||
+ | Tele 0/0/0:23 (281) [0/0/0.10] tx: | ||
+ | |||
+ | Telephony call-legs: 1 | ||
+ | SIP call-legs: 1 | ||
+ | H323 call-legs: 0 | ||
+ | Call agent controlled call-legs: 0 | ||
+ | SCCP call-legs: 0 | ||
+ | Multicast call-legs: 0 | ||
+ | Total call-legs: 2 | ||
+ | |||
+ | Router# | ||
+ | </ | ||
+ | |||
+ | * Real time display of dialpeer matching | ||
+ | < | ||
+ | Router# debug voip dialpeer | ||
+ | ... | ||
+ | Sep 25 00: | ||
+ | | ||
+ | | ||
+ | Peer Info Type=DIALPEER_INFO_SPEECH | ||
+ | Sep 25 00: | ||
+ | | ||
+ | Sep 25 00: | ||
+ | | ||
+ | Sep 25 00: | ||
+ | Match Rule=DP_MATCH_DEST; | ||
+ | Sep 25 00: | ||
+ | | ||
+ | Sep 25 00: | ||
+ | | ||
+ | List of Matched Outgoing Dial-peer(s): | ||
+ | 1: Dial-peer Tag=91212 | ||
+ | ... | ||
+ | Router# | ||
+ | </ | ||
+ | |||
+ | * Debug SIP messages | ||
+ | < | ||
+ | Router# debug ccsip messages | ||
+ | |||
+ | Sep 25 00: | ||
+ | Received: | ||
+ | INVITE sip: | ||
+ | Date: Sat, 25 Sep 2010 00:37:27 GMT | ||
+ | Call-Info: < | ||
+ | Allow: INVITE, OPTIONS, INFO, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY | ||
+ | From: "Hub CIPC" < | ||
+ | Allow-Events: | ||
+ | P-Asserted-Identity: | ||
+ | Supported: timer, | ||
+ | Min-SE: | ||
+ | Remote-Party-ID: | ||
+ | Content-Length: | ||
+ | User-Agent: Cisco-CUCM7.0 | ||
+ | To: < | ||
+ | Contact: < | ||
+ | Expires: 180 | ||
+ | Call-ID: 11150300-c9d14447-e13-4865500a@10.80.101.72 | ||
+ | Via: SIP/2.0/TCP 10.80.101.72: | ||
+ | CSeq: 101 INVITE | ||
+ | Session-Expires: | ||
+ | Max-Forwards: | ||
+ | |||
+ | Sep 25 00: | ||
+ | Sent: | ||
+ | SIP/2.0 100 Trying | ||
+ | Date: Sat, 25 Sep 2010 00:37:27 GMT | ||
+ | From: "Hub CIPC" < | ||
+ | Allow-Events: | ||
+ | Content-Length: | ||
+ | To: < | ||
+ | Call-ID: 11150300-c9d14447-e13-4865500a@10.80.101.72 | ||
+ | Via: SIP/2.0/TCP 10.80.101.72: | ||
+ | CSeq: 101 INVITE | ||
+ | Server: Cisco-SIPGateway/ | ||
+ | |||
+ | Router# | ||
+ | </ | ||