<div dir="ltr">Hello All, <br><br>Iam trying to achive a simple load balancing with dundi.<br><br>Here i have three asterisk boxes like below.<br><br><br>*.*.*.121&nbsp; which is the dundi server<br><br>*.*.*.137 &quot;A&quot; Peer which has the 1000 phone registerd to it<br>
<br>*.*.*.204 &quot;B&quot; Peer which has the 200 phone registered to it.<br><br>The expected behavior of&nbsp; my setup is once i dial from 1000 phone it has to goto &quot;B&quot; peer using the &quot;.121&quot; dundi server.<br>
<br>Iam getting confused with the public key / private key stuff here.<br><br>Iam using the &quot;astgenkey -n &quot; command to generate them .<br><br>Can any body help me by explaining , what keys i have to generate on each server and which keys i need to copy to which server .<br>
<br>regards<br><br><br><br>All the conf file stuff is is like below <br><br>*.*.*.137<br><br>iax.conf<br><br>[priv]<br>type=friend<br>dbsecret=dundi/secret<br>context=incomingdundi<br><br><br>dundi.conf<br><br>[mappings]<br>
priv =&gt; sipregistration,0,IAX2,priv:${SECRET}@*.*.*.137/${NUMBER},nopartial<br><br><br>[00:0F:E2:76:4B:33]<br>model = symmetric<br>host = *.*.*.21<br>inkey = dundincomingseven<br>outkey = dundiseven<br>include = priv<br>
permit = priv<br>qualify = yes<br>order = primary<br><br><br>*.*.*.204<br><br>iax.conf<br><br>[priv]<br>type=friend<br>dbsecret=dundi/secret<br>context=incomingdundi<br><br>dundi.conf<br><br>[mappings]<br>priv =&gt; sipregistration,0,IAX2,priv:${SECRET}@*.*.*.204/${NUMBER},nopartial<br>
;<br><br>[00:0F:E2:76:4B:33]<br>model = symmetric<br>host = *.*.*.21<br>inkey = dundiincomingfour<br>outkey = dundifour<br>include = priv<br>permit = priv<br>qualify = yes<br>order = primary<br><br>*.*.*.21<br><br>iax.conf<br>
[priv]<br>type=user<br>context=local-custom<br>disallow=all<br>allow=ulaw<br>allow=alaw<br>allow=gsm<br><br><br>dundi.conf<br><br><br>[mappings]<br>priv =&gt; dundi-priv-localcustom,0,IAX2,priv:password@*.*.*.21/${NUMBER}<br>
<br>[00:11:0A:34:29:57]<br>model = symmetric<br>host = *.*.*.137<br>inkey = dundi<br>outkey = dundi<br>include = priv<br>permit = priv<br>qualify = yes<br>order = primary<br><br>[00:11:0A:34:29:43]<br>model = symmetric<br>
host = *.*.*.204<br>inkey = dundi<br>outkey = dundi<br>include = priv<br>permit = priv<br>qualify = yes<br>order = primary<br>.<br><br><br><br><br><br></div>