1. Setup
  2. 2 Servers Called Server2 and Server3 (to match IP no server1)
  3. Server2
  4. (MAC: 00:00:00:00:00:02)
  5. IP:10.1.2.100
  6. Phones: 2001,2002,2003
  7. Server3
  8. (MAC: 00:00:00:00:00:03)
  9. IP:10.1.3.100
  10. Phones 3001,3002,3003
  11. //Server 2 Setup ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12. //dundi.conf
  13. [general]
  14. organization=Server2
  15. locality=foo
  16. stateprov=NY
  17. country=US
  18. phone=5555555555
  19. ttl=32
  20. autokill=yes
  21. entityid=00:00:00:00:00:02
  22. [mappings]
  23. priv => dundiextens,0,IAX2,priv:${SECRET}@10.1.2.100/${NUMBER}
  24. [00:00:00:00:00:03]
  25. model = symmetric
  26. host = 10.1.3.100
  27. inkey = priv
  28. outkey = priv
  29. include = priv
  30. permit = priv
  31. qualify = yes
  32. order = primary
  33. //iax_custom.conf
  34. [priv]
  35. type=friend
  36. dbsecret=dundi/secret
  37. context=incomingdundi
  38. //extensions_custom.conf
  39. [incomingdundi]
  40. include => dundiextens
  41. [dundiextens]
  42. exten => _2XXX,1,Goto(from-internal,${EXTEN},1)
  43. //FreePBX Setup
  44. Server2 DUNDi Trunk
  45. Trunk Name: priv
  46. Outbound CallerID: <XXXX>
  47. Dialed Number Manipulation Rules: ()+ | NXXX
  48. DUNDi Mapping: priv
  49. // End of Server 2 Setup ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  50. //Server 3 Setup ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  51. //dundi.conf
  52. [general]
  53. organization=Server3
  54. locality=foo
  55. stateprov=NY
  56. country=US
  57. phone=5555555555
  58. ttl=32
  59. autokill=yes
  60. entityid=00:00:00:00:00:03
  61. [mappings]
  62. priv => dundiextens,0,IAX2,priv:${SECRET}@10.1.3.100/${NUMBER}
  63. [00:00:00:00:00:02]
  64. model = symmetric
  65. host = 10.1.2.100
  66. inkey = priv
  67. outkey = priv
  68. include = priv
  69. permit = priv
  70. qualify = yes
  71. order = primary
  72. //iax_custom.conf
  73. [priv]
  74. type=friend
  75. dbsecret=dundi/secret
  76. context=incomingdundi
  77. //extensions_custom.conf
  78. [incomingdundi]
  79. include => dundiextens
  80. [dundiextens]
  81. exten => _3XXX,1,Goto(from-internal,${EXTEN},1)
  82. //FreePBX Setup
  83. Server3 DUNDi Trunk
  84. Trunk Name: priv
  85. Outbound CallerID: <XXXX>
  86. Dialed Number Manipulation Rules: ()+ | NXXX
  87. DUNDi Mapping: priv
  88. // End of Server 3 Setup ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~