I have 2 servers that I'm trying to connect using DUNDi. When executing dundi show peers or dundi lookup I get the other server. However, I can't place a call from one server to the other. Here are all the conf files.
dundi.conf
extensions_custom.conf
iax_custom.conf
I have a dundi trunk named priv. With the following settings dial pattern: ZXZ, Dundi mapping: all.
dundi.conf
Code:
[general]
;department=Your Department
organization=Test
locality=Dallas
stateprov=TX
country=US
;[email protected]
phone=+12565551212
entityid=00:0C:29:00:07:1E
ttl=32
autokill=yes
[mappings]
priv => dundi-priv-canonical,1,IAX2,dundi:${SECRET}@${dundiipaddress}/${NUMBER},nounsolicited,nocomunsolicit,nopartial
priv => dundi-priv-customers,101,IAX2,dundi:${SECRET}@${dundiipaddress}/${NUMBER},nounsolicited,nocomunsolicit,nopartial
priv => dundi-priv-via-pstn,401,IAX2,dundi:${SECRET}@${dundiipaddress}/${NUMBER},nounsolicited,nocomunsolicit,nopartial
[00:0C:29:B1:FC:70]
model = symmetric
host = 10.0.0.102
inkey = test
outkey = test
include = all
permit = all
qualify = yes
order = primary
Code:
; This file contains example extensions_custom.conf entries.
; extensions_custom.conf should be used to include customizations
; to AMP's Asterisk dialplan.
; Extensions in AMP have access to the 'from-internal' context.
; The context 'from-internal-custom' is included in 'from-internal' by default
[from-internal-custom]
exten => 1234,1,Playback(demo-congrats) ; extensions can dial 1234
exten => 1234,2,Hangup()
exten => 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 Ring Group
[custom-count2four]
exten => s,1,SayDigits(1234)
exten => s,2,Hangup
; custom-recordme,5678,1 can be used as a custom target for
; a Digital Receptionist menu or a Ring 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
[dundi-e164-local] ;This must match the context in iax_custom.conf
; this context is used to group the 3 below and reference in iax.conf for the incoming calls referred by dundi
include => dundi-priv-canonical
include => dundi-priv-customers
include => dundi-priv-via-pstn
[dundi-priv-canonical]
; List canonical entries here
exten => 18008656920,1,goto(from-trunk,${EXTEN:1},1)
[dundi-priv-customers]
; If you are an ITSP or Reseller, list your internal extensions here.
exten => _1xx,1,goto(from-internal,${EXTEN},1)
[dundi-priv-via-pstn]
; If you are freely delivering calls to the PSTN, list them here
;exten => _1706251XXXX,1,macro(call_dundi,${EXTEN:1})
;exten => _1706258XXXX,1,macro(call_dundi,${EXTEN:1})
[macro-call_dundi]
exten => s,1,goto(from-internal,${ARG1},1)
[dundi-priv-switch]
switch => DUNDi/priv
[dundi-priv-lookup]
include => dundi-priv-local
include => dundi-priv-switch
[macro-dundi-priv]
exten => s,1,Goto(${ARG1},1)
include => dundi-priv-lookup
Code:
[dundi]
type=user
dbsecret=dundi/secret
context=dundi-e164-local
allow=all
trunk=yes