<div dir="ltr">Hi,<div><br></div><div style>You've metioned this already in your code:</div><div style><br></div><div style><span style="font-family:arial,sans-serif;font-size:13px">if(ds_is_from_list("1"))</span><br>
</div><div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Is this not working for you?</span></div><div style><br></div>
<div style><font face="arial, sans-serif">Regards,</font></div><div style><font face="arial, sans-serif">Sammy</font></div><div style><font face="arial, sans-serif"><br></font></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Wed, Jan 23, 2013 at 10:44 AM, Ian French <span dir="ltr"><<a href="mailto:fretec@gmail.com" target="_blank">fretec@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br> I'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've configured my [TOASTERISK] route</blockquote><br>
route[TOASTERISK] {<br>
ds_select_dst("1","4");<br>
$sht(forw=>$ft)=$du;<br>
sl_send_reply("100","Trying");<br>
xlog("L_INFO","INVITE: INVITE [$tU] Passed to [$du] Asterisk Cluster [$rm:$au].\n");<br>
route(RELAY);<br>
exit;<br>
<br>
How can i achieve the same for my [FROMASTERISK] route as now with <br>
<br>
asterisk.bindip = "x.x.x.x" desc "Asterisk IP Address"<br>
asterisk.bindport = "5060" desc "Asterisk Port"<br>
<br>
and<br>
<br>
route[FROMASTERISK] {<br>
if($si==$sel(cfg_get.asterisk.bindip)<br>
&& $sp==$sel(cfg_get.asterisk.bindport))<br>
xlog("L_INFO","INVITE: INVITE Passed From [$fu] Asterisk Cluster To [$rm:$au].\n");<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("1"))<br>
$sht(forw=>$ft)=$si;<br>
xlog("L_INFO","INVITE: INVITE Passed From [$fu] Asterisk Cluster To [$rm:$au].\n");<br>
return 1;<br>
return -1;<br>
}<br>
<br>
Can you help?<br>
<br>
Thanks in advance <br><span class="HOEnZb"><font color="#888888">
Ian
</font></span><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">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>