Hi,<br><br>I&#39;m having difficulties with using DUNDi between two servers. If it were three I think I could control looping by limiting TTL, but with two I&#39;m not sure how to prevent a loop causing bad things to happen. I&#39;ve tried ttl=1 but things still blow up.<br>

<br>The DUNDi configurations are pretty simple and work just fine in both directions as long as only one of them is using the switch =&gt; DUNDi/context. dundi lookup &lt;number&gt;@dundified works great as well as test calls.<br>
<br>What is the proper method of handling DUNDi between only two servers? Should I be using a dummy context on one server to handle this?<br><br>I&#39;m listing the relevant files below for only one server for brevities sake.<br>
<br>-----------------------------------<br>dundi.conf<br>
<br>[general]<br>department=Test Lab<br>organization=My Test lab<br>locality=Anywhere<br>stateprov=CA<br>country=US<br>email=<a href="mailto:email@email.com" target="_blank">email@email.com</a><br>phone=+5555555555<br>entityid=00:11:22:33:44:55<br>

cachetime=5<br>ttl=1<br>autokill=yes<br><br>[mappings]<br>dundified =&gt; internal,0,SIP,${<a href="mailto:NUMBER%7D@server1.domain.com" target="_blank">NUMBER}@server1.domain.com</a>,nopartial<br><br>[55:44:33:22:11:00]<br>
model=symmetric<br>
host=<a href="http://server2.domain.com/" target="_blank">server2.domain.com</a><br>inkey=dundikey<br>outkey=dundikey<br>include=dundified<br>permit=dundified<br>qualify=yes<br>order=primary<br><br>-----------------------------------<br>

extensions.conf<br><br>[general]<br>static = yes<br>writeprotect = no<br>clearglobalvars = no<br><br>[globals]<br><br>[default]<br>include =&gt; internal<br>include =&gt; parkedcalls<br><br>[internal]<br>include =&gt; external<br>

include =&gt; parkedcalls<br>switch =&gt; DUNDi/dundified<br><br>exten =&gt; 300,1,Dial(SIP/300)<br>exten =&gt; 300,n,Hangup()<br>exten =&gt; 5551234567,1,Goto(300,1)<br><br>exten =&gt; 301,1,Dial(SIP/301)<br>exten =&gt; 301,n,Hangup()<br>
exten =&gt; 8885551212,1,Goto(301,1)<br><br>exten =&gt; _NXXNXXXXXX,1,Dial({$EXTEN}@voipprovider)<br>
exten =&gt; _NXXNXXXXXX,n,Hangup()<br><br>[external]<br>exten =&gt; 5551234567,1,Goto(internal,300,1)<br><br>-----------------------------------<br>sip.conf<br><br>[dundified]<br>type=friend<br>dbsecret=dundi/secret<br>context=internal<br>
<br>[voipprovider]<br>type=friend<br>host=voipprovider.web<br>dtmfmode=rfc2833<br>insecure=port,invite<br>disallow=all<br>allow=g729<br>context=external<br><br>[300]<br>type=peer<br>callerid=300<br>username=300<br>secret=secret<br>
host=dynamic<br>context=internal<br>mailbox=300@default<br>notifyringing=yes<br>notifyhold=yes<br>limitonpeers=yes<br>call-limit=2<br><br>[301]<br>
type=peer<br>
callerid=301<br>
username=301<br>
secret=secret<br>
host=dynamic<br>
context=internal<br>
mailbox=301@default<br>
notifyringing=yes<br>
notifyhold=yes<br>
limitonpeers=yes<br>
call-limit=2<br><br>Thanks in advance!<br>