<div dir="ltr">Except that I find missing curly brackets for the if() condition which will always return 1/positive.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 23, 2013 at 10:26 PM, SamyGo <span dir="ltr">&lt;<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>You&#39;ve metioned this already in your code:</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">if(ds_is_from_list(&quot;1&quot;))</span><br>

</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Is this not working for you?</span></div><div><br></div>
<div><font face="arial, sans-serif">Regards,</font></div><div><font face="arial, sans-serif">Sammy</font></div><div><font face="arial, sans-serif"><br></font></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote"><div><div class="h5">On Wed, Jan 23, 2013 at 10:44 AM, Ian French <span dir="ltr">&lt;<a href="mailto:fretec@gmail.com" target="_blank">fretec@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
<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><span><font color="#888888">
Ian
</font></span><br></div></div>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>