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
RE: [Asterisk-Users] configuration to Grandstream via tftp
Hans, Attached is the config file I send to my Grandstream. Change IP address Phone ID to suite. Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Hans-Henrik Andresen Sent: 19 January 2004 08:43 To: [EMAIL PROTECTED] Subject: [Asterisk-Users] configuration to Grandstream via tftp Hi, Anyone know how to set up tftp server for grandstream. I gues it should be somethink like tftpserver-dir mac-address firmware.bin config.txt Is this correct ? And how should the config-file look like. ? I had search sipphone.com but did'nt find anything. /HHA _ Rethink your business approach for the new year with the helpful tips here. http://special.msn.com/bcentral/prep04.armx ___ 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 # SIP Configuration File, Plug'n'Dial APS v1.1 mac=000b820c2371 sipserver=proxy01.sipphone.com sipserver_port=5060 outboundproxy=null outboundproxy_port=null userid=8003 authenticateid=8003 codec1=PCMU codec2=PCMA codec3=G723 codec4=G729 codec5=null codec6=null silence_supporession=no voice_frames_per_tx=2 ipqos=48 vlantag=0 registration_expiration=10 local_sip_port=5060 local_rtp_port=5004 use_random_rtp_port=no stun=stun01.sipphone.com stun_port=3478 tftp_server=192.168.x.x tftp_server_port=69 send_dtmf=in-audio dtmf_payload_type=101 ntp_server=ntp01.sipphone.com time_zone=GMT-0
Re: [Asterisk-Users] configuration to Grandstream via tftp
On Mon, Jan 19, 2004 at 09:20:33AM -, David J Carter wrote: Hans, Attached is the config file I send to my Grandstream. Change IP address Phone ID to suite. That's great. Is it documented somewhere ? And how do you manage tens or hundreds of phones ? Are they all in the same cfg.txt file ? -- 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
RE: [Asterisk-Users] configuration to Grandstream via tftp
Thanks. How is the directory structure ? or do you add all you phone to the one file cfg.txt and have it in the root of your tftp-dir ? /HHA Attached is the config file I send to my Grandstream. Change IP address Phone ID to suite. _ Find high-speed net deals comparison-shop your local providers here. https://broadband.msn.com ___ 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] configuration to Grandstream via tftp
This is the URL I got the config file from, http://www.plugndial.com/ it's on a link from the SipPhone URL. I just modified the text for my phone. There is a bit more info on there, and there is a MAC address on the top line of the file. Still just playing with this myself so don't know all the answers yet. Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Hans-Henrik Andresen Sent: 19 January 2004 09:52 To: [EMAIL PROTECTED] Subject: RE: [Asterisk-Users] configuration to Grandstream via tftp Thanks. How is the directory structure ? or do you add all you phone to the one file cfg.txt and have it in the root of your tftp-dir ? /HHA Attached is the config file I send to my Grandstream. Change IP address Phone ID to suite. _ Find high-speed net deals comparison-shop your local providers here. https://broadband.msn.com ___ 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 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] configuration to Grandstream via tftp
Thank your for the link - now I wil try it :) /Hans-Henrik Andresen This is the URL I got the config file from, http://www.plugndial.com/ it's on a link from the SipPhone URL. _ Learn how to choose, serve, and enjoy wine at Wine @ MSN. http://wine.msn.com/ ___ 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] configuration to Grandstream via tftp
On Mon, Jan 19, 2004 at 10:51:02AM +0100, Nicolas Bougues wrote: Attached is the config file I send to my Grandstream. Change IP address Phone ID to suite. That's great. Is it documented somewhere ? And how do you manage tens or hundreds of phones ? Are they all in the same cfg.txt file ? 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_NAT1 grandstream_ID 000b8200c14a grandstream_REV_BOOT 00100013 grandstream_REV_PHONE 00104026 grandstream_REV_VOC0012 grandstream_REV_HTML 00100020 grandstream_REV_VP 0010 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. -- 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