Monday, January 17, 2011

csim start

Command #1 - csim start "dial string"

csim start "dial string" simulates a call to the specified dial string.  Most useful command in testing dial-plans on Voice Gateways & CMEs.

Need to remember when using csim start:
1. It works only with telnet & does not work with SSH1 or SSH2.  You would see following error message when you try this command with SSH1 or SSH2 login:

Router#csim start 911234567890
csim: called number = 911234567890, loop count = 1 ping count = 0
csim err:csim_do_test invalid major major(16) minor(0)
csim: loop = 1, failed = 0 
csim: call attempted = 1, setup failed = 0, tone failed = 0
2. It works only on the gateway with dial-plan configured.

3. When the destination phone (specified dial string) rings you can answer the phone but you would not hear anything.

4. Can be used in conjunction with debug commands (debug q931 or debug ccapi etc.,)


Examples:

1. Successful call
Router#csim start 919724156038
csim: called number = 919724156038, loop count = 1 ping count = 0
csim: loop = 1, failed = 0 
csim: call attempted = 1, setup failed = 0, tone failed = 1

2. Unsuccessful call (call placed to unknown phone # or extension that doesnot exist)
Router#csim start 923456781234
csim: called number = 923456781234, loop count = 1 ping count = 0
csim err csimDisconnected recvd DISC cid(20237)
csim: loop = 1, failed = 1 
csim: call attempted = 1, setup failed = 1, tone failed = 0
3. Sometimes even the call (test) is successful still setup failed shows 1 - And I really dont know the reason :(
Router#csim start 919724156038csim: called number = 919724156038, loop count = 1 ping count = 0
*Jan 17 2011 11:55:42.785 MST: ISDN Se0/1/0:23 Q931: pak_private_number: Invalid type/plan 0x0 0x0 may be overriden; sw-type 3
*Jan 17 2011 11:55:42.785 MST: ISDN Se0/1/0:23 Q931: Sending SETUP  callref = 0x0C9A callID = 0x8CFA switch = primary-5ess interface = User
*Jan 17 2011 11:55:42.785 MST: ISDN Se0/1/0:23 Q931: TX -> SETUP pd = 8  callref = 0x0C9A
        Bearer Capability i = 0x8090A2
                Standard = CCITT
                Transfer Capability = Speech 
                Transfer Mode = Circuit
                Transfer Rate = 64 kbit/s
        Channel ID i = 0xA98397
                Exclusive, Channel 23
        Called Party Number i = 0xA1, '19724156038'
                Plan:ISDN, Type:National
*Jan 17 2011 11:55:42.837 MST: ISDN Se0/1/0:23 Q931: RX <- CALL_PROC pd = 8  callref = 0x8C9A
        Channel ID i = 0xA98397
                Exclusive, Channel 23
*Jan 17 2011 11:55:43.457 MST: ISDN Se0/1/0:23 Q931: RX <- PROGRESS pd = 8  callref = 0x8C9A
        Progress Ind i = 0x8A81 - Call not end-to-end ISDN, may have in-band info
*Jan 17 2011 11:55:48.753 MST: ISDN Se0/1/0:23 Q931: RX <- ALERTING pd = 8  callref = 0x8C9A
*Jan 17 2011 11:55:55.377 MST: ISDN Se0/1/0:23 Q931: RX <- CONNECT pd = 8  callref = 0x8C9A
*Jan 17 2011 11:55:55.381 MST: %ISDN-6-CONNECT: Interface Serial0/1/0:22 is now connected to 19724156038 N/A
*Jan 17 2011 11:55:55.381 MST: ISDN Se0/1/0:23 Q931: TX -> CONNECT_ACK pd = 8  callref = 0x0C9A
csim err csimDisconnected recvd DISC cid(17292)
csim: loop = 1, failed = 1 
csim: call attempted = 1, setup failed = 1, tone failed = 0

No comments:

Post a Comment