DUNDI conf

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

; 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

; Private DUNDi network

[dundi-priv-canonical]
; Direct numbers

exten => 00000002800,1,Goto(from-pstn,s,1)
exten => 00000002801,1,Goto(timeconditions,1,1)
;exten => 600000002800,1,Goto(timeconditions,1,1)

[dundi-priv-customers]
; If you are an ITSP or Reseller, list your customers here.
exten => _5[1-46-8]X,1,Goto(ext-local,${EXTEN},1)
exten => _552,1,Goto(ext-local,${EXTEN},1)
exten => _59[025-9],1,Goto(ext-local,${EXTEN},1)

[dundi-priv-via-pstn]
; If you are freely delivering calls to the PSTN, list them here
;exten => _1847XXXXXXX,1,Dial(ZAP/g2/${EXTEN})

[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

I finally found my mistake , if you wouldn’t have pointed me in the right direction, I would have never find it.
this is what I modified:

[dundi-priv-customers]
; If you are an ITSP or Reseller, list your customers here.
exten => _5[1-46-7]X,1,Goto(ext-local,${EXTEN},1)
exten => _58[0-79],1,Goto(ext-local,${EXTEN},1)
exten => _552,1,Goto(ext-local,${EXTEN},1)
exten => _59[025-9],1,Goto(ext-local,${EXTEN},1)

Thank you so much.It works now. that drove me crazy.

Well, I don’t feel like I did very much.

Happy New Year,

yes,
Only the 588 extension doesn’t work when trying to call from one of the box. One thing that I forgot to mention is that 588 and 591 were 2 extensions existing on this box before I deleted them and recreated them on the new box
I will post the file in a little while
Thanks

nop, still trying to figure this out.

If I understand, only extension 588 does not work and all other calls to that box are working. Could you post the appropriate parts of extensions_custom.conf from that box.

Did you get this resolved? I have been on vacation for a week.

Could you post the appropriate parts of your dundi.conf file. Did you modify the default mappings in that file to work with the priv context? Did you rename the trunk used in the mappings to priv?

You have:

[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)

I would advertise these numbers in dundi-priv-customers like this:

[dundi-priv-customers]
exten => 201,1,goto(from-internal,${EXTEN},1)
exten => 200,1,goto(from-internal,${EXTEN},1)

The “canonical” I usually use for actual DID’s that live on the machine. On my machine that would look like this:

[dundi-e164-canonical]
exten => 17066323343,1,goto(from-trunk,${EXTEN},1)

You can also drop the leading “_” if there is no pattern match.

None of these changes will fix the failed “dundi lookup” from the command line, so I suspect there is something amiss in the dundi.conf file.

Hi and thanks for the reply…
It was an error about the cannonicals…dundi con f was fine. Just i wasnt announcing the extensions correctly. Now it is fine…
Announcing the numbers behind them…

But still i have more questions about dundi…coming in another title…:slight_smile:

I am also trying to connect 2 boxes with dundi , i was able to do it on a previous version of Trixbox , but now on trixbox 2.6 CE for some reason I don’t see dundi .conf under /etc/asterisk.

Do I have to create it? also I red that there is a package available for it , how do I download it and apply it?
thanks for any help,
David

just create the file and it should work without a problem.

Thanks for your reply I will try that now.

Is the function “dundi show peers” has been removed or do I need to install a package for that?
for some reason all the commands with dundi are not working

Run this command at the command line:

asterisk -rx “show modules” | grep dundi

If the dundi modules is installed it should respond with:

pbx_dundi.so Distributed Universal Number Discovery ( 0

or something like it. If it is not there, this would have to be a feature in Trixbox :slight_smile: and means the dundi module is not installed on your machine.

Hi john,
the command return what you mentioned , so I guess I have the module installed . so how comes the command dundi doesn’t work?

ok, if someone has the same problem that I had: commands for dundi under asterisk CLI showing . no such command 'dundi’
well, just reboot your machine, I don’t know why but after rebooting I was able to see the dundi features.

once the dundi config existed the module was loaded which has the command interface. All you really needed to do was amportal restart.

i have 3 boxes connected with Dundi (T1, T2, T3)
I used to have extension 588 on T1 and moved it to T3 ( basically I deleted the extension on T1 and created it on T3)
now I can’t through dundi I can’t reach 588 on T3, but all other extension on it I can.
T2 can reach 588 on T3 , 588 can call T1 and T2 but T1 can’t call 588 on T3

I can’t figure why , I always get all circuit are busy now.
When I do a lookup from T1 to 588 it shows me it exists on T3 , and also it is setup on my outbound route.
Any help , please
Thanks,
David

David, can you post a log of the call?