[Dundi] Dundi lookup and inter PBX calls

Georghy fusco at wanagain.net
Mon Mar 8 08:13:49 CST 2010


Hi folks,
i'm new to asterisk but I got to configure dundi for my work office.
that's what I got to configure :
I have 2 PBX for the test, the two PBX are in the same local network
PBX A : 192.168.199.23
PBX B : 192.168.199.21

my config files : (on PBX B , the config files on PBX A looks like it)

/etc/asterisk/dundi.conf

[general]
bind=192.168.199.21
port=4520
cachetime=5
ttl=32
autokill=yes

entityid=00:30:18:4C:33:53

[mappings]
;dundi-test => 
dundi-local,0,IAX2,dundi:${SECRET}@toronto.example.com/${NUMBER},nounsolicited,nocomunsolicit,nopartial 

priv => 
dundi-priv-canonical,0,SIP,dundi:${SECRET}@192.168.199.21/${NUMBER},nounsolicited,nocomunsolicit,nopartial 

;priv => dundi-priv-canonical,0,SIP,192.168.199.21/${NUMBER},nopartial
priv => 
dundi-priv-customers,100,SIP,dundi:${SECRET}@192.168.199.21/${NUMBER},nounsolicited,nocomunsolicit,nopartial 

;priv => dundi-priv-customers,100,SIP,192.168.199.21/${NUMBER},nopartial
priv => 
dundi-priv-customers,400,SIP,dundi:${SECRET}@192.168.199.21/${NUMBER},nounsolicited,nocomunsolicit,nopartial 

;priv => dundi-priv-via-pstn,400,SIP,192.168.199.21/${NUMBER},nopartial

[00:40:48:B2:78:6B]
model = symmetric
host = 192.168.199.23
inkey = 192.168.199.23
outkey = 192.168.199.21
include = priv
permit = priv
qualify = yes
order = primary


*/etc/asterisk/sip_custom.conf

language=fr
nat=never
;Subscribecontext=ext-local
[priv]
type=friend
dbsecret=dundi/secret
context=dundi-priv-local
host=192.168.199.23
qualify=yes*

/etc/asterisk/extensions_custom.conf

[ext-local-custom]
;for Direct IVR dialing if IVR is installed on the PBX B
exten => _36X,1,Macro(dundi-priv,${EXTEN})

[dundi-priv-canonical]
; local number of the PBX A for dundi advertise
exten => _37X,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


What works : if I use (on PBX B)

dundi lookup 360 at priv


asterisk respond :

 1.     0 SIP/dundi:+WXATxXJXSPP8mRpAL3mRQ==@192.168.199.23/360 
(EXISTS|NOUNSLCTD|NOCOMUNSLTD)
    from 00:40:48:b2:78:6b, expires in 5 s
DUNDi lookup completed in 7 ms


but if I try to call from 360 to 370 or from 370 to 360 the call fails

what should I do to make things working fine ?

-- 
Cordialement, / Greetings,
Georghy FUSCO




More information about the Dundi mailing list