community.cisco.com · web viewbelow are the commands to collect pcm captures on cisco router. run...

7
FXO Disconnect Issue There are cases/situations where we have to configure custome CPTONE to resolve FXO disconnect issue. Following are situations which can arise due to FXO disconnect issue: a. Phone A calls Phone B, Phone B does not answer. Phone A then goes on-hook but Phone B keeps on ringing. b. FXO ports remains busy/off-hook even if the call has been cleared. So, to resolve FXO disconnect issue we can configure custome CPTONE. Cisco router’s have CPTONE which can be applied on FXO ports based on the country (standard countries, e.g.: US, UK, INDIA). But for countries other than standard countries, where TELCO uses different frequencies to send the calls, we have to configure custome CPTONE. We will go through following steps in this documents. 1. Collecting PCM captures on FXO port for any affected call. 2. Analysing PCM captures using pcet tool to get SIN tone. 3. Using Cool EditPro software to find Cadence and Frequency of the SIN tone. 4. Configuring custome CPTONE using the Cadence and frequency. 5. Applying the custome CPTONE on FXO port. 1. Let’s start with collecting PCM captures. Below are the commands to collect PCM captures on Cisco router. Run below commands: (Use the below commands on IOS 15.2 and above) voice pcm capture buffer 200000 voice pcm capture destination flash:TAC.dat >> Make a test call and keep the call active. (Use this step if we are unaware of the port number through which call is coming) >> Check "show voice call status" output For example If the output is as below. VG01#sh voice call status CallID CID ccVdb Port Slot/DSP:Ch Called # Codec MLPP Dial-peers 0x129C 0 0x3FB6A80C 0/0/0 0/1:2 *4444 g722-64 7217002/7217004 1 active call found

Upload: others

Post on 02-Aug-2020

12 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: community.cisco.com · Web viewBelow are the commands to collect PCM captures on Cisco router. Run below commands: (Use the below commands on IOS 15.2 and above) voice pcm capture

FXO Disconnect IssueThere are cases/situations where we have to configure custome CPTONE to resolve FXO disconnect issue. Following are situations which can arise due to FXO disconnect issue:

a. Phone A calls Phone B, Phone B does not answer. Phone A then goes on-hook but Phone B keeps on ringing.

b. FXO ports remains busy/off-hook even if the call has been cleared.

So, to resolve FXO disconnect issue we can configure custome CPTONE. Cisco router’s have CPTONE which can be applied on FXO ports based on the country (standard countries, e.g.: US, UK, INDIA). But for countries other than standard countries, where TELCO uses different frequencies to send the calls, we have to configure custome CPTONE.

We will go through following steps in this documents.

1. Collecting PCM captures on FXO port for any affected call.2. Analysing PCM captures using pcet tool to get SIN tone.3. Using Cool EditPro software to find Cadence and Frequency of the SIN tone.4. Configuring custome CPTONE using the Cadence and frequency.5. Applying the custome CPTONE on FXO port.

1. Let’s start with collecting PCM captures. Below are the commands to collect PCM captures on Cisco router.

Run below commands: (Use the below commands on IOS 15.2 and above)

voice pcm capture buffer 200000voice pcm capture destination flash:TAC.dat

>> Make a test call and keep the call active. (Use this step if we are unaware of the port number through which call is coming)>> Check "show voice call status" outputFor example If the output is as below.

VG01#sh voice call statusCallID CID ccVdb Port Slot/DSP:Ch Called # Codec MLPP Dial-peers0x129C 0 0x3FB6A80C 0/0/0 0/1:2 *4444 g722-64 7217002/72170041 active call found

>> Make a note of port number, copy the same and paste it in below command

test voice port 0/0/0 pcm-dump caplog 7 duration 255

Enter the above command

Once the issue is reproduced disconnect the phone and check if there is a PCM file in the flash or not.

Check "show flash: | i TAC.dat"

PCM file name would look like : TAC.datX-0_1_2-15_46_10_Dec_5_18.dat

Page 2: community.cisco.com · Web viewBelow are the commands to collect PCM captures on Cisco router. Run below commands: (Use the below commands on IOS 15.2 and above) voice pcm capture

If it's available disable the PCM configuration

conf t#no voice pcm capture bufferconf t# no voice pcm capture destination

>>Transfer/copy the PCM file to your system.>>Rename the the PCM file to <Filename.dat> only. E.g.: TAC.dat. (Remove datX-0_1_2-15_46_10_Dec_5_18 from the file name). This is done because sometimes the PCET tool does not accepts original PCM file name.

2. Analysing PCM captures using pcet tool to extract SIN tone. a. Open pcet.cisco.com>>Click to select a file>>select the PCM

file*.dat)>>>Open>>>Decode PCM.

b. You will see three files as output: RIN.pcm.wav, SIN.pcm.wav and SOUT.pcm.wav.

Page 3: community.cisco.com · Web viewBelow are the commands to collect PCM captures on Cisco router. Run below commands: (Use the below commands on IOS 15.2 and above) voice pcm capture

Q: What are all audio these files I am seeing? A1: Files ending with "rin" contain audio received from IP going towards the PSTN. A2: Files ending with "sin" contain audio received from the PSTN going towards IP, before the DSP does any processing. A3: Files ending with "sout" contain audio received from the PSTN going towards IP, after the DSP processes the audio. Things like echo cancellation and input gain adjustments are visible here.

Below image explains RIN, SIN and SOUT.

c. So, we have to analyse the SIN file. d. Download SIN.pcm.wav file.

3. Using Cool EditPro software to find Cadence and Frequency of the SIN tone.

a. Open Cool edit Pro>>Go to File>>Open>>Select the SIN.pcm.wav file from the location on your system>>Open

b. You will see the below screen.

Page 4: community.cisco.com · Web viewBelow are the commands to collect PCM captures on Cisco router. Run below commands: (Use the below commands on IOS 15.2 and above) voice pcm capture

c. To determine the Cadence values (On/Off Tone or on/off timing), you need to zoom in the tones. Select only the ‘on’ part of the tone- the part you can hear. In the lower right hand corner, it should give you the “Length 0:00.xxx”. This value is in miliseconds. Record this – this is your ON-Tone. In the below image, value of On-Tone is 101. (see the Length value on the right-bottom corner)

d. Next, select the empty area between your first and second tones. Look towards the Length field again and record this value, this is your first OFF-tone. In the below image, value of Off-Tone is 99. (see the Length value on the right-bottom corner).

Note: Continue to do this for at least 2 to 3 On/Off tones.

Page 5: community.cisco.com · Web viewBelow are the commands to collect PCM captures on Cisco router. Run below commands: (Use the below commands on IOS 15.2 and above) voice pcm capture

e. To measure the frequency of the tone, go to Analyze>>Show Frequency Analysis. This will give you the time domain of the audio you have selected. Hover your mouse over the tip of the spike, and you will find out the frequency. For a disconnect tone, you should have either one or two tones, record these values.

4. Configuring custome CPTONE using the Cadence and frequency.

voice class custom-cptone TAC_TESTdualtone disconnectfrequency <the frequency that you have note down>Cadence On-Tone Off-Tone On-Tone Off-Tonevoice class dualtone-detect-params 2cadence-variation 10 freq-max-deviation 10

Cadence-variation and freq-max-deviation values can be different and greater than 10. Here it is just a sample config.

To specify the cadence variation time allowed for detection of a tone, use the cadence-variation command in voice-class configuration mode. To restore the default cadence variation time, use the no form of this command.

To specify the maximum frequency deviation allowed in a tone, use the freq-max-deviation command in voice-class configuration mode. To reset to the default maximum frequency deviation, use the no form of this command.

5. Applying the custome CPTONE on FXO port

voice-port 0/2/0supervisory disconnect dualtone mid-callsupervisory custom-cptone TAC_TESTsupervisory dualtone-detect-params 2timeouts call-disconnect 1timeouts wait-release 1shutno shut

Page 6: community.cisco.com · Web viewBelow are the commands to collect PCM captures on Cisco router. Run below commands: (Use the below commands on IOS 15.2 and above) voice pcm capture