<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>
Ian