diff options
Diffstat (limited to 'doc/tex/dundi.tex')
-rw-r--r-- | doc/tex/dundi.tex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/tex/dundi.tex b/doc/tex/dundi.tex index c61ddb051..aa2fbb24c 100644 --- a/doc/tex/dundi.tex +++ b/doc/tex/dundi.tex @@ -27,15 +27,15 @@ For more information visit \url{http://www.dundi.com} 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: - +\begin{astlisting} \begin{verbatim} exten => 1,1,Set(ID=${DUNDIQUERY(1,dundi_test,b)}) exten => 1,n,Set(NUM=${DUNDIRESULT(${ID},getnum)}) exten => 1,n,NoOp(There are ${NUM} results) -exten => 1,n,Set(X=1) +exten => 1,n,Set(X=1) exten => 1,n,While($[${X} <= ${NUM}]) -exten => 1,n,NoOp(Result ${X} is ${DUNDIRESULT(${ID},${X})}) +exten => 1,n,NoOp(Result ${X} is ${DUNDIRESULT(${ID},${X})}) exten => 1,n,Set(X=$[${X} + 1]) exten => 1,n,EndWhile \end{verbatim} - +\end{astlisting} |