DoubleDriveLine
Member
- Joined
- Sep 23, 2017
- Messages
- 98
- Reaction score
- 22
These instructions are for IncrediblePBX. The version I am running is the Raspberry Pi 3 version released 2018-08-25 file name incrediblepbx13-raspbian8-gvsip.zip
These instructions might need to be modified for your system.
I wanted to setup AvantFax to have multiple DID routing to different email addresses and users. I could not find a good tutorial anywhere online but I was able to figure it out from bits and pieces hanging on the internet.
As with anything make backups of your system and files before making changes.
Start by changing the caller ID settings in AvantFax local_config.php file
Activate DID routing Scroll down to ENABLE_DID_ROUTING and make it true. This setting will activate a new menu option in the AdvantFax administration page.
Turn off AUTOCONFIGDID. It automatically enters routes based on incoming caller id numbers. For me not necessary.
Close out the AvantFax config file
Now you need to make a change to the Asterisk Extension custom config to force the DID to be sent to the fax server when it receives a call.
Scroll down to [custom-fax-iaxmodem]
Change the EXTEN to FROM_DID
Close out the custom extension file
Now you have to make a change to all of the IAX modems in the Hylafax directory. At default that will be config.ttyIAX0-3
Find the line
# You'll likely want Caller*ID display (also displays DID) enabled.
#
Below it make sure this line is uncommented
Scroll down again to below the line
# Uncomment DATE and TIME if you really want them, but you probably don't.
Make sure that the following are all uncommented
That should be all the config file changes that need to be made. Everything else is done in the AvantFax Web Interface.
Log into your AvantFax administration page
Click the monitor with the wrench icon below the logged on username. It takes you to a dashboard.
Click the Menu drop down list and select DID/DTMF Groups
In the field DID/DTMF digits* add the 10 digit phone numbers
Add that same number into the Alias field. I haven't figured out what the purpose of the alias field is for.
Add the email address the fax should be sent to in contacts.
Click Create
Go back to the menu and go to the User List. That is assuming you already have the user created. If not create one. At the bottom of the form you should see the DID Group you created. Give this user access to that group.
You will also notice there is a default group "Catch All". This group is for any incoming fax that might not have proper DID information. Theoretically that number would not make it to the AvantFax server still it might be a good idea to assign that to a user.
The last thing you will want to do if you haven't at this point is point your DID to the Custom Destinations: Fax (HylaFax) from within Inbound Routes.
You should now be able to assign a number of users their own fax DID.
And finally reboot the system to apply the changes.
These instructions might need to be modified for your system.
I wanted to setup AvantFax to have multiple DID routing to different email addresses and users. I could not find a good tutorial anywhere online but I was able to figure it out from bits and pieces hanging on the internet.
As with anything make backups of your system and files before making changes.
Start by changing the caller ID settings in AvantFax local_config.php file
Code:
nano /var/www/html/avantfax/includes/local_config.php
Code:
$CALLIDn_CIDNumber = 1;
$CALLIDn_CIDName = 2;
$CALLIDn_DIDNum = 4;
Activate DID routing Scroll down to ENABLE_DID_ROUTING and make it true. This setting will activate a new menu option in the AdvantFax administration page.
Code:
$ENABLE_DID_ROUTING = true;
Turn off AUTOCONFIGDID. It automatically enters routes based on incoming caller id numbers. For me not necessary.
Code:
$AUTOCONFDID = false;
Close out the AvantFax config file
Now you need to make a change to the Asterisk Extension custom config to force the DID to be sent to the fax server when it receives a call.
Code:
nano /etc/asterisk/extensions_custom.conf
Scroll down to [custom-fax-iaxmodem]
Change the EXTEN to FROM_DID
Code:
exten => s,n,Dial(IAX2/iax-fax0/${FROM_DID})
exten => s,n,Dial(IAX2/iax-fax1/${FROM_DID})
exten => s,n,Dial(IAX2/iax-fax2/${FROM_DID})
exten => s,n,Dial(IAX2/iax-fax3/${FROM_DID})
Close out the custom extension file
Now you have to make a change to all of the IAX modems in the Hylafax directory. At default that will be config.ttyIAX0-3
Code:
nano /etc/hylafax/config.ttyIAX0
Find the line
# You'll likely want Caller*ID display (also displays DID) enabled.
#
Below it make sure this line is uncommented
Code:
ModemResetCmds: AT+VCID=1 # enables CallID display
Scroll down again to below the line
# Uncomment DATE and TIME if you really want them, but you probably don't.
Make sure that the following are all uncommented
Code:
CallIDPattern: "NMBR="
CallIDPattern: "NAME="
CallIDPattern: "ANID="
CallIDPattern: "NDID="
That should be all the config file changes that need to be made. Everything else is done in the AvantFax Web Interface.
Log into your AvantFax administration page
Click the monitor with the wrench icon below the logged on username. It takes you to a dashboard.
Click the Menu drop down list and select DID/DTMF Groups
In the field DID/DTMF digits* add the 10 digit phone numbers
Add that same number into the Alias field. I haven't figured out what the purpose of the alias field is for.
Add the email address the fax should be sent to in contacts.
Click Create
Go back to the menu and go to the User List. That is assuming you already have the user created. If not create one. At the bottom of the form you should see the DID Group you created. Give this user access to that group.
You will also notice there is a default group "Catch All". This group is for any incoming fax that might not have proper DID information. Theoretically that number would not make it to the AvantFax server still it might be a good idea to assign that to a user.
The last thing you will want to do if you haven't at this point is point your DID to the Custom Destinations: Fax (HylaFax) from within Inbound Routes.
You should now be able to assign a number of users their own fax DID.
And finally reboot the system to apply the changes.
Last edited: