outbound_routes.rst 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Outbound Routes
  2. ================
  3. Route outbound calls to gateways, tdm, enum and more. When a call matches the conditions the call to outbound routes. `Check out the youtube video <https://youtu.be/rhyfCKLBI-Y>`_ .
  4. .. raw:: html
  5. <div style="text-align: center; margin-bottom: 2em;">
  6. <iframe width="100%" height="350" src="https://www.youtube.com/embed/rhyfCKLBI-Y?rel=0" frameborder="0" ; encrypted-media" allowfullscreen></iframe>
  7. </div>
  8. **Configuring an Outbound Route.**
  9. * Select **Dialplan** from the drop-down list and then click **Outbound Routes** .
  10. * Click the **plus** button on the right. Enter the route information below and Click **Save** once entry is complete.
  11. .. image:: ../_static/images/dialplan/fusionpbx_outbound_routes1.png
  12. :scale: 65%
  13. |
  14. .. image:: ../_static/images/dialplan/fusionpbx_outbound_routes2.png
  15. :scale: 65%
  16. |
  17. |
  18. ::
  19. Gateway: VoiceTel
  20. Dialplan Expression: ^(?:\+?1)?(\d{10})$ (You can also choose more than one from the drop down list also as needed)
  21. Order: 000
  22. Enabled: true
  23. Description: VoiceTel-out
  24. |
  25. |
  26. **By using** `VoiceTel <http://tiny.cc/voicetel>`_ **you help support FusionPBX. Thank you for your support!**
  27. Pin Numbers
  28. -----------------
  29. 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".
  30. **To use a single PIN number for all calls**
  31. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  32. Before the bridge action on the outbound route add the following actions
  33. ::
  34. action set pin_number=(Whatever pin number you choose)
  35. action lua pin_number.lua
  36. **To use the PIN Number App to manage multiple PINs**
  37. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  38. * 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**.
  39. * Set the PINs you would like to use in **Apps > PIN Numbers**
  40. Before the bridge action on the outbound route add the following actions
  41. ::
  42. action set pin_number=database
  43. action lua pin_number.lua
  44. Which gateway is my call using?
  45. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  46. If you want to know the gateway your call is using there is currently no way to do this with FusionPBX's GUI. Instead you can do it this way.
  47. * Go to **Advanced -> Command** and in the **switch** command dropdown section type
  48. ::
  49. show channels as xml and then press the execute button.
  50. * In the output that is returned, look for the string **sofia/gateway/ and the gateway name.** This is the gateway your call is using.