2 ; DUNDi configuration file
4 ; For more information about DUNDi, see http://www.dundi.com
9 ; The "general" section contains general parameters relating
10 ; to the operation of the dundi client and server.
12 ; The first part should be your complete contact information
13 ; should someone else in your peer group need to contact you.
15 ;department=Your Department
16 ;organization=Your Company, Inc.
24 ; Specify bind address and port number. Default is
30 ; Our entity identifier (Should generally be the MAC address of the
31 ; machine it's running on. Defaults to the first eth address, but you
32 ; can override it here, as long as you set it to the MAC of *something*
35 ;entityid=00:07:E9:3B:76:60
37 ; This defines the max depth in which to search the DUNDi system.
38 ; Note that the maximum time that we will wait for a response is
39 ; (2000 + 200 * ttl) ms.
43 ; If we don't get ACK to our DPDISCOVER within 2000ms, and autokill is set
44 ; to yes, then we cancel the whole thing (that's enough time for one
45 ; retransmission only). This is used to keep things from stalling for a long
46 ; time for a host that is not available, but would be ill advised for bad
47 ; connections. In addition to 'yes' or 'no' you can also specify a number
48 ; of milliseconds. See 'qualify' for individual peers to turn on for just
53 ; pbx_dundi creates a rotating key called "secret", under the family
54 ; 'secretpath'. The default family is dundi (resulting in
55 ; the key being held at dundi/secret).
59 ; The 'storehistory' option (also changeable at runtime with
60 ; 'dundi store history' and 'dundi no store history') will
61 ; cause the DUNDi engine to keep track of the last several
62 ; queries and the amount of time each query took to execute
63 ; for the purpose of tracking slow nodes. This option is
64 ; off by default due to performance impacts.
70 ; The "mappings" section maps DUNDi contexts
71 ; to contexts on the local asterisk system. Remember
72 ; that numbers that are made available under the e164
73 ; DUNDi context are regulated by the DUNDi General Peering
74 ; Agreement (GPA) if you are a member of the DUNDi E.164
77 ; dundi_context => local_context,weight,tech,dest[,options]]
79 ; 'dundi_context' is the name of the context being requested
80 ; within the DUNDi request
82 ; 'local_context' is the name of the context on the local system
83 ; in which numbers can be looked up for which responses shall be given.
85 ; 'weight' is the weight to use for the responses provided from this
86 ; mapping. The number must be >= 0 and < 60000. Since it is totally
87 ; valid to receive multiple reponses to a query, responses received
88 ; with a lower weight are tried first. Note that the weight has a
89 ; special meaning in the e164 context - see the GPA for more details.
91 ; 'tech' is the technology to use (IAX, SIP, H323)
93 ; 'dest' is the destination to supply for reaching that number. The
94 ; following variables can be used in the destination string and will
95 ; be automatically substituted:
96 ; ${NUMBER}: The number being requested
97 ; ${IPADDR}: The IP address to connect to
98 ; ${SECRET}: The current rotating secret key to be used
100 ; Further options may include:
102 ; nounsolicited: No unsolicited calls of any type permitted via this
104 ; nocomunsolicit: No commercial unsolicited calls permitted via
106 ; residential: This number is known to be a residence
107 ; commercial: This number is known to be a business
108 ; mobile: This number is known to be a mobile phone
109 ; nocomunsolicit: No commercial unsolicited calls permitted via
111 ; nopartial: Do not search for partial matches
113 ; There *must* exist an entry in mappings for DUNDi to respond
114 ; to any request, although it may be empty.
116 ;e164 => dundi-e164-canonical,0,IAX2,dundi:${SECRET}@${IPADDR}/${NUMBER},nounsolicited,nocomunsolicit,nopartial
117 ;e164 => dundi-e164-customers,100,IAX2,dundi:${SECRET}@${IPADDR}/${NUMBER},nounsolicited,nocomunsolicit,nopartial
118 ;e164 => dundi-e164-via-pstn,400,IAX2,dundi:${SECRET}@${IPADDR}/${NUMBER},nounsolicited,nocomunsolicit,nopartial
120 ;digexten => default,0,IAX2,guest@lappy/${NUMBER}
126 ; The remaining sections represent the peers
127 ; that we fundamentally trust. The section name
128 ; represents the name and optionally at a specific
129 ; DUNDi context if you want the trust to be established
130 ; for only a specific DUNDi context.
132 ; inkey - What key they will be authenticating to us with
134 ; outkey - What key we use to authenticate to them
136 ; host - What their host is
138 ; order - What search order to use. May be 'primary', 'secondary',
139 ; 'tertiary' or 'quartiary'. In large systems, it is beneficial
140 ; to only query one up-stream host in order to maximize caching
141 ; value. Adding one with primary and one with secondary gives you
142 ; redundancy without sacraficing performance.
144 ; include - Includes this peer when searching a particular context
145 ; for lookup (set "all" to perform all lookups with that
146 ; host. This is also the context in which peers are permitted
149 ; noinclude - Disincludes this peer when searching a particular context
150 ; for lookup (set "all" to perform no lookups with that
153 ; permit - Permits this peer to search a given DUNDi context on
154 ; the local system. Set "all" to permit this host to
155 ; lookup all contexts. This is also a context for which
156 ; we will create/forward PRECACHE commands.
158 ; deny - Denies this peer to search a given DUNDi context on
159 ; the local system. Set "all" to deny this host to
160 ; lookup all contexts.
162 ; model - inbound, outbound, or symmetric for whether we receive
163 ; requests only, transmit requests only, or do both.
165 ; precache - Utilize/Permit precaching with this peer (to pre
166 ; cache means to provide an answer when no request
167 ; was made and is used so that machines with few
168 ; routes can push those routes up a to a higher level).
169 ; outgoing means we send precache routes to this peer,
170 ; incoming means we permit this peer to send us
171 ; precache routes. symmetric means we do both.
173 ; Note: You cannot mix symmetric/outbound model with symmetric/inbound
174 ; precache, nor can you mix symmetric/inbound model with symmetric/outbound
178 ; The '*' peer is special and matches an unspecified entity
182 ; Sample Primary e164 DUNDi peer
186 ;host = 64.215.96.114
194 ; Sample Secondary e164 DUNDi peer
198 ;host = misery.digium.com
207 ; Sample "push mode" downstream host
215 ;include = e164 ; In this case used only for precaching
220 ; Sample "push mode" upstream host
225 ;host = 216.207.245.34
228 ;permit = all ; In this case used only for precaching