[asterisk-users] DUNDi configuration problem

Tim Verscheure tverscheure at gmail.com
Thu May 17 09:21:03 MST 2007


Hi peeps,

I've been struggling with DUNDi for a few days now and I can't seem to
make call from Asterisk A to Asterisk B. If I do a "dundi show peers",
it finds the other peer but I can't seem to make any calls. Can
anybody help me out here.

Here's the situation:

Machine 1: Debian with Asterisk 1.4.4 --> 192.168.1.103
Machine 2: AsteriskNOW --> 192.168.1.69

The machines are like you can see on the same subnetwork! I'm using
SIP and for the configurations I based myself on
http://www.voip-info.org/wiki/view/DUNDi+Enterprise+Configuration+SIP,
but no luck!

here are my config files:

=========================
== MACHINE 1: 192.168.1.103 ==
=========================

DUNDI.CONF
-------------------
[general]
bindaddr=0.0.0.0
port=4520
entityid=00:0E:A6:0B:E7:50
cachetime=60	; 1 minute
ttl=5
autokill=yes
;secretpath=dundi
storehistory=yes

[mappings]
priv => dundi-priv-canonical,0,SIP,${IPADDR}/${NUMBER},nopartial
priv => dundi-priv-customers,100,SIP,${IPADDR}/${NUMBER},nopartial
priv => dundi-priv-via-pstn,400,SIP,${IPADDR}/${NUMBER},nopartial

; AsteriskNOW server
[00:07:95:BD:F1:FF]
model = symmetric
host = 192.168.1.69
inkey = asnow
outkey = asreg
include = priv	;all
permit = priv
qualify = yes
order = primary


SIP.CONF
----------------
[priv]
type=user
dbsecret=dundi/secret
context=dundi-priv-local

[5000]
type=friend
username=tim
secret=1234
host=dynamic
context=testeke

[5001]
type=friend
username=greg
secret=1234
host=dynamic
context=testeke


EXTENSIONS.CONF
--------------------------------
[general]
static=yes
writeprotect=no
;autofallthrough=no
clearglobalvars=no
;priorityjumping=yes
;userscontext=default

[dundi-e164-canonical]
;
; List canonical entries here
;
;exten => 12564286000,1,Macro(stdexten,6000,IAX2/foo)
;exten => _125642860XX,1,Dial(IAX2/otherbox/${EXTEN:7})

[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 => _1256428XXXX,1,Dial(Zap/g2/${EXTEN:7}) ; Expose all of 256-428
;exten => _1256325XXXX,1,Dial(Zap/g2/${EXTEN:7}) ; Ditto for 256-325

[dundi-e164-local]
;
; Context to put your dundi IAX2 or SIP user in for
; full access
;
include => dundi-e164-canonical
include => dundi-e164-customers
include => dundi-e164-via-pstn

[dundi-e164-switch]
;
; Just a wrapper for the 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
;
; DUNDi can also be implemented as a Macro instead of using
; the Local channel driver.
;
[macro-dundi-e164]
;
; ARG1 is the extension to Dial
;
; Extension "s" is not a wildcard extension that matches "anything".
; In macros, it is the start extension. In most other cases,
; you have to goto "s" to execute that extension.
;
; For wildcard matches, see above - all pattern matches start with
; an underscore.
exten => s,1,Goto(${ARG1},1)
include => dundi-e164-lookup

;;;;;;;;;;;;;;;;;DUNDI CONFIG;;;;;;;;;;;;;;;;;;;;;;

; Private DUNDi network
[dundi-priv-canonical]
; Direct numbers (dundi priority 0)

exten => 5000,1,Dial(SIP/5000)
exten => 5001,1,Dial(SIP/5001)

[dundi-priv-customers]
; If you are an ITSP or Reseller, list your customers here.  (dundi
priority 100)

[dundi-priv-via-pstn]
; If you are freely delivering calls to the PSTN, list them here
(dundi priority 400)

[dundi-priv-local]
include => dundi-priv-canonical
include => dundi-priv-customers
include => dundi-priv-via-pstn

[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
;;;;;;;;;;;;;;;;DUNDI CONFIG;;;;;;;;;;;;;;;;;;;;;;;;;

; Dundi
exten => _60XX,1,Macro(dundi-priv,${EXTEN})

[testeke]
exten => 5000,1,Dial(SIP/5000)
exten => 5001,1,Dial(SIP/5001)



=========================
== MACHINE 2: 192.168.1.69  ==
=========================

DUNDI.CONF
---------------------
[general]
bindaddr=0.0.0.0
port=4520
entityid=00:07:95:BD:F1:FF
cachetime=60
ttl=5
autokill=yes
;secretpath=dundi
storehistory=yes

[mappings]
priv => dundi-priv-canonical,0,SIP,${IPADDR}/${NUMBER},nopartial
priv => dundi-priv-customers,100,SIP,${IPADDR}/${NUMBER},nopartial
priv => dundi-priv-via-pstn,400,SIP,${IPADDR}/${NUMBER},nopartial

; Asterisk Server (laptop)
[00:0E:A6:0B:E7:50]
model = symmetric
host = 192.168.1.103
inkey = asreg
outkey = asnow
include = priv	;all
permit = priv
qualify = yes
order = primary


SIP.CONF
----------------
[priv]
type=user
dbsecret=dundi/secret
context=dundi-priv-local


USERS.CONF
-----------------------
[6000]
callwaiting = yes
cid_number = 6000
context =
email = tverscheure at gmail.com
fullname = Tim
group =
hasagent = yes
hasdirectory = yes
hasiax = no
hasmanager = no
hassip = yes
hasvoicemail = yes
host = dynamic
mailbox = 6000
secret = 1234
threewaycalling = yes
vmsecret = 12
zapchan =
registeriax = no
registersip = yes

[6001]
callwaiting = yes
cid_number = 6001
context =
email = gregorvekemans at gmail.com
fullname = Greg
group =
hasagent = yes
hasdirectory = yes
hasiax = no
hasmanager = no
hassip = yes
hasvoicemail = yes
host = dynamic
mailbox = 6001
secret = 1234
threewaycalling = yes
vmsecret =
zapchan =
registeriax = no
registersip = yes


EXTENSIONS.CONF
--------------------------------
[general]
static = yes
writeprotect = no
;autofallthrough=no
clearglobalvars = no
;priorityjumping=yes
;userscontext=default


[dundi-e164-canonical]
;
; List canonical entries here
;
;exten => 12564286000,1,Macro(stdexten,6000,IAX2/foo)
;exten => _125642860XX,1,Dial(IAX2/otherbox/${EXTEN:7})

[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 => _1256428XXXX,1,Dial(Zap/g2/${EXTEN:7}) ; Expose all of 256-428
;exten => _1256325XXXX,1,Dial(Zap/g2/${EXTEN:7}) ; Ditto for 256-325
[dundi-priv-local]
;
; Context to put your dundi IAX2 or SIP user in for
; full access
;
include => dundi-e164-canonical
include => dundi-e164-customers
include => dundi-e164-via-pstn

[dundi-e164-switch]
;
; Just a wrapper for the 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
;
; DUNDi can also be implemented as a Macro instead of using
; the Local channel driver.
;
[macro-dundi-e164]
;
; ARG1 is the extension to Dial
;
; Extension "s" is not a wildcard extension that matches "anything".
; In macros, it is the start extension. In most other cases,
; you have to goto "s" to execute that extension.
;
; For wildcard matches, see above - all pattern matches start with
; an underscore.
exten => s,1,Goto(${ARG1},1)
include => dundi-e164-lookup

;;;;;;;;;;;;;;;;;;;;;;;;DUNDI CONFIG;;;;;;;;;;;;;;;;;;;;;;;
; Private DUNDi network
[dundi-priv-canonical]
; Direct numbers

exten => 6000,1,Dial(SIP/6000)
exten => 6001,1,Dial(SIP/6001)

[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
;;;;;;;;;;;;;;;;;;;;;;;;DUNDI CONFIG;;;;;;;;;;;;;;;;;;;;;;;

;dundi
exten => _50XX,1,Macro(dundi-priv,${EXTEN})



On both machines I generated the keys in /var/lib/asterisk/keys/ with
$ astgenkey -n asreg
$ astgenkey -n asnow

And like i said when I do "dundi show peers" it shows me the other
peer but I can't call to it with the extensions I added. And also when
I do a "dundi lookup 5000" it doesn't give me anything...

If somebody can help me, would be great!


Greetz, Tim


More information about the asterisk-users mailing list