| 
									
										
										
										
											2007-07-26 14:49:51 +00:00
										 |  |  | \url{http://www.dundi.com} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-10-18 21:45:13 +00:00
										 |  |  | Mark Spencer, Digium, Inc. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DUNDi is essentially a trusted, peer-to-peer system for being able to | 
					
						
							|  |  |  | call any phone number from the Internet.  DUNDi works by creating a | 
					
						
							|  |  |  | network of nodes called the "DUNDi E.164 Trust Group" which are bound by | 
					
						
							|  |  |  | a common peering agreement known as the General Peering Agreement or | 
					
						
							|  |  |  | GPA.  The GPA legally binds the members of the Trust Group to provide | 
					
						
							|  |  |  | good-faith accurate information to the other nodes on the network, and | 
					
						
							|  |  |  | provides standards by which the community can insure the integrity of | 
					
						
							|  |  |  | the information on the nodes themselves.  Unlike ENUM or similar | 
					
						
							|  |  |  | systems, DUNDi is explicitly designed to preclude any necessity for a | 
					
						
							|  |  |  | single centralized system which could be a source of fees, regulation, | 
					
						
							|  |  |  | etc. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Much less dramatically, DUNDi can also be used within a private | 
					
						
							|  |  |  | enterprise to share a dialplan efficiently between multiple nodes, | 
					
						
							| 
									
										
										
										
											2006-09-11 17:02:37 +00:00
										 |  |  | without incurring a risk of a single point of failure.  In this way, | 
					
						
							| 
									
										
										
										
											2004-10-18 21:45:13 +00:00
										 |  |  | administrators can locally add extensions which become immediately | 
					
						
							|  |  |  | available to the other nodes in the system. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-07-26 14:49:51 +00:00
										 |  |  | For more information visit \url{http://www.dundi.com} | 
					
						
							| 
									
										
										
										
											2007-04-28 19:53:12 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | \section{DUNDIQUERY and DUNDIRESULT} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The DUNDIQUERY and DUNDIRESULT dialplan functions will let you initiate | 
					
						
							|  |  |  | a DUNDi query from the dialplan, see how many results there are, and access | 
					
						
							|  |  |  | each one.  Here is some example usage: | 
					
						
							| 
									
										
										
										
											2007-10-15 13:12:51 +00:00
										 |  |  | \begin{astlisting} | 
					
						
							| 
									
										
										
										
											2007-04-28 19:53:12 +00:00
										 |  |  | \begin{verbatim} | 
					
						
							| 
									
										
										
										
											2007-10-12 15:50:29 +00:00
										 |  |  | exten => 1,1,Set(ID=${DUNDIQUERY(1,dundi_test,b)})
 | 
					
						
							|  |  |  | exten => 1,n,Set(NUM=${DUNDIRESULT(${ID},getnum)}) | 
					
						
							| 
									
										
										
										
											2007-04-28 19:53:12 +00:00
										 |  |  | exten => 1,n,NoOp(There are ${NUM} results)
 | 
					
						
							| 
									
										
										
										
											2007-10-15 13:12:51 +00:00
										 |  |  | exten => 1,n,Set(X=1) | 
					
						
							| 
									
										
										
										
											2007-04-28 19:53:12 +00:00
										 |  |  | exten => 1,n,While($[${X} <= ${NUM}])
 | 
					
						
							| 
									
										
										
										
											2007-10-15 13:12:51 +00:00
										 |  |  | exten => 1,n,NoOp(Result ${X} is ${DUNDIRESULT(${ID},${X})}) | 
					
						
							| 
									
										
										
										
											2007-04-28 19:53:12 +00:00
										 |  |  | exten => 1,n,Set(X=$[${X} + 1]) | 
					
						
							|  |  |  | exten => 1,n,EndWhile | 
					
						
							|  |  |  | \end{verbatim} | 
					
						
							| 
									
										
										
										
											2007-10-15 13:12:51 +00:00
										 |  |  | \end{astlisting} |