Search This Blog

Sunday, May 17, 2009

Setting Wallpaper in Cisco IP Phones

Setting Wallpaper in Cisco IP Phones



Setting Wallpaper(Desktop Background)


issue the debug command ' debug tftp events '

Ip phone -> open wallpaper option from user preferences (setting->user preferences->background images)
In the tftp debug output a file named List.xml is being requested.

May 17 14:19:14.722: TFTP: Looking for Desktops/320x212x16/List.xml

this xml file contains the list of images(file names or image path in xml formal)
the path varies depends on ip phone (Desktops/320x212x16/ or Desktops/320x212x12/)
we issued debug command to find this path.
search the callmanager and find the file location and create a tftp binding
copy the request from the debug output above.

tftp-server flash:/Desktops/320x212x16/List.xml alias Desktops/320x212x16/List.xml

When phone send a tftp request ' Desktops/320x212x16/List.xml ' Callmanager send the file located at flash:/Desktops/320x212x16/List.xml to ip phone.

alias is a alternate name for the same file location
to add new image file upload new image file to flash using tftp. you can create new directory if needed(recomnded) .

Create new wallpaper
when creating new wallpaper it should meet some requirmnts
we need two images(wallapaper and thumbnail pic)
File format: PNG
Image pixel: 320x212 (actual backround image)
Thumbnail image size: 80x53 (image shown in the wallpaper list when user perfrence->background images is selected)

copy the List.xml file to PC using tftp server.open file in editor (say notepad)

use these commands


TFTP:Desktops/cisco/thumbnailimage.png" URL="TFTP:Desktops/cisco/backgroundimage.png"/>

< image="">
t-cisco.png" URL="cisco.png"/>

in callamanger express configure:

tftp-server flash:/Desktops/cisco/thumbnailimage.png alias Desktops/cisco/thumbnailimage.png
tftp-server flash:/Desktops/320x212x12/backgroundimage.png alias Desktops/cisco/backgroundimage.png
tftp-server flash:/Desktops/cisco/t-cisco.png alias t-cisco.png

tftp-server flash:/Desktops/cisco/cisco.png alias cisco.png

note:
to create new folder in router issue 'mkdir' not from config mode


Green color is the request phone sends specified in the list file
when user first open the background menu in the phone
a full list of thumbnail images is downloaded by the phone
using the thumbnail filenames defined in the xml file

suppose user select cisco.png image from wallapaper menu
phone sends request cisco.png when callmanager receives the request cisco.png
it translate the request to flash:/Desktops/cisco/cisco.png location of the image file is not important. we can keep file wherever we want.only thing is specify the location using tftp alias in callamanger as shown above
any words can be used as a alias
use the same word in List.xml file for the image file
the file is send as a reply

after editing copy the new List.xml over the old one in the callamanger


troubleshooting tips: ~~~~~~~~~~~~~~~~

~Observe the debug output during the whole process
~request and file reply process
~basic idea is if the request for a file send by the phone is not der in the location it requested
use alias command to redirect request to the correct location.we decide where to go...

ip phone is dummy.no brain.no logic.

only thing it knows is look xml file request
only thing it knows is look xml file request
only thing it knows is look xml file request
only thing it knows is look xml file request
only thing it knows is look xml file request
only thing it knows is look xml file request
only thing it knows is look xml file request
only thing it knows is look xml file request

:)



Cisco FXO Disconnect issue

Cisco FXO Disconnect issue

Prob:
~~~~
The most common symptoms of this problem are phones that continue to ring when the caller has cleared, or FXO ports that remain busy after the previous call should have been cleared.

Refer Cisco document (Understanding FXO Disconnect Problem)
Refer external source (Understanding FXO Disconnect Problem)


Solution :
~~~~~~~
FXO port dont know the diconnect frequency used in pstn line. we solve this issue by capturing the parameters( frequency and cadence)

create a custom cptone using the command ' voice class custom-cptone '
using this command we can customize disconnect tone,busy tone,pstn line parameter....

how to capture PSTN parameters for FXO disconnect ???


Method 1:

~~~~~~~

Goto the following webpage (World PSTN Tone Database)

webpage contains international call progress tones

search your country and select tone

then

voice class custom-cptone
dualtone disconnect
frequency
cadence ...

On your FXO port, you will want a configuration similar to:

voice-port 0/0/0
supervisory custom-cptone
cptone
supervisory disconnect dualtone mid-call
connection plar


how to capture PSTN parameters for FXO disconnect ???

Method 2:

~~~~~~~
method is documented in the following link (capture PSTN parameters for FXO disconnet)

for this method

we need two software

1) Wireshark (download)

wireshark is a packet sniffer , here we use wireshark for capturing packet and using these packet we create a audio file and extract disconnect frequency and cadence value.

2) Cool Edit Pro (download)

used for measuring disconnect frequency and cadence value

Getting the packet capture:
~~~~~~~~~~~~~~~~~~~~~

you can get it from the back of your phone. In CUCM, on the phone page, enable Span to PC Port and reset. In CME, use this command under telephony-service and reset
"service phone spanToPCPort 0". On the phone you can confirm: Model Information -> Ethernet Information -> Span to PC Port should be "Yes".

If above method is not working use monitor session command




Getting the packet capture:
Start your packet capture. Place call from FXO to IP phone. Hang up on the FXO and listen to the disconnect tone for 10 seconds. Stop the packet capture.

wireshark captured the voice packet which contains the disconnect sound(frequency)

we need to convert these packets to audio file format
follow the instruction given below:

If the blue voice packets show up as UDP instead of RTP, you'll need to decode them. Right click on one of the UDP packets(blue packets ,depends on wireshark config)
select "Decode As". In the list, you should choose RTP.

Then go to Statistics->RTP->Show all Streams. You should click on the stream from your gateway IP address to your IP phone. Click "Analyze Stream".

This will show you the stream analysis from the gateway to the IP phone. At the bottom you should be able to click "Save Payload". You need to choose the forward direction, and .au as the format. Then choose the filename.

now we have the audio file in .au format

{ Optional method :
You may use your PC (START => Program Files =>Accessories => Multi Media => Recorder) with Headset or Microphone to record the disconnect tone via a telephone set from PSTN/PBX and save to a voice file. }

Determining your frequencies and cadence:



Open the audio file in Cool Edit. You should be able to listen to the stream and confirm it's what you heard from the gateway.



Skip to the part where the disconnect tone is. Highlight the part that is the tone.


Go to Analyze-> Frequency Analysis. This will give you the Time Domain of the audio you have selected.



For DTMF and disconnect tones, you should see 2 distinct spikes in the frequency domain. 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.

To determine the cadence (on/off timing), you need to zoom in on the tones. Select only the 'on' part of the tone - the part you can hear. Go to View->Display Time Format->Decimal.


In the lower right hand corner, it should give you the "Length 0:00.xxx". This value is in milliseconds and is what you'll use in your custom disconnect class. Record this - this is your ON cadence.

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 time.

Continue to do this for each ON/OFF until there is a pattern.


You will then enter this into your router:

voice class custom-cptone
dualtone disconnect
frequency
cadence ...

Note: You want to use 3 or more values here for best results.

On your FXO port, you will want a configuration similar to:

voice-port 0/0/0
supervisory custom-cptone
cptone
supervisory disconnect dualtone mid-call
connection plar


###############################################################
#############################The EnD############################
###############################################################

Cisco FXO Caller id receiving problem in PSTN connection

Cisco FXO Caller id receiving problem in PSTN connection


Error message:
(generated by ' debug vpm signal ' )
~~~~~~~~~~~~~

err msg 1) get_fxo_caller_id:Caller ID receive failed.

err msg 2) htsp_ephone_start_caller_id_tx calling num= calling name = called num=200 orig called num=


Check caller-id support in FXO (click here)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check caller-id feature support in FXO Card using above link


Configure advanced options (click here)
~~~~~~~~~~~~~~~~~~~~~~~~~~
Above document shows how to configure Caller ID
advanced options(
dsp-pre-alloc,line-reversal)


Solution 1:
~~~~~~~~~~~
voice-port 0/0/0
caller-id enable
caller-id alerting ring 1 (default)

or

voice-port 0/0/0
caller-id enable
caller-id alerting ring 2

Solution 2
~~~~~~~~~~
upgrade ios to higer version (recommended method)


when the error is fixed debug output should be:

get_fxo_caller_id:Caller ID received. Message type=4 length=19 checksum
=9D
May 17 09:28:42.327: [0/1/1] Caller ID String 04 10 30 35 31 37 31 32 32 39 33 36 37 39 37 38 36 36
9D
May 17 09:28:42.327: [0/1/1] get_fxo_caller_id calling num=(here calling number will appear) calling name= calling time=05/17
12:29


###############################################################
#############################The EnD############################
###############################################################