Tuesday, May 31, 2011

MWI Manual Disable

For those times when MWI is stuck on:

Find the MWI off DN.

ephone-dn  599
 number A801.... no-reg primary
 mwi off



Build a new DN which has CFA set to the complete dialstring (fill in the .... with the extension you want to turn MWI off on). The below example will shut off MWI for extension 5040.

ephone-dn  559
call-forward all A8015040
number 5990 no-reg primary

Call the number associated with the ephone-dn.

Tuesday, February 15, 2011

Cisco Router VPN Details


show crypto isakmp peers           - Show ISAKMP peer structures (IPs and etc connected over the VPN)
show crypto isakmp sa                  - Show ISAKMP Security Associations (IPs and etc connected over the VPN)
show crypto session summary   - Show VPN groups and their members (users and groups connected over the VPN)
who                                          - Shows users currently logged into the router

Friday, February 11, 2011

SIP Carrier Debugs

SIP: Attribute mid, level 1 instance 1 not found.
2524735: Feb 11 17:54:53.522 MST: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
SIP/2.0 200 OK
Via: SIP/2.0/UDP >:5060;branch=z9hG4bK2D041732
Record-Route:
From: "Bob Jones" ;tag=BAAA8198-462
To: ;tag=_1255064163-933720387
Call-ID: 876EDB09-357911E0-970ADCDF-F107A873@>
CSeq: 101 INVITE
Contact: sip:+18004444444@67.231.0.94:5070
Accept: application/sdp, application/isup, application/dtmf, application/dtmf-relay,  multipart/mixed
Allow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS,MESSAGE,PUBLISH
Content-Disposition: session; handling=required
Content-Type: application/sdp
Content-Length: 276

v=0
o=pvp 305419896 305419896 IN IP4 67.231.0.125
s=-

! MEDIA GATEWAY - this is the carrier your SIP provider is having route your call. The IPs may change even if it's the same carrier but an IP whois lookup will show you which carrier your call is routing through. 
c=IN IP4 67.231.0.125

t=0 0
m=audio 24396 RTP/AVP 0 18 101
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=maxptime:40
a=sendrecv

Thursday, February 3, 2011

Cisco Command Tricks - Monitoring Performance


Show the list of tasks running sorted by CPU usage and excluding any that are using 0%
sh proc cpu sorted | ex 0.00
Show spanning tree changes
show spanning-tree detail | inc ieee|occur|from|is exec
Show interface counter errors
sh interface counters errors 
sh int | i line|error
Show interface queue statuses and drops
sh int | in Input|line

Friday, January 14, 2011

Excel Tricks

Reformatting Phone Numbers

To remove the dashes from phone numbers (e.g. change 206-456-789 to 206456789):
=SUBSTITUTE(A1,"-","")
To remove dashes and add digits to the beginning of phone numbers (e.g. change 206-456-789 to 1206456789): NOTE: This should be pretty useful in other situations too and should handle small additions better than creating a new cell/column with what you need to add and then Concatenating everything together. 
=1&SUBSTITUTE(A1,"-","")
Reference

Thursday, December 16, 2010

Cisco Routers - Use Local Timezone for Log Timestamps










Router log timestamp entries are different from the system clock when the NTP is configured

VERSION 2 Click to view document history

Core Issue

If a router is configured to get the time from a Network Time Protocol (NTP) server, the times in the router's log entries may be different from the time on the system clock if the [localtime] option is not in the service timestamps log command. In the example below, the router gets its time from an NTP server and theservice timestamps log datetime command is issued. The show clockcommand displays a time of 14:12:26, yet when a configuration change is made immediately after the show clock command, the log message shows a time of 21:12:28, as shown in this example:

clock timezone PST -8
clock summer-time PDT recurring
service timestamps debug datetime
service timestamps log datetime
logging buffered 16000 debugging
ntp clock-period 17179272
ntp server 161.181.92.152

router#show clock
14:12:26.312 PDT Thu Apr 27 2000
router#config t
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#exit
router#
Apr 27 21:12:28: %SYS-5-CONFIG_I: Configured from console by vty0

Resolution

Add the [localtime] option to the service timestamps log command. For example, if the current configuration is service timestamps log datetime, issue this global configuration command:
router(config)#service timestamps log datetime localtime
router(config)#^Z (ctrl z to exit)
router#write mem

The times should now be synchronized between the system clock and the log message timestamps.

Thursday, October 28, 2010

Cisco - ISDN Plan Map

Apparently Cisco CME creates its own ISDN call plan rule set automagically. With some vendors, when you send across a number which begins with 011 and plan type international their switches freak out. You can override this treatment by applying an ISDN MAP to the serial interface of the PRI.

interface Serial0/2/0:23
isdn map address 011.* plan isdn type unknown

Reference:
http://www.cisco.com/en/US/docs/ios/dial/command/reference/dia_i2.html

isdn map

To override the default ISDN type and plan generated by the router with custom values, use the isdn map command in interface configuration mode. To revert to the default ISDN type and plan, use the no form of this command.
isdn map address {{address | reg-exp} plan plan type type | transparent}
no isdn map address {{address | reg-exp} plan plan type type | transparent}

Syntax Description

address
Specifies that the default ISDN type and plan will be overridden.
address
Address map, which can be to either the calling number or the called number. This argument specifies the address for which the ISDN type and plan will be overridden.
reg-exp
Regular expression for pattern matching. This argument specifies that the ISDN type and plan will be overridden for addresses that match the regular expression.
plan plan
ISDN numbering plan. Valid values for the plan argument are as follows:
any—Any type of dialed number.
data—X.121 data numbering plan.
ermes—European Radio Message System numbering plan.
isdn—E.164 ISDN/Telephony numbering plan.
national—Number called to reach a subscriber in the same country, but outside the local network.
private—Private numbering plan.
reserved—Reserved for extension.
telex—F.69 telex numbering plan.
unknown—Number of a type that is unknown by the network.
type type
ISDN number type. Valid values for the type argument are as follows:
abbreviated—Abbreviated representation of the complete number as supported by this network.
any—Any type of called number.
international—Number called to reach a subscriber in another country.
national—Number called to reach a subscriber in the same country, but outside the local network.
network—Administrative or service number specific to the serving network.
reserved—Reserved for extension.
subscriber—Number called to reach a subscriber in the same local network.
unknown—Number of a type that is unknown by the network.
transparent
Specifies that the ISDN type and plan values received in raw messages from the ISDN originating gateway will take priority over the ISDN type and plan values received in the H.225 SETUP messages.

Command Default

The default is the ISDN type and plan generated by the router.

Command Modes

Interface configuration

Command History

Release
Modification
12.0(6)T
This command was introduced.
12.3(7)T
The transparent keyword was added.

Usage Guidelines

The default ISDN type and plan can be overridden with custom values on a per-number basis or for numbers that match regular expression patterns.
If you use the isdn map command to configure custom values for the ISDN type and plan, these values take priority over any other ISDN type and plan values. The order of precedence for ISDN type and plan values is as follows, beginning with the highest precedence:
Type and plan values configured with the isdn map command.
Type and plan values from voice translation rules specified with the rule (voice translation-rule) command.
Values received in the H.225 SETUP messages.
Values received from the ISDN originating gateway in raw messages.
Configuring the isdn map command with the transparent keyword results in raw messages received from the ISDN originating gateway receiving priority over H.225 SETUP messages. When the isdn map command is configured with thetransparent keyword, the order of precedence for ISDN type and plan values is as follows:
Type and plan values configured with the isdn map command.
Type and plan values from voice translation rules specified with the rule (voice translation-rule) command.
Values received from the ISDN originating gateway in raw messages.
Values received in the H.225 SETUP messages.

Examples

The following example overrides any plan and type used for any ISDN calls with a called or calling number that exactly matches 123:
interface serial1:23
 isdn map address 123 plan isdn type unknown 

The following example overrides any plan and type used for ISDN calls with a called or calling number that begins with the numerals 12:
interface serial1:23
 isdn map address 12.* plan data type subscriber
The following example matches any number that ends with the number 7:
interface serial1:23
 isdn map address .*7 plan data type subscriber
The following example reverses the precedence of ISDN type and plan values received from the ISDN originating gateway and from the H.225 SETUP message:
interface serial1:23
 isdn map address transparent

Related Commands

Command
Description
rule (voice translation-rule)
Defines a translation rule.

Wednesday, October 27, 2010

Cisco CME GUI Access

Post 8.0.2 you can no longer access the CME GUI through the CUE GUI. The workaround is to access this directly by going to:


http:///telephony_service.html

References:
http://uc500.com/en/cue-802-not-able-acces-cme
http://www.ciscosystems.com/en/US/docs/voice_ip_comm/unity_exp/rel8_0/rel_notes/rel_notes.html#wp339722 

Tuesday, October 19, 2010

CURL Notes

curl -a -o curltest.txt http://10.10.30.[1-30]

Thursday, August 12, 2010

Cisco IOS Shortcuts - Moving Around

Moving the Cursor on the Command Line

Table 2 shows the key combinations or sequences you can use to move the cursor on the command line to make corrections or changes. Ctrl indicates the Control key, which must be pressed simultaneously with its associated letter key. Esc indicates the Escape key, which must be pressed first, followed by its associated letter key. Keys are not case sensitive. Many letters used for CLI navigation and editing were chosen to provide an easy way of remembering their functions. In Table 2characters are bolded in the "Function Summary" column to indicate the relation between the letter used and the function.
Table 2 Key Combinations Used to Move the Cursor 
Keystrokes
Function Summary
Function Details
Left Arrow orCtrl-B
Back character
Moves the cursor one character to the left.
When you enter a command that extends beyond a single line, you can press the Left Arrow or Ctrl-B keys repeatedly to scroll back toward the system prompt and verify the beginning of the command entry, or you can press the Ctrl-A key combination.
Right Arrowor Ctrl-F
Forward character
Moves the cursor one character to the right.
EscB
Back word
Moves the cursor back one word.
EscF
Forward word
Moves the cursor forward one word.
Ctrl-A
Beginning of line
Moves the cursor to the beginning of the line.
Ctrl-E
End of line
Moves the cursor to the end of the command line.