DUNDi Enterprise Configuration SIP with no passwords

This is all you should need to setup DUNDi between two boxes with SIP.
You can add more boxes to your network in a similar way.
(Based on configurations in the configs directory and documents published by Brian K. West aka bkw_)
DUNDi Enterprise Configuration IAX

Note: this configuration does not utillize passwords as in DUNDi Enterprise Configuration IAX or DUNDi Enterprise Configuration SIP
so most probably sutable for secured networks. The main difference from DUNDi Enterprise Configuration SIP is in sip.conf and extentions.conf is different a bit
on two boxes.


Things to keep in mind:
  • Unless you have specifically listed a host in your sip.conf the call will come in on the context defined in the [general] section by context. You may want to include the [dundi-priv-local] in this context.

Image



On boxA in extensions.conf:
; Private DUNDi network
[dundi-priv-canonical]
; Direct numbers
;example:
;exten => 201,1,Dial(SIP/201,20,tT)
;exten => 203,1,Dial(SIP/201,20,tT)
;exten => 204,1,Dial(SIP/204,20,tT)

; ATTENTION! this part should be added on box A
;--------start
; in order to advertise Zap extentions
; we must use _[3-5]XX wildcard 
; not to mess up numeration with BP250
; please see attached scheme
; this part should be added on box A
;exten => _[3-5]XX,1,Dial(Zap/g1/${EXTEN},20,rtT)
;--------finish

[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


On boxB in extensions.conf:
; Private DUNDi network
[dundi-priv-canonical]
; Direct numbers
;example:
;exten => 888,1,Dial(SIP/888,20,tT)


[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


sip.conf on both boxes:
[priv]
type=peer
context=dundi-priv-local
disallow=all
allow=ilbc


dundi.conf on both boxes under [mappings]:
In many cases you will need to replace ${IPADDR} with your local IP address
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



now on each box cd /var/lib/asterisk/keys

astgenkey -n [BOXNAMEHERE]


Press enter do not put a password on the keys unless you want to init
keys every time you start asterisk.

Now put exchange public keys between the boxes.



Box A dundi.conf:

[DE:AD:BE:EF:DE:AD]   <-- EID/MAC from BOX B
model = symmetric
host = boxb.domain.com
inkey = BOXB   <- BOX B's public key
outkey = BOXA  <- BOX A's private key
include = priv
permit = priv
qualify = yes
order = primary


Box B dundi.conf:


[BE:EF:DE:AD:BE:EF]  <-- EID/MAC from BOX A

model = symmetric
host = boxa.domain.com
inkey = BOXA   <- BOX A's public key
outkey = BOXB  <- BOX B's private key
include = priv
permit = priv
qualify = yes
order = primary


Now you can do this in the context which your devices dialout:

exten => _91NXXNXXXXXX,1,Macro(dundi-priv,${EXTEN:1})
exten => _91NXXNXXXXXX,2,Dial(Zap/g1/${EXTEN:1}) ; This is fall through example to a PSTN such a as PRI


And find numbers in your enterprise DUNDi network.
Created by: itconnection.ru, Last modification: Sat 12 of May, 2012 (20:41 UTC) by admin


Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+

Page Changes | Comments

 

Featured -

Search: