SV: SV: SV: [Asterisk-Users] Cisco and "protocol application invalid"

Bjørn Ove Kristiansen bok2 at online.no
Sat Aug 27 06:01:16 MST 2005


All right, installed Asterisk @ home and sat up DHCP as per described in the
handbook.

Defined a subnet with the Asterisk box at 192.168.1.1 as you can see in the
dhcpd.conf quoted below. Chmod'ed all files in the /tftpboot directory to
666, the directory itself to 777. However, still nothing but Protocol
Application invalid. Below is also a quote from the /var/log/messages file:

--- /var/log/messages ---
Aug 27 14:44:57 asterisk1 dhcpd: DHCPDISCOVER from 00:06:d7:e5:c3:03
(SEP0006D7E5C303) via eth0

Aug 27 14:44:58 asterisk1 dhcpd: DHCPOFFER on 192.168.1.110 to
00:06:d7:e5:c3:03 (SEP0006D7E5C303) via eth0

Aug 27 14:44:58 asterisk1 dhcpd: Unable to add forward map from
SEP0006D7E5C303.asterisk.local to 192.168.1.110: connection refused

Aug 27 14:44:58 asterisk1 dhcpd: DHCPREQUEST for 192.168.1.110 (192.168.1.1)
from 00:06:d7:e5:c3:03 (SEP0006D7E5C303) via eth0

Aug 27 14:44:58 asterisk1 dhcpd: DHCPACK on 192.168.1.110 to
00:06:d7:e5:c3:03 (SEP0006D7E5C303) via eth0
--- END ---

--- /etc/dhcpd.conf ---
ddns-update-style interim;
ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {

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

  range dynamic-bootp 192.168.1.100 192.168.1.110;
  default-lease-time 43200;
  max-lease-time 86400;
}
--- END ---

The option-tftp-boot-server suggested previously fails with this version of
dhcp as an invalid option.


I'll admit I'm lost here, but haven't given up. Thanks for the help so far!

Bjorn

-----Opprinnelig melding-----
Fra: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] På vegne av Tom Rymes
Sendt: 26. august 2005 22:14
Til: Asterisk Users Mailing List - Non-Commercial Discussion
Emne: Re: SV: SV: [Asterisk-Users] Cisco and "protocol application invalid"

Bjorn,

Save yourself the trouble with the console cable. Take a spare PC,  
install Asterisk at Home, setup  the included DHCP server, install the  
appropriate files in the /tftpboot directory, and plug the PC and the  
phone into the same switch.

Voila!

Tom

On Aug 26, 2005, at 12:48 PM, Bjørn Ove Kristiansen wrote:

> Thanks for the suggestions everyone!
>
> The thing is, when I run tcpdump, this phone never really requests  
> anything
> as far as I can see.
>
> The IP-address serving is not handled by the Asterisk box, which is  
> on its
> dedicated IP-address, but by a consumer type SMC Barricade 4-port  
> router.
> There's no option to define boot tftp on this device.
>
> I'm thinking of getting myself a console cable for the phone, and  
> see if I'm
> able to log in and set the variables using that. Don't know if  
> these cables
> can be purchased in stores or if they'll have to be hand made..
>
> My biggest problem is that I simply do not know which IP-address  
> the phone
> is searching for - if its searching for any IP address at all.
>
> Thanks again, have a great weekend.
>
> Bjorn
>
> -----Opprinnelig melding-----
> Fra: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] På vegne av Tom Rymes
> Sendt: 16. august 2005 16:47
> Til: Asterisk Users Mailing List - Non-Commercial Discussion
> Emne: Re: SV: [Asterisk-Users] Cisco and "protocol application  
> invalid"
>
> On Aug 15, 2005, at 11:28 AM, Bjørn Ove Kristiansen wrote:
>
>
>> Hello!
>>
>> The issue is simply that I don't know which IP address the phone
>> tries to
>> connect to. I am not very familiar with dhcpd (never put it up by
>> hand), so
>> I'm not sure how the below would help me, but from what I can tell,
>> I still
>> need information on which IP-address the phone is trying to find
>> its tftp
>> on, right?
>>
>> Bjorn
>>
>
> [snip]
>
>
>> Michiel van Baak wrote:
>>
>>
>>
>>> I have put this in my dhcpd.conf to make sure my cisco
>>> phones connect to my TFTP server:
>>> server-name "192.168.2.1";
>>>
>>>
>>>
>> I'd be surprised if that worked... the server name is for.. um.. the
>> name of the server :)
>>
>> Try:
>>
>> option tftp-boot-server code 150 = ip-address;
>> option tftp-boot-server 192.168.44.3;
>>
>
> [snip]
>
>
> Bjorn,
>
> The phone will use whatever TFTP server your DHCP server tells it to
> use. That is what the above line "option tftp-boot-server" is
> supposed to do, it tells your DHCP server what address to give your
> phone. If your DHCP server does not give the phone an address, and
> you have not specified one manually through the phone's settings
> interface, then it will  (in my experience) default to the same
> address as your DHCP server.
>
> What are you using for a DHCP server?
>
> Can you enter the settings interface of the phone if you leave the
> ethernet disconnected? (If so, manually specify the TFTP server
> address.)
>
> Tom_______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date:  
> 15.08.2005
>
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.15/82 - Release Date:  
> 25.08.2005
>
>
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
>
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>

_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 26.08.2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 26.08.2005
 




More information about the asterisk-users mailing list