FXO ringing problem

Answered Question
May 4th, 2010
User Badges:

Dear all,


I dial by mobile phone from PSTN to my company number and press the extension number for local phone. The IP Phone rings. Now I hang off the mobile phone but the IP Phone still ringing. So what is the problem? Is it caused by FXO setting? Thank you very much.

Correct Answer by Harmit Singh about 7 years 4 days ago

Hi Hiep,


Thank you for updating everyone on this post. I'm glad to hear that its working fine now. Incase anyone is wondering what the "timeouts wait-release" command does, it is used to configure the delay timeout before the system starts the process for releasing voice ports. From the command lookup tool, the usage guideline states: Use this command to limit the time a voice port can be held in a call  failure state. After the timeout, the release sequence is enabled.


--

Harmit.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.7 (8 ratings)
Loading.
Harmit Singh Tue, 05/04/2010 - 05:59
User Badges:
  • Cisco Employee,

Hi,


As pointed out by Dennis, this sounds like a supervisory disconnect issue. This problem is seen only in FXO - Loop Start (FXOLS) lines.Please ensure that the correct CP Tone is applied on the voice-port. By default, it is US. If the router is in another country, then you would need to apply the correct CP Tone and shut / no shut the port(s). See if that helps. Also, go through the document provided earlier and try the commands suggested:


http://www.cisco.com/en/US/tech/tk652/tk653/technologies_tech_note09186a00800ae2d1.shtml


Else, there are a few ways to go about it:


++     Talk to Telco and get the line converted to FXO - Ground Start.

++     Get rid of FXO and get an ISDN PRI / CAS.

++     Create custom CP tone with the disconnect frequencies and cadence values either provide by telco or with the help of a PCM capture. If you need help with that, let me know and I can provide the steps to capture that output. This method may or may not fix the problem based on my exprience.


Please rate if helpful.


--

Harmit.

hiepnguyenho Tue, 05/04/2010 - 19:00
User Badges:

Dear Harmit,


I'm from Vietnam - the non-standard country . I have my custom cp-tone for the voice-port but it works not very well. It can disconnect the voice port only when 2 parties on hook. It can not solve the problem as I described in this topic.

So please tell me how to do a PCM capture and get the right frequency. Thank you very much.

Harmit Singh Wed, 05/05/2010 - 21:42
User Badges:
  • Cisco Employee,

Hi,


Apologies for the delay. Here is what you would need to do while recreating the issue:



Please configure the following:
conf t
voice hpi capture destination flash:pcm.dat
voice hpi capture buffer 5000000
exit


>>at this point you need to figure out exactly which voice port you are on and you issue the following command:


>>test voice port 0/0 pcm-dump caplog 7
--------> assuming the call will go out from / come in on the 1st FXO port. Its best you do it after hours to avoid the confusion. You can even issue "show voice call status" to verify which port is used 1st if you arent sure otherwise.


>>once you are done talking and capture enough of the static:
test voice port 0/0/0:15.1 pcm-dump disable
conf t
no voice hpi capture destination flash:pcm.dat
no voice hpi capture buffer 5000000


Its very important to remove the above commands else they keep writing to the flash and will eventually crash the router.


>>Now do a dir flash: and you can see a file "pcm.dat" that's the file I will need you to send me so I can analyze. Remember if you do this more than once, remember to always delete the pcm.dat file so we don't >>have calls overwriting each other and things getting mixed up.


--

Harmit.

hiepnguyenho Thu, 05/06/2010 - 05:48
User Badges:

Hi Harmit,


Thank you so much. Tomorow I will capture the PCM and send back the .dat file to you. Much appreciate!

hiepnguyenho Sat, 05/08/2010 - 21:37
User Badges:

Dear Harmit,


Sorry for late. Please find the attach for pcm.dat file and please help me to analyze it. Much appriciate!

Attachment: 
Harmit Singh Sun, 05/09/2010 - 00:49
User Badges:
  • Cisco Employee,

Hi,


I decoded and analyzed the PCM capture. Try the following and let me know if it helps:


++ Under Global Config Mode --


voice class custom-cptone FXO
dualtone disconnect
frequency 415 440
cadence 516 484


++ Under the FXO voice-port --


voice-port 0/1/0                                                -----> Assuming this is the FXO voice-port
supervisory disconnect dualtone mid-call
supervisory custom-cptone FXO



++     Do a shut / no shut after applying this config on the voice-port and this would need to be done on all FXO voice-ports as well.


Do let me know if it helps in resolving the issue.


--

Harmit.

trungfotech Tue, 05/11/2010 - 10:31
User Badges:

Dear Harmit,

I'm from VietNam, the non-standard country, So I have a problem same as Mr. Hiep. In my country, in each district or with each telephony service provide have a difference standard for telephony service, we are very hard for cover all of standard, no document, no any help from telephony service for this problem. So we must manual determine the disconnect tone in relative state, not exactly for all voice gateway for  all regional.

As Mr. Hiep discussed, I have a problem with frenquency and cadence in voice gateway configuration, the problem same as mr.Hiep, can you have me analyze my pcm.dat file in attach file, or can you provide for we a method or any help for us to analyze oneself for another case of this problem.


I have tried your parameter which you analized for Mr. Hiep, but it not work in my district.

Can you have we to resolve this case ?


Thank you very much,

Trung.

Attachment: 
hiepnguyenho Mon, 05/17/2010 - 00:09
User Badges:

Dear Harmit,


The problem is still occur.

When I dial from PSTN to the extension number. While the extension is ringging, I hang up. The extension is still ringging and can not end.

Is there any solution for this? Thank you very much.

Harmit Singh Mon, 05/17/2010 - 00:33
User Badges:
  • Cisco Employee,

Hi Hiep and Trung,


Sorry for the late reply, i've not been around lately. Is it possible for you to get the frequency and the ON and OFF cadence values from Telco?That would help us configure the custom CP Tone.


--

Harmit.

trungfotech Mon, 05/17/2010 - 01:21
User Badges:

Dear Harmit,

We have asked with Telco, but they reply very lately . Can you provide for us the method for manual detect frequency and cadence with pcm.dat file ? Because I will deploy voice gateway with FXO Card in 30 branch, the Frequency is not same in all branch, so I need to manual detect frenquency and cadence. The Telco is not ready for support us in this case.


Thank you very much,

Trung.

Harmit Singh Fri, 05/21/2010 - 01:44
User Badges:
  • Cisco Employee,

Hi Trung / Hiep,


Apologies for the delay in response, it's been a crazy week at work. The PCM.DAT file needs to be extracted using an internal tool we have in Cisco, which means that you would have to send it to someone in Cisco to extract the files from it and then analyze it using cool edit or adobe audition to get the frequencies and cadences. There are a DDTS that i found in the DSPWare of the IOS, not sure if you may be running into that after applying the custom cptone: CSCsu68373. Kindly ensure you are running a fix IOS version for that DDTS.



I would request you both to make the following change to the config and try again:


++ Under Global Config Mode --


voice class custom-cptone FXO
dualtone  disconnect
frequency 425
cadence 500 500


++ Under the  FXO voice-port --


voice-port  0/1/0                                                -----> Assuming  this is the FXO voice-port
supervisory disconnect dualtone mid-call
supervisory  custom-cptone FXO



++     Do a shut / no shut after applying this config  on the voice-port and this would need to be done on all FXO voice-ports  as well.


Let me know how it goes.


--

Harmit.

hiepnguyenho Sun, 05/23/2010 - 08:38
User Badges:

Dear Harmit,


Thanks for your help. I have tried a more simple way as described in Cisco forum. I captured  RTP payload by Wireshark of the inbound call from PSTN and cut the disconnect tone from this wav file.Then I used CoolEdit Pro to analyze frequency and cadence. The result is good, I think.

For this configuration, I add one more line and it works.


voice-port  0/1/0                                             
supervisory disconnect dualtone mid-call
supervisory  custom-cptone FXO

time-out wait-release 1 (without this, it takes the default value, 30 second to disconnect ringing)


Thanks again for your help.

Correct Answer
Harmit Singh Sun, 05/23/2010 - 21:32
User Badges:
  • Cisco Employee,

Hi Hiep,


Thank you for updating everyone on this post. I'm glad to hear that its working fine now. Incase anyone is wondering what the "timeouts wait-release" command does, it is used to configure the delay timeout before the system starts the process for releasing voice ports. From the command lookup tool, the usage guideline states: Use this command to limit the time a voice port can be held in a call  failure state. After the timeout, the release sequence is enabled.


--

Harmit.

hiepnguyenho Sun, 05/23/2010 - 23:55
User Badges:

Dear Harmit,


Thanks for your explaination. I marked your last post as "correct answer". I like UC and I hope we can meet each other in Cisco forum again

Harmit Singh Mon, 05/24/2010 - 00:06
User Badges:
  • Cisco Employee,

Hi Hiep,


It was my pleasure and we certainly will bump into eachother again on CSC


--

Harmit.

mrmhar1408 Mon, 06/14/2010 - 03:31
User Badges:

Hi

i have the PCM.dat file and i want ask how to decode it.


i have sigviewer and cool edit pro but can't get the frequency and cadnece information

Attachment: 
hiepnguyenho Mon, 06/14/2010 - 08:36
User Badges:

Hi, you should contact Cisco Technical Support team to decode the pcm.dat file. They have an internal tool to do this.

Otherwise, you have another simple way to do this.


Follow the guide in this link

http://ciscoflair.blogspot.com/2009/05/cisco-fxo-disconnect-issue.html


Summary:

1. You will have to capture the audio payload when disconnect the call. You can do this by using Wireshark (SPAN on switch) or directly record by your Windows recorder.

2. Use CoolEdit Pro to analyze the frequency spectrum and get the peak value. This is frequency parameter.

3. Use CoolEdit Pro and get ON/OFF cadence just by selecting some section on the graph.


I have tried this method many times and it works great. Plz feel free to ask me when you try to do this.


Hiep Nguyen,

mrmhar1408 Tue, 06/15/2010 - 02:22
User Badges:

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} Hiep Nguyen Ho you are great


now it's working fine and the below is my configuration:


-- My frequency is 425

-- My cadence is 500 500


-- the cptone meets the above information is cptone BE




voice class custom-cptone FXO
dualtone disconnect
  frequency 425
  cadence 500 500


voice-port 0/2/0
trunk-group STC
supervisory disconnect dualtone mid-call
supervisory custom-cptone FXO
cptone BE
timeouts wait-release 1
connection plar opx 8794
impedance complex2
caller-id enable
caller-id alerting line-reversal
caller-id alerting dsp-pre-allocate


Note: it only rings one time after i hung up


/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

hiepnguyenho Tue, 06/15/2010 - 02:38
User Badges:

Congratulation on your successful configuration! One more thing, when you use your custom cp-tone, you don't have to use cptone BE anymore. The purpose of cptone command  is configuring the template tone for country only.

paolo bevilacqua Thu, 01/26/2012 - 05:19
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

As the poster from VN pointed out above, there is no official tone definitions in his country.

That is common in other countries too.

1900connect Thu, 01/26/2012 - 05:37
User Badges:

Yes got that. What Iwas asking was for a full response for what was found for Vietnam.


It was unclear if Mrmhart was in Vietnam, or just reporting what his settings were.


It would be good to have a clear summary of results found for Vietnam and perhaps to update the database as noted in my previous post. Save a lot of people time.


Hiep?


Thanks for comments Paolo.

Nguyen Duc Trung Thu, 01/26/2012 - 07:53
User Badges:

Dear all,

As Paolo has say that, there is no official tone tone in my country, There is many vendor in my country, each vendor defined difference tone for telco, that is no database for disconect tone in VN. As discoussion in preivous post, we must manual calculate disconect tone for each line FXO. If you need a detail instruction for calculate disconnectone, I will translate to English and send ASAP via Email.


Thanks,

Trung.

1900connect Thu, 01/26/2012 - 08:26
User Badges:

Thx Trung that would be great.


Are you in TP HCM?


I would think that while the range may vary for HCM to Dalat to Hanoi, on average there must be some setting to start with to get you in the vicinity of being being correct. What do people use as intial setup values? Assume generic settings so those non Cisco people can also benefit from this discussion.

Nguyen Duc Trung Thu, 01/26/2012 - 09:09
User Badges:

Hi David,

I'm in Hanoi. As you said, there will be different ranges,   it depends on different device providers for Telco, each Telco uses  several different firms, not fixed for any provider. So the disconnect  tone parameter are also not fixed. With my experience, when deploying at  over 30 provinces and cities in my country, sometimes there will be  some repeated disconnect tones at some provinces. The best way is  measuring the tone for each point, it didn't take much time (about 5').  It will resolve more quickly than finding an average for entire region.  Please send your email address via my private message, I will translate  the documents and reply you soon


Thanks,

Trung.

paolo bevilacqua Thu, 01/26/2012 - 09:46
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

A solid, pragmatic engineering approach from Nguyen, that I've rated.

netcomvndng Sun, 05/06/2012 - 20:35
User Badges:

Dear all,

I'm facing this problem with CUCM + Cisco 2921/2911 gateway. So where can I apply those command to our system?

paolo bevilacqua Sun, 05/06/2012 - 22:24
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

Khoa Le Tat wrote:


Dear all,

I'm facing this problem with CUCM + Cisco 2921/2911 gateway. So where can I apply those command to our system?


Read document linked in first answer of this thread.

Actions

This Discussion