Pages

Wednesday, June 13, 2018

SETUP TFTP in Asterisk (FREEPBX)

SETUP TFTP in Asterisk (FREEPBX)

here's how:

1> Open the file " tftp " in /etc/xinetd.d/ for editing

2> Modify the " server_args " entry to look like this:

server_args = -vv -s /tftpboot 

If your phones need to be able to create directories, you can put in a " -c " option in there as well

3> Save your changes and exit the editor

4> restart the TFTP service using:  service xinetd restart

That SHOULD do it.

5>  You can look at the TFTP status by typing in:

tail -100f /var/log/messages 

This will give you a 'live' update of the actions of the TFTP as they roll into the log.

Example:
Jun 13 13:00:30 BG-PBX-02 in.tftpd[27960]: sending NAK (1, File not found) to 100.4.100.110
Jun 13 13:04:48 BG-PBX-02 in.tftpd[28596]: RRQ from 100.4.100.110 filename 1120.cfg
Jun 13 13:04:52 BG-PBX-02 in.tftpd[28597]: RRQ from 100.4.100.110 filename SIPA4475A347A5A.cfg
Jun 13 13:05:05 BG-PBX-02 in.tftpd[28660]: RRQ from 100.4.100.110 filename dialplan.txt
Jun 13 13:05:05 BG-PBX-02 in.tftpd[28660]: sending NAK (1, File not found) to 100.4.100.110

Jun 13 13:05:28 BG-PBX-02 php: /sbin/iptables  -A fpbxregistrations -s 100.4.100.110/32 -j fpbxknownreg

No comments:

Post a Comment