Additional Features - Cisco Phones

Hi Everyone,

I am sure many had implemented asterisk with cisco phones. I have cisco 7960 & 7940 phones with asterisk server working setup. I am looking for following additional features to add to existing system. I am using cisco 8.2 firmware. (i had problems with 8.3 - MWI was not working).

  1. How to prepare corporate directory listing for all cisco phones
  2. How to get TIME displayed on Left TOP cornor
  3. How to reboot phone remotely

I read forum for some XML scripting, which i am not aware of editing & getting it worked. So, if anyone can share the working configuraiton setup, that will be a great help.

thanks
sekhar.

I believe for the corporate phones:

lookup xml and cisco on google. You can setup a webpage it can pull a directory from.

This is a good place to start:
voip-info.org/wiki/view/Aste … L+Services

for time: time_format_24hr: 1 ; Enable(1 - 24Hr Default)/Disable(0 - 12Hr) in the Sipdefault.cnf

For rebooting a phone remotely:
a. Put all your phones on a POE switch that is IP addressable and rebootable, or
b. you need to enable Telnet on the phones and set telnet_level =2 (Privileged) - to allow reset function.

To get the time to display, put the following line (with a proper time server IP address) in your SIPDefault.cnf file:

sntp_server: x.x.x.x

If you know the IP address of the phone, you can telnet to it and issue a reload command.

Hi Bradrose & BruceAtMaxup

Thanks for your response. Below is my current configuration. I am still not getting time displayed on the screen. Also, not sure how do i get the directory listing.

SIPDefault.cnf

#SIP default configuration file
#Image Version
image_version:P0S3-08-2-00 ;
#SIP Proxy Details
proxy1_address: 10.10.10.100;
proxy1_port: 5060
proxy_register: 1;
#Voice Message Access
messages_uri: “<6128>”
#Time Server
time_format_24hr: 1
sntp_server: "10.10.10.216"
sntp_mode: anycast ; unicast, multicast, anycast, or directedbroadcast (default)

i created CiscoIPPhoneDirectory.xml file with following code.

Name Of Directory
Prompt text.

Sekhar
6190


Chiru
6191

I dont see the directory listing is showing the new entries. can you please give me more detailed help.

I am unable to telnet to my phone. I am checking on internet for options to enable that.

thanks a lot for you response,
sekhar.

Is 10.10.10.216 a valid time server? Try 132.163.4.101.

Hi,

Yes 10.10.10.216 is valid NTP (internal) server. It gets time from NIST. All my servers & call manager devices gets time from this box.

Please suggest.

thanks
sekhar.

In your example you have the address quoted. Get rid of the quotes.

sntp_server: "10.10.10.216" ; incorrect
sntp_server: 10.10.10.216 ; correct

Hi Bruce,

I changed SIPDefault.cnf to following. Still i dont see TIME on phone.

#SIP default configuration file

#Image Version
image_version:P0S3-08-2-00 ;
telnet_level: 2
#SIP Proxy Details
proxy1_address: 10.10.10.100;
proxy1_port: 5060
proxy_register: 1;

#Voice Message Access
messages_uri: "<6128>"
directory_url : “http://10.10.10.49/CiscoIPPhoneDirectory.xml

#Time Server
time_format_24hr: 1
sntp_server: 132.163.4.101
#sntp_mode: anycast ; unicast, multicast, anycast, or directedbroadcast (default)

I dont even see any traffic towards NTP IP address 132.163.4.101 on my firewall log. It looks like the phone not even looking at the sntp_server command. I am running firmware 8.2, do you think that could be the reason.

Also, i was able to TELNET to my phone and i see external direcotry listing line added to the phone when i hit directories button. But, i am HTTP Error, i just copied the code i gave yesterday to a .xml file. please suggest if i need to add anything else to that. If i am not asking too much, can you please share your .xml files & SIPDefault.cnf file ?

Thanks a lot for your help.

Sekhar.

I am running firmware 7.3 on our phones so the only .xml files we use are for dialplan and ringlist. Here’s my SIPDefault.cnf.

#Image Version
image_version:  P0S3-07-3-00

#Proxy server address
proxy1_address: x.x.x.x ;

# Subdirectory config file location
 tftp_cfg_dir: ./cisco/

# Codec for media stream (g711ulaw (default), g711alaw, g729)
preferred_codec: g729a

# TOS bits in media stream [0-5] (Default - 5)
tos_media: 5

# Out of band DTMF Settings (none-disable, avt-avt enable (default), avt_always - always avt )
dtmf_outofband: avt 

# Speed Dial Key for Message Key
messages_uri: 9999
# DTMF dB Level Settings (1-6dB down, 2-3db down, 3-nominal (default), 4-3db up, 5-6dB up)
dtmf_db_level: 3

# SIP Timers
timer_t1: 500 			; Default 500 msec
timer_t2: 4000 			; Default 4 sec
sip_retx: 11			; Default 11
sip_invite_retx: 3 		; Default 7
timer_invite_expires: 180 	; Default 180 sec

# Time Server (There are multiple values and configurations refer to Admin Guide for Specifics)
sntp_server: 132.163.4.101	  ; SNTP Server IP Address
sntp_mode: directedbroadcast    ; unicast, multicast, anycast, or directedbroadcast (default)
time_zone: CST                  ; Time Zone Phone is in
dst_offset: 1                   ; Offset from Phone's time when DST is in effect
dst_start_month: April          ; Month in which DST starts
dst_start_day: ""               ; Day of month in which DST starts
dst_start_day_of_week: Sun      ; Day of week in which DST starts
dst_start_week_of_month: 1      ; Week of month in which DST starts
dst_start_time: 02              ; Time of day in which DST starts
dst_stop_month: Oct             ; Month in which DST stops
dst_stop_day: ""                ; Day of month in which DST stops
dst_stop_day_of_week: Sunday    ; Day of week in which DST stops
dst_stop_week_of_month: 8       ; Week of month in which DST stops 8=last week of month
dst_stop_time: 2                ; Time of day in which DST stops
dst_auto_adjust: 1              ; Enable(1-Default)/Disable(0) DST automatic adjustment

# Allow for the bridge on a 3way call to join remaining parties upon hangup
cnf_join_enable : 1		; 0-Disabled, 1-Enabled (default)

# NAT/Firewall Traversal
# nat_enable: 0                   ; 0-Disabled (default), 1-Enabled
nat_address: ""		      ; WAN IP address of NAT box (dotted IP or DNS A record only)
voip_control_port: 5060      	; UDP port used for SIP messages (default - 5060)
start_media_port: 16384 	; Start RTP range for media (default - 16384)
end_media_port: 32766   	; End RTP range for media (default - 32766)
nat_received_processing: 0	; 0-Disabled (default), 1-Enabled

Hi Bruce,
Thanks for the reply. Is there a special reason for running on 7.3 firmware? I will change some of my settings with your configuration. I will update you tomorrow.

may i know the reason for dialplan.xml & ringtone? do i really need those?

Thanks
sekhar.

The dialplan.xml file is used to define dial patterns so the phone knows how many digits to accept until it sends the dialed string out. Here’s our dialplan.xml; looking at the 5th entry as an example, when you dial 1+10 digits, the phone will immediately send the call out. Otherwise, you’d hae to wait or press # to send the call out.


<DIALTEMPLATE>
    <TEMPLATE MATCH="011*"              Timeout="5" User="Phone"/> <!-- internatonal-->
    <TEMPLATE MATCH="...."       Timeout="3" User="Phone"/> <!-- 4 digits intra-office --> 
    <TEMPLATE MATCH="..."       Timeout="6" User="Phone"/> <!-- 3 digits intra-office --> 
    <TEMPLATE MATCH=".11"          Timeout="0" User="Phone"/> <!-- Service numbers -->
    T<TEMPLATE MATCH="1.........."  Timeout="0" User="Phone"/> <!-- Long Distance -->
    <TEMPLATE MATCH="*"              Timeout="2"/>             <!-- Anything else -->
    <TEMPLATE MATCH="1010071*"              Timeout="2"/>             <!-- bypass-->
    <TEMPLATE MATCH=".........."       Timeout="0" User="Phone"/> <!-- 10 digits --> 
</DIALTEMPLATE>

The ringlist.xml loads a series of ringtones into the phone so you can hae different rings. This file is just a list, you’ll have to have the actual audio file on your tftp server. You can look up the instructions for creating the ing files on Cisco’s site.

<CiscoIPPhoneRingList>
	<Ring>
		<DisplayName>Analog Synth 1</DisplayName>
		<FileName>Analog1.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Analog Synth 2</DisplayName>
		<FileName>Analog2.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Are You There 1</DisplayName>
		<FileName>AreYouThere.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Are You There 2</DisplayName>
		<FileName>AreYouThereF.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Bass</DisplayName>
		<FileName>Bass.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Chime</DisplayName>
		<FileName>Chime.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Classic Ring 1</DisplayName>
		<FileName>Classic1.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Classic Ring 2</DisplayName>
		<FileName>Classic2.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Clock Shop</DisplayName>
		<FileName>ClockShop.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Drums 1</DisplayName>
		<FileName>Drums1.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Drums 2</DisplayName>
		<FileName>Drums2.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Film Score</DisplayName>
		<FileName>FilmScore.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Harp Synth</DisplayName>
		<FileName>HarpSynth.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Jamaica</DisplayName>
		<FileName>Jamaica.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Koto Effect</DisplayName>
		<FileName>KotoEffect.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Music Box</DisplayName>
		<FileName>MusicBox.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Piano 1</DisplayName>
		<FileName>Piano1.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Piano 2</DisplayName>
		<FileName>Piano2.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Pop</DisplayName>
		<FileName>Pop.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Pulse 1</DisplayName>
		<FileName>Pulse1.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Saxophone 1</DisplayName>
		<FileName>Sax1.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Saxophone 2</DisplayName>
		<FileName>Sax2.raw</FileName>
	</Ring>
	<Ring>
		<DisplayName>Vibe</DisplayName>
		<FileName>Vibe.raw</FileName>
	</Ring>
</CiscoIPPhoneRingList>

Hi Bruce,

Thanks a lot. I have to try these settings before i come with more questions :smile:

Thanks a lot.
Sekhar.

Hi Bruce,

Thanks a lot. I was able to get the directory listing working. it was my WWW issue on windows box.

Only issue i see now is the TIME stamp on th phone. it is not working with either internal or external time server. the ntp request is not even crossing my firewall. Please suggest.

How do i run NTP on Asterisk box itself? How to i enable WWW services too?

Thanks
Sekhar.

[quote=“sekhar”]Hi Bruce,

Thanks a lot. I was able to get the directory listing working. it was my WWW issue on windows box.

Only issue i see now is the TIME stamp on th phone. it is not working with either internal or external time server. the ntp request is not even crossing my firewall. Please suggest.

How do i run NTP on Asterisk box itself? How to i enable WWW services too?

Thanks
Sekhar.[/quote]

I don’t think it matters where you run the NTP server - obviously your phone is not trying to contact it. I don’t have any further answers as the stuff I gave you works on my network with my phones. as for running a web server on Linux, I’d go over to http://www.apache.org and read up on that product.