Hi,<div><br></div><div>Is it possible for the Dialplan module and Loadbalancer to work together?</div><div>The loadbalancer tutorial <a href="http://www.opensips.org/index.php?n=Resources.DocsTutLoadbalancing">http://www.opensips.org/index.php?n=Resources.DocsTutLoadbalancing</a> is a very small script.</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div>So for instance a Regular Expression ^883[0-9]{12}.* is given attribute pstn and ^/*68. is media. (this is in Dialplan module)</div><div>In Dialplan (opensips-cp) you can set and modify the attributes, this is with avpops module.</div>
<div><br></div><div>What I am trying to accomplish is a proxy registrar that maintains state with a loadbalancer but sending all calls to Asterisk or Media servers also for nat.</div><div>For usrloc (and db aliasses to) OpenSIPS must check itself and then invite both extensions and send both to a pbx from the loadbalancer set.</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>I am not sure if this is possible because the loadbalancer tutorial shows <span class="Apple-style-span" style="font-family: &#39;Lucida Console&#39;, &#39;Andale Mono&#39;, &#39;Courier New&#39;, Courier; font-size: 12px; color: rgb(102, 102, 102); line-height: 14px; white-space: pre; "> </span>if ($rU=~&quot;^1&quot;) {  #looks like a Conference call<span class="Apple-style-span" style="font-family: &#39;Lucida Console&#39;, &#39;Andale Mono&#39;, &#39;Courier New&#39;, Courier; font-size: 12px; color: rgb(102, 102, 102); line-height: 14px; white-space: pre; "> </span>load_balance(&quot;1&quot;,&quot;conf&quot;)</div>
<div>But could you combine this with Dialplan attributes? So everytime we add a destination set the attribute (usrloc, pstn, media, softswitch) in Dialplan,</div><div>And loadbalancer knows what to do next. This way one could use several distinct destination for attribute.</div>
<div>The disadvantage of <span class="Apple-style-span" style="font-family: &#39;Lucida Console&#39;, &#39;Andale Mono&#39;, &#39;Courier New&#39;, Courier; font-size: 12px; color: rgb(102, 102, 102); line-height: 14px; white-space: pre; "> </span>if ($rU=~&quot;^1&quot;) { is that it will becomes a mess once you add to many. With dialplan one can also rewrite and use different dialplans.</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>So in Dialplan module one sets the following attributes:</div><div>usrloc &gt; local extensions and alias send to a pbx or media server.</div>
<div>pstn &gt; general pstn </div><div>media &gt; media servers vm / chat etc</div><div>softswitch &gt; a special pstn destination</div><div>announcements &gt; announcements or something</div><div><br></div><div>Any ideas how to set this up?</div>
<div><br></div><div>Thanks </div><div><br></div><div>Albert</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8">