after a call is made from IPphone to mobile(for eg), even after disconnecting the call from IPphone its not getting disconnected on mobile...
inshort the fxo port is still active..the voice port remains off-hook..so gotta manually shut and open voice port from CLI everytime....
tried changing the cptone configuration(tried all the cisco provided configs(erricsson,alcatel etc))
As you have realised, this is the well known problem of supervisory disconnect, where the telco expects users to disconnect the call. They signal the end of the call by playing a disconnect tone to the party that is still off hook.
We can detect this tone and drop the call from the voice port if we know the frequency and cadence of the tones.
Here is a procedure you can use to determine these values (from an earlier posting of mine on Netpro)
Setting the cptone to KR will use the default settings for Korea, but we find that in many countries they do not use consistent tones across the entire nation, so even through cptone KR might work in one location, it may fail in another site. The best thing to do here is to get an ethereal/wireshark log of a call that is disconnected.
If you use G711 as the codec, we can easily save the audio payload out of ethereal as an AU file and can analyse the frequencies and the cadence (duration) of the tone. You should be able to plug a PC into the phone's PC port and capture the voice traffic.
All you need to do is to make a test call to the phone, then hang up from the PSTN side and listen for the disconnect tones to be played from the PSTN. Once you hear them, start wireshark and record the packet stream. We only need about 10 seconds or so.
We do this all the time to create custom tones for supervisory disconnect.
Here is an example -
voice class custom-cptone Korea_customtone
frequency 480 620
cadence 300 200
We set up a custom disconnect class called 'Korea_customtone'. This will look for two tones of 480 and 620 hz, with a repeating on time of 300msec and an off time of 200msec
supervisory disconnect dualtone mid-call
supervisory custom-cptone Korea_customtone
timeeouts call-disconnect 3
timeouts wait-release 3
To analyse the audio, you save the payload from wireshark as an AU file. (G711ulaw, 64Kbps, 8 bit, 8khz)
Search on the internet for an audio application called 'cooledit96'(which is now Adobe Audition)
Load the audio file into cooledit application.
Play back the audio to identify the disconnect tones
Use the cursors to highlight the start of the tone period, and then measure the on time duration. Do the same for the off time. This gives the cadence of the tones.
Move the cursor over the tone , then select Analyse-->Frequency Analysis
This will open a new window that shows a frequency domain view, and the two component tones are shown a individual peaks. Move the cursor over each tone peak and carefully read the displayed frequency (round it to the closest 5hz)
These values - cadence and frequencies are then used in the custom tone class.