05-22-2015 05:30 AM
Our understanding of SIP trunk is a IP from a service provider. Certain cases the customers get SIP trunks from multiple service providers, those customer will have more than one SIP trunks.
This time we want to track SIP trunk status. SIP trunk can go down because of the following two reasons.
1. When the SIP service in gateway is stopped
This is the command to stop the SIP service.
Router> enable
Router # configure terminal
Router(config)# voice service voip
Router(config-voi-serv)# sip
Router(config-serv-sip)# call service stop
This can be detected by issuing "show sip service", it shows whether the service is up or down.
2. SIP service from a service provider side is down.
This can be tracked by using "show dial-peer voice summary" command. From the output if the keep alive column says "active" SIP trunk is up. When it says "busyout", SIP trunk is down. This is our assumption.
3. Please give us if there are any other reasons that a SIP trunk can go down.
Tracking SIP trunk in another way :
It returns the result like the following.
Line peer expires(sec) registered P-Associ-URI
================================ ========== ============ ========== ============
1000 20001 54 no
1001 20004 54 no
154001 -1 56 yes
4175209020 20002 54 no
Please search for "sho sip-ua register status" in the book. There is a command result there. According to that result, the command "show sip-ua register status" shows the list of trunks configured in the gateway. The trunks, which are having "-1" in the peer column are SIP trunks.
Am I correct?
In this case what is "expires(sec)" means? Does it mean, we have to re-register the trunks after the mentioned seconds?
Does the column "registered" reflect the status of the SIP trunk? Because, I found online that some of them are using this flag "yes/no" as status of SIP trunk. In that case, whenever a SIP trunk goes down (Service provider side down), will this flag change?
It returns the result like the following.(This is not a original output taken from the gateway, this is modified from the internet content based on the columns)
TAG TYPE ADMIN OPER PREFIX DEST-PATTERN PREF THRU SESS-TARGET STAT PORT KEEPALIVE
100 pots up up 0
101 voip up up 5550112 0 syst ipv4:10.10.1.1 up active
102 voip up up 5550134 0 syst ipv4:10.10.1.1 down busyout
99 voip up down 0 syst
33 pots up down 0
Will this command show all the configured SIP trunks? Can we use this command in a voip gateway without CUBE?
If we are able to run in it the CUBE and it displays the trunks, as per above result, we need to consider three columns.
These are the three columns that we need to consider. For detecting whether a SIP trunk is up or down, I guess using STAT column is the right way to do. Am I correct?
07-08-2015 12:29 AM
Please let me know if following two threads answers your question...
https://supportforums.cisco.com/discussion/12514401/will-keepalive-option-be-available-voip-gateway-without-cube
https://supportforums.cisco.com/discussion/12514276/will-show-dial-peer-voice-summary-command-result-include-sip-trunks-connected
Thanks
Vivek
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide