Difference between revisions of "Outbound Routes"
m (Added distinction of using PIN Number App instead of using a single PIN.) |
|||
(8 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
+ | '''Menu: (Dialplan-Outbound Routes)''' | ||
+ | |||
Allows you to '''easily''' create outbound routes through a gateway. When a call matches the conditions the call is then routed to that gateway. | Allows you to '''easily''' create outbound routes through a gateway. When a call matches the conditions the call is then routed to that gateway. | ||
− | + | This is just a logical grouping for easy management of Outbound Routes to [http://wiki.freeswitch.org/wiki/Clarification:gateways Gateways]. | |
− | This is | + | |
+ | ---- | ||
+ | |||
+ | '''ADD Outbound Routes''' | ||
+ | |||
+ | '''Gateway:''' Select the gateway to use with this outbound route. | ||
+ | '''Dialplan Expression:''' dialplan data, which is autofilled if you use the drop-down list in the bottom | ||
+ | '''''drop-down list:''''' Shortcut to the [[Dialplan Manager]] to create the outbound dialplan entries for this Gateway. | ||
+ | '''Order:''' Select the order number. The order number determines the order of the outbound routes when there is more than one. | ||
+ | '''Enabled:''' Choose to enable or disable the outbound route. | ||
+ | '''Description:''' Enter a description for the outbound route. | ||
+ | |||
+ | == Pin Number == | ||
+ | To have the system ask for a PIN number before a call is made. A good use is if you don't want every user on the system to be able to call international destinations. This can be done with a single PIN or multiple PINs by using the "PIN Number APP". Make sure pin_number.lua is in /usr/local/freeswitch/scripts/ (by default it is) | ||
+ | |||
+ | |||
+ | '''To use a single PIN number for all calls:''' | ||
+ | |||
+ | Before the bridge action on the outbound route add the following actions | ||
+ | |||
+ | action set pin_number=(Whatever pin number you choose) | ||
+ | action lua pin_number.lua | ||
+ | |||
+ | |||
+ | '''To use the PIN Number App to manage multiple PINs:''' | ||
+ | |||
+ | First enable access to the "PIN Number" app by giving permissions to the group of users you want to have access in Advanced > Group Manager. Make sure the "PIN Number" App is displayed in the menu by selecting the groups that can view it in Advanced > Menu Manager | ||
+ | |||
+ | Set the PINs you would like to use in Apps > PIN Numbers | ||
+ | |||
+ | Before the bridge action on the outbound route add the following actions | ||
+ | |||
+ | action set pin_number=database | ||
+ | action lua pin_number.lua |
Latest revision as of 00:31, 5 March 2018
Menu: (Dialplan-Outbound Routes)
Allows you to easily create outbound routes through a gateway. When a call matches the conditions the call is then routed to that gateway. This is just a logical grouping for easy management of Outbound Routes to Gateways.
ADD Outbound Routes
Gateway: Select the gateway to use with this outbound route. Dialplan Expression: dialplan data, which is autofilled if you use the drop-down list in the bottom drop-down list: Shortcut to the Dialplan Manager to create the outbound dialplan entries for this Gateway. Order: Select the order number. The order number determines the order of the outbound routes when there is more than one. Enabled: Choose to enable or disable the outbound route. Description: Enter a description for the outbound route.
Pin Number
To have the system ask for a PIN number before a call is made. A good use is if you don't want every user on the system to be able to call international destinations. This can be done with a single PIN or multiple PINs by using the "PIN Number APP". Make sure pin_number.lua is in /usr/local/freeswitch/scripts/ (by default it is)
To use a single PIN number for all calls:
Before the bridge action on the outbound route add the following actions
action set pin_number=(Whatever pin number you choose) action lua pin_number.lua
To use the PIN Number App to manage multiple PINs:
First enable access to the "PIN Number" app by giving permissions to the group of users you want to have access in Advanced > Group Manager. Make sure the "PIN Number" App is displayed in the menu by selecting the groups that can view it in Advanced > Menu Manager
Set the PINs you would like to use in Apps > PIN Numbers
Before the bridge action on the outbound route add the following actions
action set pin_number=database action lua pin_number.lua