Line 69: |
Line 69: |
| | | |
| ====Configuration==== | | ====Configuration==== |
− | *Use template fragment to generate the required Iaxmodem configuration file ''ttyIAX0'' in /etc/iaxmodem
| + | Use a template fragment to generate the required Iaxmodem configuration file ''ttyIAX0'' in /etc/iaxmodem so that changes survive a reconfiguration and reboot etc. |
| + | *Create the template directory |
| mkdir -p /etc/e-smith/templates-custom/etc/iaxmodem/ttyIAX0 | | mkdir -p /etc/e-smith/templates-custom/etc/iaxmodem/ttyIAX0 |
| cd /etc/e-smith/templates-custom/etc/iaxmodem/ttyIAX0 | | cd /etc/e-smith/templates-custom/etc/iaxmodem/ttyIAX0 |
− | *Now create and edit a new file called ''modem'' with the following content: | + | *Now create and edit a new file called ''modem'' with the following content |
| { | | { |
| use esmith::DB::db; | | use esmith::DB::db; |
Line 109: |
Line 110: |
| ====Check and Run==== | | ====Check and Run==== |
| Check the modem registers with Sail and Asterisk | | Check the modem registers with Sail and Asterisk |
− | /usr/local/sbin/iaxmodem ttyIAX | + | /usr/local/sbin/iaxmodem ttyIAX0 |
| should give an output similar to | | should give an output similar to |
| Modem started | | Modem started |
Line 131: |
Line 132: |
| db configuration set iaxmodem service status enabled | | db configuration set iaxmodem service status enabled |
| /etc/rc.d/rc7.d/S93iaxmodem start | | /etc/rc.d/rc7.d/S93iaxmodem start |
| + | |
| + | ====Modifications==== |
| + | If you make any changes within Sail/asterisk such as the fax number, or fax extension details, don't forget to update Iaxmodem |
| + | /sbin/e-smith/expand-templates /etc/iaxmodem/ttyIAX |
| + | /etc/rc.d/rc7.d/S93iaxmodem restart |
| | | |
| ===HylaFax=== | | ===HylaFax=== |