<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>    I&#39;ve been working my way through this tutorial ( <a href="http://kb.asipto.com/asterisk:realtime:kamailio-3.0.x-asterisk-1.6.2-astdb" target="_blank">http://kb.asipto.com/asterisk:realtime:kamailio-3.0.x-asterisk-1.6.2-astdb</a>)
 and all it working well thanks. In the other benifits section you 
mention that this configuration can be used with multiple instances of 
Asterisk. I&#39;ve configured my [TOASTERISK] route</blockquote><br>
route[TOASTERISK] {<br>
                ds_select_dst(&quot;1&quot;,&quot;4&quot;);<br>
                $sht(forw=&gt;$ft)=$du;<br>
                sl_send_reply(&quot;100&quot;,&quot;Trying&quot;);<br>
        xlog(&quot;L_INFO&quot;,&quot;INVITE: INVITE [$tU] Passed to [$du] Asterisk Cluster [$rm:$au].\n&quot;);<br>
        route(RELAY);<br>
        exit;<br>
<br>
How can i achieve the same for my [FROMASTERISK] route as now with <br>
<br>
asterisk.bindip = &quot;x.x.x.x&quot; desc &quot;Asterisk IP Address&quot;<br>
asterisk.bindport = &quot;5060&quot; desc &quot;Asterisk Port&quot;<br>
<br>
and<br>
<br>
route[FROMASTERISK] {<br>
        if($si==$sel(cfg_get.asterisk.bindip)<br>
                           &amp;&amp; $sp==$sel(cfg_get.asterisk.bindport))<br>
                xlog(&quot;L_INFO&quot;,&quot;INVITE: INVITE Passed From [$fu] Asterisk Cluster To [$rm:$au].\n&quot;);<br>
                return 1;<br>
        return -1;<br>
}<br>
 <br>
This allows calls only from cfg_get.asterisk.bindip (single gateway) 
where I would like gateways in the dispatcher list to be selected and 
marked as a positive match <br>
<br>
if(ds_is_from_list(&quot;1&quot;))<br>
$sht(forw=&gt;$ft)=$si;<br>
                xlog(&quot;L_INFO&quot;,&quot;INVITE: INVITE Passed From [$fu] Asterisk Cluster To [$rm:$au].\n&quot;);<br>
                return 1;<br>
           return -1;<br>
}<br>
<br>
Can you help?<br>
<br>
Thanks in advance <br>
Ian