REFERENCE and kudos to:
Every voice engineer has had this moment: a call fails, the customer says "it just doesn't work," and you SSH into the CUBE staring at a blinking cursor wondering where to even start.
This article is about that cursor. By the end you should be able to turn on the right debugs, read what scrolls past, and point at the exact line that explains why the call died.
No theory dumps. Just the stuff you'll actually type.
Components Used
The examples in this article are based on a generic Cisco CUBE SIP trunk environment.
All IP addresses, phone numbers, hostnames, Call-IDs, GUIDs, and CLI outputs are dummy examples created for learning. They are shaped to look like real CUBE output, but they are not captured from a live network.
Command syntax and available debug options vary by IOS / IOS XE release and platform. Always confirm on your own box before running anything in production.
First, what is CUBE actually doing?
CUBE (Cisco Unified Border Element) sits between two worlds — usually your internal call control (CUCM) and the outside world (an ITSP / SIP trunk provider).
It is a back-to-back user agent (B2BUA). That phrase matters more than it sounds. It means CUBE does not forward a call. It terminates the call on one side and originates a brand new call on the other side.
CUCM ──── Leg 1 ────► [ CUBE ] ──── Leg 2 ────► ITSP
(inbound leg) (outbound leg)
Two legs. Two Call-IDs. Two SDP negotiations. Two chances to break.
Almost every confusing CUBE debug becomes simple once you stop reading it as one call and start reading it as two calls glued together. When you're troubleshooting, the very first question is always:
Which leg is broken?
If the INVITE looked fine going out but the provider sent back a 503, the failure is on leg 2. That narrows the search — it does not close it. Now you need to prove whether the provider rejected the call, or whether CUBE sent something the provider did not like. Wrong calling number, a missing header, the wrong destination, a trunk policy — all of those live on leg 2 and all of them are yours to fix.
If CUCM never even got a 180 Ringing, look at leg 1. Half of troubleshooting is just knowing which half to look at. The other half is not stopping there.
Before you turn anything on (please read this part)
Debugs are CPU work. On a busy production CUBE carrying hundreds of calls, debug ccsip all can create serious CPU impact and should be avoided unless TAC specifically asks for it.
So set the guardrails first:
CUBE# configure terminal CUBE(config)# service timestamps debug datetime msec localtime show-timezone CUBE(config)# service sequence-numbers CUBE(config)# logging buffered 10000000 debugging CUBE(config)# no logging console CUBE(config)# no logging monitor CUBE(config)# end CUBE# clear logging
What each line is buying you:
Command Why you care
| service timestamps debug datetime msec | Without milliseconds, you can't tell what happened first. Timing is the evidence. |
| service sequence-numbers | Proves nothing got dropped from the log. |
| logging buffered 10000000 debugging | Debugs land in RAM, not on your screen. ~10 MB is a sane starting point. |
| no logging console / no logging monitor | The most important two lines here. Printing debugs to a slow console is what actually kills routers, not the debug itself. |
| clear logging | Start with an empty buffer so you're not reading yesterday's problem. |
Then when you're done:
CUBE# undebug all All possible debugging has been turned off
Say it with me: undebug all before you close the SSH session. Every time.
The only debug you need 80% of the time
CUBE# debug ccsip messages SIP Call messages tracing is enabled
That's it. That's the one.
debug ccsip messages prints every SIP message CUBE sends and receives, in full, exactly as it went on the wire. It is the closest thing to a packet capture that lives inside the router.
For most problems — call setup failures, weird disconnects, "the provider says they sent it and we say we didn't get it" — this single command answers the question.
The rest of the toolbox
You won't need these every day, but you should know they exist.
Command What it gives you When to reach for it
| debug ccsip messages | Full SIP messages, both legs | Almost always. Start here. |
| debug ccsip error | Just the SIP-layer errors | Quick, low-impact sanity check |
| debug ccsip states | SIP state machine transitions | Calls stuck in a weird state |
| debug ccsip calls | High-level call events | Lightweight overview |
| debug ccsip transport | TCP/TLS/UDP transport layer | TLS handshake failures, trunk won't come up |
| debug ccsip preauth | AAA / authentication | 407 Proxy Authentication Required loops |
| debug voip ccapi inout | The call control API — where the legs join | "Why did it pick that dial-peer?" |
| debug voip dialpeer | Dial-peer matching logic | Inbound/outbound dial-peer mysteries |
| debug voip rtp session named-event | DTMF (RFC 2833) events | "IVR won't take my digits" |
| debug ccsip all | Everything, all at once | Lab only, or when TAC explicitly requests it |
The power combo for a nasty call-routing issue is:
CUBE# debug ccsip messages CUBE# debug voip ccapi inout CUBE# debug voip dialpeer
SIP messages tell you what was said. ccapi inout tells you what CUBE decided. dialpeer tells you why it decided that. Together they're a confession.
Debug on a live box without wrecking it: conditional debugging
Here's the trick that separates people who debug on production from people who used to debug on production.
You can tell IOS: only show me debugs for this one number.
CUBE# configure terminal CUBE(config)# call filter match-list 1 voice CUBE(cfg-call-filter-match-list)# incoming calling-number 15125550100 CUBE(cfg-call-filter-match-list)# incoming called-number 15125550147 CUBE(cfg-call-filter-match-list)# exit CUBE(config)# end CUBE# debug condition match-list 1 exact-match CUBE# debug ccsip messages
Now the box is running debugs, but the buffer only fills when your test call comes through. 500 other calls in progress? Silent. Beautiful.
Simpler one-liner version, if you just want to filter by a number:
CUBE# debug condition called 15125550147 Condition 1 set
Check what conditions are armed, and clean up after:
CUBE# show debug condition Condition 1: called 15125550147 (1 flags triggered) CUBE# no debug condition all This condition is the last interface condition set. Removing all conditions may cause a flood of debugging messages, continue? [yes/no]: yes
Note: Conditional debugging support and syntax can vary slightly by IOS / IOS XE release and platform. Always verify with ? on the router before using these in production — debug condition ? and call filter match-list ? will tell you exactly what your box supports.
Reading the output: anatomy of a debug line
Here's a real-looking inbound INVITE arriving from an ITSP. This is what debug ccsip messages actually spits out.
CUBE# show logging Jul 14 09:42:11.318: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Received: INVITE sip:This email address is being protected from spambots. You need JavaScript enabled to view it.:5060 SIP/2.0 Via: SIP/2.0/UDP 198.51.100.20:5060;branch=z9hG4bK1c4d2a7f From: "Jane Doe" <sip:This email address is being protected from spambots. You need JavaScript enabled to view it.>;tag=8a3f21b4 To: <sip:This email address is being protected from spambots. You need JavaScript enabled to view it.> Call-ID: This email address is being protected from spambots. You need JavaScript enabled to view it. CSeq: 101 INVITE Contact: <sip:This email address is being protected from spambots. You need JavaScript enabled to view it.:5060> Max-Forwards: 70 Supported: timer,resource-priority,replaces Min-SE: 1800 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, UPDATE, REFER, INFO User-Agent: Acme-SBC/4.2.1 Content-Type: application/sdp Content-Length: 231 v=0 o=AcmeSBC 4321 1234 IN IP4 198.51.100.20 s=SIP Call c=IN IP4 198.51.100.20 t=0 0 m=audio 16404 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:20
Let's decode the parts that actually matter, because 90% of that block is noise until it isn't.
The header line — your GPS
Jul 14 09:42:11.318: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
- //-1/ → the call leg ID. -1 means CUBE hasn't created an internal call leg yet — this is the very first packet of the call. Once the call is up, this becomes a real number like //187/.
- xxxxxxxxxxxx → the GUID, the identifier that ties both legs together. Once it's populated, this is your golden string. Grep for it and you get the whole call, both legs, and nothing else.
Received: vs Sent:
This one word is the difference between "the provider did it" and "we did it." Read it first, every time. A surprising number of long troubleshooting calls end the moment somebody actually reads whether the message was sent or received.
Call-ID → unique per leg. Two different Call-IDs in one call is normal and correct. That's the B2BUA doing its job.
c= and m= lines in the SDP → the whole media story in two lines. c=IN IP4 198.51.100.20 is "send my audio here." m=audio 16404 RTP/AVP 0 101 is "to port 16404, and I speak codec 0 (G.711 µ-law) and 101 (DTMF)."
If you're chasing one-way audio, you live in these two lines. Nowhere else.
A full, healthy call — the ladder you're hoping to see
This is the happy path. Learn the shape of it so the broken one jumps out at you.
Jul 14 09:42:11.318: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Received: INVITE sip:This email address is being protected from spambots. You need JavaScript enabled to view it.:5060 SIP/2.0 <-- ITSP calls in Jul 14 09:42:11.322: //187/3F2B1A9C8000/SIP/Msg/ccsipDisplayMsg: Sent: SIP/2.0 100 Trying <-- "got it, hang on" Jul 14 09:42:11.341: //188/3F2B1A9C8000/SIP/Msg/ccsipDisplayMsg: Sent: INVITE sip:This email address is being protected from spambots. You need JavaScript enabled to view it..5:5060 SIP/2.0 <-- NEW leg out to CUCM Jul 14 09:42:11.389: //188/3F2B1A9C8000/SIP/Msg/ccsipDisplayMsg: Received: SIP/2.0 100 Trying <-- CUCM ack'd Jul 14 09:42:11.622: //188/3F2B1A9C8000/SIP/Msg/ccsipDisplayMsg: Received: SIP/2.0 180 Ringing <-- phone is ringing Jul 14 09:42:11.631: //187/3F2B1A9C8000/SIP/Msg/ccsipDisplayMsg: Sent: SIP/2.0 180 Ringing <-- passed back to ITSP Jul 14 09:42:16.104: //188/3F2B1A9C8000/SIP/Msg/ccsipDisplayMsg: Received: SIP/2.0 200 OK <-- somebody answered Content-Type: application/sdp ... c=IN IP4 10.10.20.5 m=audio 24576 RTP/AVP 0 101 Jul 14 09:42:16.112: //188/3F2B1A9C8000/SIP/Msg/ccsipDisplayMsg: Sent: ACK sip:This email address is being protected from spambots. You need JavaScript enabled to view it..5:5060 SIP/2.0 Jul 14 09:42:16.119: //187/3F2B1A9C8000/SIP/Msg/ccsipDisplayMsg: Sent: SIP/2.0 200 OK <-- and out to the ITSP Jul 14 09:42:16.204: //187/3F2B1A9C8000/SIP/Msg/ccsipDisplayMsg: Received: ACK sip:This email address is being protected from spambots. You need JavaScript enabled to view it.:5060 SIP/2.0 <-- call is UP. Audio flows. Jul 14 09:44:02.887: //187/3F2B1A9C8000/SIP/Msg/ccsipDisplayMsg: Received: BYE sip:This email address is being protected from spambots. You need JavaScript enabled to view it.:5060 SIP/2.0 <-- caller hung up Jul 14 09:44:02.911: //188/3F2B1A9C8000/SIP/Msg/ccsipDisplayMsg: Sent: BYE sip:This email address is being protected from spambots. You need JavaScript enabled to view it..5:5060 SIP/2.0 <-- tear down the other leg
Notice the two things that make this readable:
- The GUID 3F2B1A9C8000 is identical on every line. One call.
- The leg IDs alternate: 187 and 188. 187 is the ITSP side. 188 is the CUCM side. Once you spot that pattern, the debug reads like a conversation instead of a wall of text.
INVITE → 100 → 180 → 200 → ACK → (talking) → BYE → 200. That's a healthy call. Everything else is a variation on a failure.
Now the fun part: what broken looks like
1. 488 Not Acceptable Here — the codec fight
Jul 14 10:03:44.712: //214/A1B2C3D40000/SIP/Msg/ccsipDisplayMsg:
Sent:
INVITE sip:This email address is being protected from spambots. You need JavaScript enabled to view it..5:5060 SIP/2.0
...
m=audio 8046 RTP/AVP 9 101
a=rtpmap:9 G722/8000
Jul 14 10:03:44.798: //214/A1B2C3D40000/SIP/Msg/ccsipDisplayMsg:
Received:
SIP/2.0 488 Not Acceptable Here
Reason: Q.850;cause=65
Warning: 304 10.10.20.5 "Media Type Not Available"
Translation: "You offered G.722. I don't do G.722. Go away."
Two devices could not agree on a codec. Check voice class codec on your dial-peers, and check what the far end actually supports. cause=65 = bearer capability not implemented, which is Q.850's polite way of saying the same thing.
This is the single most common CUBE failure and it is always, always the SDP.
2. 403 Forbidden — the provider doesn't like you
Jul 14 10:11:09.220: //221/B2C3D4E50000/SIP/Msg/ccsipDisplayMsg: Received: SIP/2.0 403 Forbidden Warning: 399 sbc.itsp.net "Calling number not provisioned"
Signaling worked perfectly. The provider just rejected you. Nine times out of ten this is a caller ID / From header problem — you're sending a number they haven't authorized on your trunk. Read the Warning: header; providers usually tell you exactly what they hated.
3. No response at all — the silent treatment
Jul 14 10:15:02.100: //228/C3D4E5F60000/SIP/Msg/ccsipDisplayMsg: Sent: INVITE sip:This email address is being protected from spambots. You need JavaScript enabled to view it..9:5060 SIP/2.0 CSeq: 101 INVITE Jul 14 10:15:02.600: //228/C3D4E5F60000/SIP/Msg/ccsipDisplayMsg: Sent: INVITE sip:This email address is being protected from spambots. You need JavaScript enabled to view it..9:5060 SIP/2.0 <-- retransmission #1 CSeq: 101 INVITE Jul 14 10:15:03.600: //228/C3D4E5F60000/SIP/Msg/ccsipDisplayMsg: Sent: INVITE sip:This email address is being protected from spambots. You need JavaScript enabled to view it..9:5060 SIP/2.0 <-- retransmission #2 CSeq: 101 INVITE Jul 14 10:15:05.600: //228/C3D4E5F60000/SIP/Msg/ccsipDisplayMsg: Sent: INVITE sip:This email address is being protected from spambots. You need JavaScript enabled to view it..9:5060 SIP/2.0 <-- retransmission #3 Jul 14 10:15:34.100: //228/C3D4E5F60000/SIP/Msg/ccsipDisplayMsg: Sent: SIP/2.0 503 Service Unavailable <-- CUBE gives up, tells CUCM
Same INVITE. Same CSeq: 101. Doubling intervals (500ms → 1s → 2s → 4s...). Zero Received: lines.
This is not a SIP problem. This is a firewall, a routing problem, an ACL, or a dead far end. SIP is working exactly as designed — it's shouting into a void and eventually giving up. Stop reading the debug and go check the network path.
If you only remember one pattern from this article, make it this one. Repeated Sent: with no Received: = the packets aren't getting there.
4. One-way audio — signaling is perfect, and yet
The call connects. Nobody hangs up. And one person hears nothing.
Every SIP message looks textbook. So look at the SDP:
Received: SIP/2.0 200 OK ... c=IN IP4 10.10.20.5 <-- far end says "send audio to 10.10.20.5" m=audio 24576 RTP/AVP 0 a=sendrecv
Now cross-check reality:
CUBE# show voip rtp connections VoIP RTP active connections : No. CallId dstCallId LocalRTP RmtRTP LocalIP RemoteIP 1 187 188 16404 24576 192.0.2.10 10.10.20.5 2 188 187 8046 16404 198.51.100.21 198.51.100.20
Is the RemoteIP something CUBE can actually route to? Is it a private IP that leaked out to the internet? Is a=inactive or a=sendonly hiding in there?
Signaling and media take different paths. A call can be signaling-perfect and media-dead, and the SIP debug will look happy the entire time. That's not a bug — that's SIP.
The show commands that pair with your debugs
Debugs tell you what happened. show commands tell you what is.
CUBE# show call active voice compact <callID> A/O FAX T<sec> Codec type Peer Address IP R:<ip>:<udp> TOTAL CALL COUNT = 2 187 ANS T4 93 g711ulaw VOIP P+15125550100 198.51.100.20:16404 188 ORG T4 93 g711ulaw VOIP P+15125550147 10.10.20.5:24576
Two rows, one call. ANS = the answering (inbound) leg, ORG = the originating (outbound) leg. Same duration. Same codec. This is a healthy live call, at a glance.
CUBE# show sip-ua calls
SIP UAC CALL INFO
Call 1
SIP Call ID : This email address is being protected from spambots. You need JavaScript enabled to view it.
State of the call : STATE_ACTIVE (7)
Substate of the call : SUBSTATE_NONE (0)
Calling Number : +15125550100
Called Number : +15125550147
Negotiated Codec : g711ulaw
Media Destination IP : 10.10.20.5
Media Destination Port : 24576
CUBE# show dial-peer voice summary
AD PRE PASS
TAG TYPE MIN OPER PREFIX DEST-PATTERN FER THRU SESS-TARGET
100 voip up up +1[2-9]...... 0 ipv4:10.10.20.5
200 voip up up .T 0 ipv4:198.51.100.20
If a call isn't going out at all, check this before you turn on a single debug. An oper down dial-peer explains a lot of mysteries for free.
The workflow, honestly
This is what I actually do, in order:
- show call active voice compact — is the call even hitting the box?
- show dial-peer voice summary — are my peers up? Is the pattern right?
- Set a debug condition on the test number. Don't skip this on production.
- debug ccsip messages, make one test call, undebug all.
- show logging, find the GUID, and filter to just that call:
CUBE# show logging | include 3F2B1A9C8000
- Read the response codes in order. The first thing that isn't a 1xx or 2xx is your answer.
- If the answer isn't there, add debug voip ccapi inout and ask why did CUBE choose what it chose.
That's the whole method. Everything else is experience filling in the gaps.
The cheat sheet
Response codes you'll actually meet:
Code Means Usually because
| 100 Trying | Got it | Normal |
| 180 Ringing | Phone is ringing | Normal |
| 183 Session Progress | Early media | Normal (ringback from the provider) |
| 200 OK | Answered | Normal |
| 401 / 407 | Authenticate | Registration/credentials on the trunk |
| 403 Forbidden | Rejected | Caller ID not provisioned, IP not whitelisted |
| 404 Not Found | No such number | Digit manipulation gone wrong |
| 415 Unsupported Media Type | Bad body | Rare; usually a weird SDP/content type |
| 480 Temporarily Unavailable | Nobody home | Phone unregistered, DND |
| 486 Busy Here | Busy | Actually busy |
| 488 Not Acceptable Here | Codec mismatch | The classic. Check your codec lists. |
| 500 Server Internal Error | Far end broke | Their problem, but prove it |
| 503 Service Unavailable | No capacity / dead | Trunk down, or CUBE gave up retransmitting |
Commands, one screen:
! Prep service timestamps debug datetime msec localtime show-timezone logging buffered 10000000 debugging no logging console no logging monitor ! Aim call filter match-list 1 voice incoming called-number 15125550147 debug condition match-list 1 exact-match ! Fire debug ccsip messages debug voip ccapi inout ! only if you need routing logic ! Collect show logging | include <GUID> ! Clean up <-- DO NOT SKIP undebug all no debug condition all clear logging
The one thing to take away
A CUBE SIP debug looks like a wall of text, but it's really just two conversations happening side by side, and one of them went wrong.
Find the GUID. Filter to one call. Read Sent: and Received: in order. Find the first response code that isn't a 1xx or 2xx.
The router already told you what's wrong. You just have to let it finish talking.
Related Information
Cisco's Collaboration Solutions Analyzer includes a CUBE Log Analyzer that will take raw SIP debug output and render it as a ladder diagram with call-leg detail. It's worth knowing about for two reasons: it makes a messy debug readable in seconds, and it's often the format TAC wants. One catch — the file you upload should contain SIP debug output only, not debug output mixed with show command results.
Works Cited
Cisco. "Configure Debug Collection for CUBE and TDM Gateways." Cisco Support.
Cisco. "Troubleshoot a SIP Call Between Two Endpoints." Cisco Support.
Cisco. "Cisco IOS Voice Command Reference — show sip-ua calls." Cisco Documentation.
Cisco. "Using the show call active voice Command to Troubleshoot Voice Calls." Cisco Support.
Cisco. "Troubleshoot CUBE via Collaboration Solutions Analyzer." Cisco Support.
Rosenberg, Jonathan, et al. "SIP: Session Initiation Protocol." RFC 3261, Internet Engineering Task Force, June 2002.