Trixbox + Cisco IP Phone 7940 + Server

Ricky Smith
Posts: 242
Member Since:
2007-06-05

Alright so I've tried searching and tried everything I could.

I have a IBM xServer 335 with Dual NICs running the newest version of TrixBox. So the phone was having a application load error and doesn't allow you to get into any of the menus. I finally got the phone to pull a IP via setting up a DHCP server on the IBM box. However then it would go and try to connect to the TFTP and just timeout. Even though DHCP was set with the option to give the phone the TFTP info.

Does anyone have any ideas?



wtodd
Posts: 339
Member Since:
2007-04-29
in thoery hard part behind you

It sounds like you have that set up correctly.. You should have tftp directory in your root menu. Inside - you should have the appropriate files for your phone.

SIPDEFAULT.CNF, SIP{macaddress}.cnf, your load files, dialplan, syncinfo, etc.

Once those files are there and configured correctly, you should have no problem loading your 7940.

The DHCP server (in the dashboard gui) will assign the necessary lease to the phones once set up correctly and the TFTP server will shoot the load info over and youre done.

Im presuming your phone already has a sipload. There are many variables with cisco, although once done correctly, it is easy from then on.

Hope this helps.



Ricky Smith
Posts: 242
Member Since:
2007-06-05
Is there a way to setup the

Is there a way to setup the DHCP to be on only the 2nd Nic? I want to setup the 1st one to connect to the network, then the phone to be on the 2nd NIC receiving a IP from the server, at least for the initial setup.



anchor85
Posts: 678
Member Since:
2006-06-07
trixbox / routing / dhcp

Have a look at this thread.
http://www.trixbox.org/forums/trixbox-forums/help/tftp-server-dhc...
You need to make sure that you have a route via your second nic (probably eth1) to your local subnet. You need to configure your dhcp server to offer a range of ip addresses in your local subnet address space. If your routing is correct and your phones are on the local network you should then be OK.

I wrote a Cisco 79xx how to http://www.cat24.net/Cisco_Sip_Phones.html

The dhcpd.conf I used is

cat /etc/dhcpd.conf

ddns-update-style interim;
ignore client-updates;

option voip-tftp-servers code 150 = ip-address;
option voip-tftp-servers 192.168.0.130;

subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option nis-domain "";
option domain-name "";
option domain-name-servers 192.168.0.1, 217.x.x.x;
option ntp-servers 192.168.0.130;
option tftp-server-name "192.168.0.130";
range dynamic-bootp 192.168.0.150 192.168.0.175;
default-lease-time 3600;
max-lease-time 7200;
}

--

John
Cat24.net



Ricky Smith
Posts: 242
Member Since:
2007-06-05
Hey I've gotten the box to

Hey I've gotten the box to server a DHCP and the phone connects to the TFTP However the phone says TFTP file not found.

In TFTP I Have

sftp://192.168.1.100//tftpboot/797x_template.cnf.xml
sftp://192.168.1.100//tftpboot/cisco_util
sftp://192.168.1.100//tftpboot/Desktops
sftp://192.168.1.100//tftpboot/dialplan.xml
sftp://192.168.1.100//tftpboot/merlin2.pcm
sftp://192.168.1.100//tftpboot/OS79XX.TXT
sftp://192.168.1.100//tftpboot/P0S3-08-2-00.loads
sftp://192.168.1.100//tftpboot/P0S3-08-2-00.sb2
sftp://192.168.1.100//tftpboot/P003-08-2-00.bin
sftp://192.168.1.100//tftpboot/P003-08-2-00.sbn
sftp://192.168.1.100//tftpboot/polycom
sftp://192.168.1.100//tftpboot/RINGLIST.DAT
sftp://192.168.1.100//tftpboot/SIP0011924BCEB7.cnf
sftp://192.168.1.100//tftpboot/snom.cnf
sftp://192.168.1.100//tftpboot/syncinfo.xml

The TFTP Log Lists This

Jan 29 20:33:46 trixbox1.localdomain atftpd[5698.-1208943728]: Serving CTLSEP0011924BCEB7.tlv to 192.168.1.253:50942
Jan 29 20:33:46 trixbox1.localdomain atftpd[5698.-1208943728]: Serving SEP0011924BCEB7.cnf.xml to 192.168.1.253:50943
Jan 29 20:33:46 trixbox1.localdomain atftpd[5698.-1208943728]: Serving SIP0011924BCEB7.cnf to 192.168.1.253:50944
Jan 29 20:33:46 trixbox1.localdomain atftpd[5698.-1208943728]: Serving SIPDefault.cnf to 192.168.1.253:50945
Jan 29 20:33:46 trixbox1.localdomain atftpd[5698.-1208943728]: Serving MGCDefault.cnf to 192.168.1.253:50946

So I noticed there's no SIPDefault.cnf and MGCDefault.cnf so I don't know where it's serving it from.



Ricky Smith
Posts: 242
Member Since:
2007-06-05
Alright I fixed the

Alright I fixed the SIPDefault by running the ciscosetup however now when the phone boots i get Protocol Application Invalid and it doesnt show anything in the TFTP log I changed the File name in SIPDefault to the correct one too



Ricky Smith
Posts: 242
Member Since:
2007-06-05
Here's my DHCP

Here's my DHCP Config

ddns-update-style interim;
ignore client-updates;

option voip-tftp-servers code 150 = ip-address;
option voip-tftp-servers 192.168.1.100;

subnet 192.168.1.0 netmask 255.255.255.0 {

option routers 192.168.1.100;
option subnet-mask 255.255.255.0;
option nis-domain "asterisk.local";
option domain-name "asterisk.local";
option domain-name-servers 192.168.1.100;
option time-offset -18000; # Eastern Standard Time
option ntp-servers 192.168.1.100;
option tftp-server-name "192.168.1.100";

range dynamic-bootp 192.168.1.128 192.168.1.254;
default-lease-time 43200;
max-lease-time 86400;
}



Ricky Smith
Posts: 242
Member Since:
2007-06-05
Alright resolved that the

Alright so I got it up and working and everything. Now, the question is, is it possible to set it up to do outbound or inbound calls, either or.

I know with a setup where you have access to the router you can and firewall. However I'm doing this from my Dorm Room at College to learn more about it.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.