Thanks for the help guys. Making the changes from localhost to localnet solved the problem.
I did run into another problem, but it some how fixed itself.
My dundi lookup was working in only one direction. I could call server 2 extension but when server two put in an extension for server one it always came back and said it was unavilable. I searched every where and could not find why.
I was looking in my extension_additional.conf file and noticed that there was no follow me information for any of the extension on server 2 but there was on server 1. So I added a follow me to one of the extensions on server 2 and all started working fine. But I don’t know how that fixed it.
I worked on this for 3 hours and don’t really know what I did to fix it. I’m now affraid to reboot either machine as they are working the way I want them.
Once question. If I was to share dial plans with dundi, where would I put the lookup in my extension_custom.conf file. Do I create a new context. Here is my extensions_custom.conf
; This file contains example extensions_custom.conf entries.
; extensions_custom.conf should be used to include customizations
; to AMP’s Asterisk dialplan.
; All custom context should contain the string ‘custom’ in it’s name
; Extensions in AMP have access to the ‘from-internal’ context.
; The context ‘from-internal-custom’ is included in ‘from-internal’ by default
#include extensions_trixbox.conf
#include extensions_hud.conf
[from-internal-custom]
include => from-internal-trixbox
;1234,1,Playback(demo-congrats) ; extensions can dial 1234
;1234,2,Hangup()
;h,1,Hangup()
;include => custom-recordme ; extensions can also dial 5678
; custom-count2four,s,1 can be used as a custom target for
; a Digital Receptionist menu or a Call Group
;[custom-count2four]
;s,1,SayDigits(1234)
;s,2,Hangup
; custom-recordme,5678,1 can be used as a custom target for
; a Digital Receptionist menu or a Call Group
;[custom-recordme]
;exten => 5678,1,Wait(2)
;exten => 5678,2,Record(/tmp/asterisk-recording:gsm)
;exten => 5678,3,Wait(2)
;exten => 5678,4,Playback(/tmp/asterisk-recording)
;exten => 5678,5,Wait(2)
;exten => 5678,6,Hangup
; This is the dundi information to link office dial plans.
[ext-local-custom]
include => trydundi-extensions
[dundi-services]
include => ext-queues
[dundi-services-local]
include => dundi-services
[dundi-services-switch]
switch => DUNDi/services
[dundi-services-lookup]
;include => dundi-services-local
include => dundi-services-switch
[macro-dundi-services]
exten => s,1,Goto(${ARG1},1)
include => dundi-services-lookup
[trydundi-services]
; Currently no remote services
[dundi-extensions]
include => ext-local
[dundi-extensions-local]
include => dundi-extensions
[dundi-extensions-switch]
switch => DUNDi/extensions
[dundi-extensions-lookup]
;Don’t go to extensions, otherwise we loop
;include => dundi-extensions
include => dundi-extensions-switch
[macro-dundi-extensions]
exten => s,1,Goto(${ARG1},1)
include => dundi-extensions-lookup
[trydundi-extensions]
exten => _[13]XXX,1,Macro(user-callerid,SKIPTTL)
exten => _[13]XXX,n,Macro(record-enable,${CALLERID(number)},OUT)
exten => _[13]XXX,n,Macro(dundi-extensions,${EXTEN})
exten => _[13]XXX,n,Congestion(5)
exten => _[13]XXX,n,Hangup
[dundi-parking]
exten => _7X,1,Goto(parkedcalls,${EXTEN},1)
[dundi-parking-local]
include => dundi-parking
[dundi-parking-switch]
switch => DUNDi/parking
[dundi-parking-lookup]
include => dundi-parking
include => dundi-parking-switch
[macro-dundi-parking]
exten => s,1,Goto(${ARG1},1)
include => dundi-parking-lookup
[trydundi-parking]
; no remote parking
Thanks for all your help.