[Asterisk-Users] configuration to Grandstream via tftp

Jens Davidsen jensdavidsen at jellingnet.dk
Tue Jan 20 08:19:44 MST 2004


> Replying to myself. The GS phones use TFTP extensions (RFC 2347) to
> provide additional info in their TFTP requests. The server has to be
> aware of these extensions, if it wants to serve different files.
>
> Here is a small dump for a request from an HandyTone (key/value) :
>
> grandstream_MODEL    HT-100
> grandstream_NAT    1
> grandstream_ID    000b8200c14a
> grandstream_REV_BOOT    001000000013
> grandstream_REV_PHONE    001000004026
> grandstream_REV_VOC    001000000002
> grandstream_REV_HTML    001000000020
> grandstream_REV_VP    001000000000
>
> We can easily see the MAC address, the model and the current firmware
> versions (1.4.26).
>
> With these informations, the TFTP server could :
> - serve the right cfg.txt file
> - serve the right firmware files (or actually, serving nothing if the
>   server considers the phone to be up to date).
>
> I'll try to see if my basic Java knowledge enables me to make the
> NAT-aware TFTP server fwtftpd understand these extensions.
>

Hi Nicolas,

I've also tried to hack a little with the fwtftpd today to serve the cfg.txt
to the phones (and also updates to software). I cannot get it to accept the
cfg.txt i give it though - have anyone successfully served that file to
their GS phone? or made it update the firmware with fwtftpd?
I made a updated fwftpd.java file - anyone is welcome to test it here:
http://musimi.dk/fwtftpd.java
it uses the mac address of the GS phone and then sends the /cfg/{MAC}.txt
file when the phone requests the cfg.txt
Please help with getting the phone to accept the config file? - should i
send something back as OptionsACK to show the GS phone that it is ok to
update?

Cheers,
Jens Davidsen
Musimi.dk


> -- 
> Nicolas Bougues
> Axialys Interactive




More information about the asterisk-users mailing list