Yet another insane setup question

sigmaz

Member
Joined
Dec 17, 2010
Messages
100
Reaction score
1
Hey gang..
I'm back once again with a unique obscure question.

I now have 4 sites we are going to link together.
Each site has it's own pbx server. up and running.

All 4 sites are members of the same Hamachi VPN and can see one another.

the goal is to have all the sites access the trunks terminated on the main office box and all the while be able to communicate between all locations.

Dundi is installed and running on all 4 servers and I can dundi query and dundi lookup.

I have 3 short questions..

1: When I do a dundi lookup for an extension number which I know is on remote server X.
The peer listed in my local dundi.conf as order=primary replies says it hosts the extension and terminates the query although it is incorrect.

All dundi query MAC requests made from each pbx come back properly from each pbx queried.

2: When configuring dundi.conf I am under the impression that you need to bind to the hamachi (ham0) address..
So that the returned info builds the proper string and calls are properly routed.
(Just looking for confirmation.)

3: Where can I locate a more defined or explicit installation quide.

I think i have the dundi communications correct but the extensions.conf part is a kicker for me because I don't fully understand the flow or syntax of the command entries.

thanks everyone in advance for your input.

-jon
 

randy7376

Defnyddiwr Gweithredol
Joined
Sep 29, 2010
Messages
865
Reaction score
144
I don't know if you've read John Mullinix's DUNDI guide, yet. It's what I used to set up DUNDI in our environment. It got me through implementation and setup.

You can find more information at http://www.cohutta.com/

There's a link near the bottom left of the home page marked "Dundi How-To".

Hopefully, John will see your questions and can assist. :) DUNDI is not one of my strengths!
 

sigmaz

Member
Joined
Dec 17, 2010
Messages
100
Reaction score
1
Thanks Randy...
Yeah, I read that one and another one called something like Dundi so easy a caveman can do it.. as well as a few posts on freepbx and a few other google results.

The problem with those setup is that im not sure if they are configured for specialty use or whatnot..
I have a simple need and dundi seems to fit the bill i'm just having a few minor issues due to my knowledge.

I guess its a bit over my head but i'm willing to whack at it until it's right.

I think i'm going to be buying the asterisk book so i have a better understanding of the command synax and what they mean.
 

randy7376

Defnyddiwr Gweithredol
Joined
Sep 29, 2010
Messages
865
Reaction score
144
I'm waiting for the 3rd edition, Asterisk: The Definitive Guide, to come out so I can get caught up on what's new. It's due out in "early 2011".

There's been so many changes between Asterisk versions that I have trouble keeping up with a lot of it. VoIP is just one of my many duties where I work.

While you're waiting, you can download the previous book Asterisk: The Future Of Telephony here - http://www.asteriskdocs.org/

It's a bit dated, but it will definitely help! There's a small section on DUNDI that I'd forgotten about that may help.
 

jmullinix

Guru
Joined
Oct 21, 2007
Messages
1,263
Reaction score
7
I am waiting for that book also.

sigmaz: Post the dundi stuff from extension_custom.conf and I will take a look.
 

sigmaz

Member
Joined
Dec 17, 2010
Messages
100
Reaction score
1
will do!
it's mostly stock with the stuff from the .pdf edited and pasted in the bottom of the file.

im not really attempting to peer with anone on the outside world.
I just want to let my internal extensions be accessible from any office with minimal defining on my part.

I know I could simply set up some static IAX routes but i'd prefer geting this running so if extensions are created on the fly i dont have to go back in and reconfigure everything to reflect the change.

Im also under the impressiop that this may help my BLF status lamp implementation over the tunnels .


; the first three contexts are separated in order to group them by the appropriate dundi priority
; Private DUNDi network

[dundi-e164-canonical]
; List canonical entries here
_+_+_+_+_+_ Masked for forum post _+_+_+_
exten => 1973xxxxxxx,1,noop()
exten => 1424xxxxxxx,1,noop()
exten => 1973xxxxxxx,1,noop()
exten => 1347xxxxxxx,1,noop()
exten => 1347xxxxxxx,1,noop()
include => from-trunk

[dundi-e164-customers]
; If you are an ITSP or Reseller, list your customers here.
;exten => _12564286000,1,Dial(SIP/customer1)
;exten => _12564286001,1,Dial(IAX2/customer2)

[dundi-e164-via-pstn]
; If you are freely delivering calls to the PSTN, list them here
;exten => _1706964XXXX,1,macro(call_dundi,${EXTEN:1})
;exten => _1828494XXXX,1,macro(call_dundi,${EXTEN:1})

[macro-call_dundi]
;exten => s,1,goto(from-Dundi,*67${ARG1},1)
exten => s,1,goto(from-Dundi,${ARG1},1)

[dundi-e164-local]
; this context is used to group the 3 above and reference in iax.conf for the incoming calls referred by dundi
include => dundi-e164-canonical
include => dundi-e164-customers
include => dundi-e164-via-pstn

[dundi-e164-switch]
switch => DUNDi/e164
[dundi-e164-lookup]
; Locally to lookup, try looking for a local E.164 solution
; then try DUNDi if we don't have one.
include => dundi-e164-local
include => dundi-e164-switch

[macro-dundi-priv]
exten => s,1,Goto(${ARG1},1)
include => dundi-e164-lookup

[trydundi]
exten => _.,1,Macro(dundi-priv,${EXTEN})
exten => _.,2,Congestion


it's pretty much verbatim from the article
 

sigmaz

Member
Joined
Dec 17, 2010
Messages
100
Reaction score
1
Thanks for the recommendation and link.
I've downloaded the older version of the book and the dial plan structure is easier to follow now..
 

jmullinix

Guru
Joined
Oct 21, 2007
Messages
1,263
Reaction score
7
I wrote my How-to before FreePBX included Dundi as a trunk. I really need to re-write that How-to. Ahhh, so many tasks, so little time.

Change
[dundi-e164-canonical]
; List canonical entries here
exten => 1973xxxxxxx,1,noop()

to:
[dundi-e164-canonical]
; List canonical entries here
exten => 1973xxxxxxx,1,goto(from-trunk,${EXTEN},1)

Change:
[dundi-e164-via-pstn]
; If you are freely delivering calls to the PSTN, list them here
exten => _1706964XXXX,1,macro(call_dundi,${EXTEN:1})
exten => _1828494XXXX,1,macro(call_dundi,${EXTEN:1})

to:
[dundi-e164-via-pstn]
; If you are freely delivering calls to the PSTN, list them here
exten => _1706964XXXX,1,goto(from-internal,${EXTEN:1})
exten => _1828494XXXX,1,goto(from-internal,${EXTEN:1})

Delete the macro-call_dundi context, the trydundi context and the dundi-e164-switch context. These are no longer needed.

Set up a Dundi trunk in FreePBX and make the context e164.

Make sure you set up the IAX trunk required and if you are running Asterisk 1.6 or later, include the directive:

requirecalltoken=no

in that trunk setup.

With what you have already done, these changes should make it sing and dance. Contact me if you need additional help.
 

sigmaz

Member
Joined
Dec 17, 2010
Messages
100
Reaction score
1
Ok I made those changes..

I'm still having trouble with the lookups.

I can dundi query and get results but extension dundi lookups fail..

Also I dont seem to be able to dial out anything anymore..

I know they are unrelated with the dialplan but i cant test the changes if the numbers can be resolved.

I should probably rip Dundi back out and start over.. I must have messed up someplace.
 

sigmaz

Member
Joined
Dec 17, 2010
Messages
100
Reaction score
1
A more complete and corrected installation guide would sure be handy for a dolt like myself.

I'm running the purple payload with the incrediblepbx18.x installed

I'd sure love to get this all ironed out.......
I'm still learning but i know enough to know that dundi is what i need to get the sites working together.

thanks guys
 

sigmaz

Member
Joined
Dec 17, 2010
Messages
100
Reaction score
1
Quick question:

Would I receive a query reply if the extensions_custom.conf Doesn't contain dundi dialplans.

I'm not asking about actually dialing but just when doing a dundi lookup.
 

sigmaz

Member
Joined
Dec 17, 2010
Messages
100
Reaction score
1
LOL!..
Thanks for that but I'm just lucky I got mine working..

It's pretty simple once you understand whats going on.
 

Members online

Forum statistics

Threads
25,810
Messages
167,754
Members
19,240
Latest member
nikko
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top