Hello,
I tried to install dundi according to the instructions i found around.
dundi show peers works fine…i can see both dundi peers online and available as:
dundi show peers
EID Host Model AvgTime Status
00:13:8f:b9:be:c4 aaa.aaa.aaa.aaa (S) Symmetric 10 ms OK (1 ms)
But my queries doesnt return any results…
As:
SiteB*CLI> dundi lookup 200@priv
DUNDi lookup returned no results.
DUNDi lookup completed in 0 ms
SiteA*CLI> dundi lookup 100@priv
DUNDi lookup returned no results.
DUNDi lookup completed in 0 ms
I am using freepbx on both sites. For siteA i created 2 extensions 200 for sip and 201 for iax. For siteB 100 for sip 101 for iax.
What am i missing? Any ideas?
For Site A and Site B:
iax_custom.conf
[priv]
type=friend
dbsecret=dundi/secret
context=dundi-priv-local
Site A:
extensions_custom.conf
[ext-local-custom]
;for Direct IVR dialing if IVR is installed on the PBX B
;local direct dial from IVR to queues if u have installed the [ext-local-custom].
[dundi-priv-canonical]
; local number of the PBX A for dundi advertise
exten => _201,1,Goto(ext-queues,${EXTEN},1)
exten => _200,1,Goto(ext-queues,${EXTEN},1)
[dundi-priv-customers]
; If you are an ITSP or Reseller, list your customers here.
[dundi-priv-via-pstn]
; If you are freely delivering calls to the PSTN, list them here
;Allow other server to call via Zaptel
exten => _XXXXXXXXXX,1,Dial(Zap/g0/${EXTEN}
exten => _NXXXXXX,1,Dial(Zap/g0/${EXTEN}
;where g0 is the group defined on the /etc/asterisk/zapata.conf
[dundi-priv-local]
include => dundi-priv-canonical
include => dundi-priv-customers
include => dundi-priv-via-pstn
[dundi-priv-switch]
; Just a wrapper for the 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[trydundi]
exten => _.,1,Macro(dundi-priv,${EXTEN})
exten => _.,2,Congestion
For site B
extensions_custom.conf
[dundi-priv-canonical]
; local number of the PBX B for dundi advertise
exten => _1XX,1,Goto(ext-local,${EXTEN},1)
[dundi-priv-customers]
; If you are an ITSP or Reseller, list your customers here.
[dundi-priv-via-pstn]
; If you are freely delivering calls to the PSTN, list them here
[dundi-priv-local]
include => dundi-priv-canonical
include => dundi-priv-customers
include => dundi-priv-via-pstn
[dundi-priv-switch]
; Just a wrapper for the 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
[trydundi]
exten => _.,1,Macro(dundi-priv,${EXTEN})
exten => _.,2,Congestion