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