Tuesday, January 25, 2011

Xcoder & Conf Br

Configuring Conference Bridge & Transcoder - Gateway (CLI) part

Definitions/Usage : "dspfarm" vs "dsp services dspfarm"
dspfarm: Allows dsp resources pooling or sharing.  That is, a VWIC card in a NM without any dsp resources can use mother board dsp resources.

dsp services dspfarm: Allows any unused dsp resources to be allocated for conferencing or transcoding.  Atleast one voice-card should be configured/enabled for this service.


Configuration:

sccp local looback X or gig X/X ---> specifies the local interface that SCCP applications use to register with Call Manager.

sccp ccm x.x.x.x identifier y version X.X---> adds the specified call manager to the list of available servers.   Identifier identifies the call manager with a number in the list. Required once for each call manager server in the list. For better failover stategy keep the servers in the same order of the device pool (with which this application  registers in CUCM). Version is the call manager version to which it registers.

sccp ip precedence X (1 - 7) ---> sets the predence value to be used by SCCP application. 
Range 1 -7 & default value is 5.

sccp ---> enables SCCP protocol and its related applications (transcoding/conferencing).


dspfarm profile:

dspfarm profile XX conference/transcode ---> enters the dspfarm profile mode.  Identifies the profile number (XX)& if it is for conferencing or for transcoding.

codec XXXXXX ---> specify all the codecs you want this application to support.  Ex: g711ulaw/g729abr8

maximum sessions XX ---> specifies the maximum number of sessions supported by this profile.  It depends on the available registered dsp resources.  Gateway automatically calculates and shows you the minimum & maximum number sessions (with maximum sessions ?) it can support depending upon the codecs you selected in above step.

associate application SCCP ---> Associates the SCCP protocl to the dspfarm profile (Application).

no shutdown ---> enables/activates this application/ dspfarm profile.


ccm group:

sccp ccm group XXX ---> enters the SCCP call manager config mode and creates call manager group

associate ccm X priority Y ---> adds specified call manager to the group and defines its priority in group.
Repeat for each call manager server defined in the call manager list (above).

associate profile XX register Name ---> associates above defined dspfarm profile with call manager group and registers with the call manager with specified name (Name must match with the device name specified in the call manager otherwise it will not register.)

bind interface loopback X or gig X/X ---> binds an interface with call manager group. 
This interface is used for signalling/media whereas "sccp local interface" command used for registration.

Example Config:

sccp local Loopback0
sccp ccm 10.10.1.1 identifier 1 priority 1 version 7.0
sccp ccm 10.10.2.2 identifier 2 priority 2 version 7.0
sccp ccm 10.10.2.3 identifier 3 priority 3 version 7.0
sccp ip precedence 1
sccp
!
sccp ccm group 118
 description Mexico Conference Bridge
 bind interface Loopback0
 associate ccm 1 priority 1
 associate ccm 2 priority 2
 associate ccm 3 priority 3
 associate profile 21 register ABCXCODE
!
dspfarm profile 21 transcode 
 codec g711ulaw
 codec g711alaw
 codec g729ar8
 codec g729abr8
 codec g729r8
 codec g729br8
 maximum sessions 10
 associate application SCCP








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