You are here

FreePBX Outbound Routes via MySQL Table

Here is a good start:

This module adds:

1. A MySQL table to hold your NPA list.
2. A new page "Outbound Routes New".
3. An agi script that does the look up and routes the call.

You'll need to add the following to /etc/asterisk/extensions_customer.conf

; Calls a PHP AGI Script to pick a trunk based on Called Number

exten => _1NXXNXXXXXX,1,set(thisuid=${UNIQUEID})
exten => _1NXXNXXXXXX,3,AGI(outbound_routes2.php,${EXTEN})

;exten => h,1,NoOp(obrh: UNIQUEID: ${thisuid})
exten => h,n,NoOp(obrh: UNIQUEID: )

Contact Us if you would like support on it or further development.

User login