Re: [Asterisk-Users] configuration to Grandstream via tftp
> 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_MODELHT-100 > grandstream_NAT1 > grandstream_ID000b8200c14a > grandstream_REV_BOOT00100013 > grandstream_REV_PHONE00104026 > grandstream_REV_VOC0012 > grandstream_REV_HTML00100020 > grandstream_REV_VP0010 > > 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 ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Grandstream cfg.txt hacking?
Hi list, I'm trying to figure out the format of the binary data in cfg.txt - so i'm looking for someone with a GS phone/adapter from sipphone.com (bought there so it downloads the config there also). I suppose they use GAPS there and also download the cfg.txt configuration there? Please send tcpdump data of the tftp session - or other udp dump data. I have a tftpd server hacked and ready to serve the configs if we can just get the format of the file. Cheers, Jens Davidsen ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] New Firmware for Grandstream Phones - Supports CFG by MAC address
Hi list, I have worked a little on debugging the Grandstream cfg.txt file and here is what i found out so far: The binary header is like this: 00 00 01 00 (always the same start) 52 d2 (checksum of 2 bytes) 00 0b 82 00 XX XX (phones mac address in hex) 0d 0a 0d 0a (two carriage return and new lines) after this header the config follows in clear text - looks url encoded like : P2=admin&P8=0... etc. (find the variables in the webconfig of the phone) the clear text is terminated with a 00 byte If anyone figures out how to calculate the 2 byte checksum then please tell me ;-) (this information is from older firmwares - didnt check if they changed binary header in the newer versions...) Cheers, Jens Davidsen - Original Message - From: "Matthew B Marlowe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 09, 2004 5:23 PM Subject: [Asterisk-Users] New Firmware for Grandstream Phones - Supports CFG by MAC address > The newest firmware from grandstream supports configuration by mac address. > > Simply upload a file cfg.txt > > Does anyone know the format of a cfg.txt? â > > Ë+RÇf)+Ë+RÇXÇ+r XÇ+r+wz P j ØË+a XbÇ+r+-w -z ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] New Firmware for Grandstream Phones -Supports CFG by MAC address
> The way I found out was I installed the new firmware and watched my TFTP server :) > Maybe they are on the way to support APS configuration as sipphone.com have made on www.plugndial.com (hope so) Jens ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users