<div dir="ltr">Here you go,<div><br></div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif">if(ds_is_from_list(&quot;1&quot;))<b><font size="4">{</font></b></span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">    $sht(forw=&gt;$ft)=$si;</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">      xlog(&quot;L_INFO&quot;,&quot;INVITE: INVITE Passed From [$fu] Asterisk Cluster To [$rm:$au].\n&quot;);</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">        return 1;</span></div><div><font size="4"> <b>}</b></font><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">        return -1;</span><br>
</div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></span></div>Without these you&#39;re always going to see the xlog message printed and return 1. Now these baces will ensure that the three lines are executed only for the IPs which match the dispatcher table entries.<br>
<br>Thanks,<br>Sammy</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 29, 2013 at 10:55 PM, Ian French <span dir="ltr">&lt;<a href="mailto:fretec@gmail.com" target="_blank">fretec@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"><br><br><div class="gmail_quote">On 24 January 2013 08:16,  <span dir="ltr">&lt;<a href="mailto:sr-users-request@lists.sip-router.org" target="_blank">sr-users-request@lists.sip-router.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Send sr-users mailing list submissions to<br>
        <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<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>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:sr-users-request@lists.sip-router.org" target="_blank">sr-users-request@lists.sip-router.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:sr-users-owner@lists.sip-router.org" target="_blank">sr-users-owner@lists.sip-router.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of sr-users digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: Asterisk and dispatcher (SamyGo)<br>
   2. Re: Asterisk and dispatcher (SamyGo)<br>
   3. Kamailio Multi tenant as registrar server ony (andrea mucci)<br>
   4. help me about siremis. (???)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 23 Jan 2013 22:26:26 -0800<br>
From: SamyGo &lt;<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>&gt;<br>
Subject: Re: [SR-Users] Asterisk and dispatcher<br>
To: &quot;SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -<br>
        Users   Mailing List&quot; &lt;<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:CAJUJwtjjg%2BiGH6%2BQuDtRkEH%2Bmn%2BdkiObUFcPyNMKTv-0xHnYMQ@mail.gmail.com" target="_blank">CAJUJwtjjg+iGH6+QuDtRkEH+mn+dkiObUFcPyNMKTv-0xHnYMQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<div><div class="h5"><br>
<br>
Hi,<br>
<br>
You&#39;ve metioned this already in your code:<br>
<br>
if(ds_is_from_list(&quot;1&quot;))<br>
<br>
Is this not working for you?<br>
<br>
Regards,<br>
Sammy<br>
<br>
<br>
<br>
On Wed, Jan 23, 2013 at 10:44 AM, Ian French &lt;<a href="mailto:fretec@gmail.com" target="_blank">fretec@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;&gt;     I&#39;ve been working my way through this tutorial (<br>
&gt;&gt; <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>)<br>
&gt;&gt; and all it working well thanks. In the other benifits section you mention<br>
&gt;&gt; that this configuration can be used with multiple instances of Asterisk.<br>
&gt;&gt; I&#39;ve configured my [TOASTERISK] route<br>
&gt;<br>
&gt;<br>
&gt; route[TOASTERISK] {<br>
&gt;                 ds_select_dst(&quot;1&quot;,&quot;4&quot;);<br>
&gt;                 $sht(forw=&gt;$ft)=$du;<br>
&gt;                 sl_send_reply(&quot;100&quot;,&quot;Trying&quot;);<br>
&gt;         xlog(&quot;L_INFO&quot;,&quot;INVITE: INVITE [$tU] Passed to [$du] Asterisk<br>
&gt; Cluster [$rm:$au].\n&quot;);<br>
&gt;         route(RELAY);<br>
&gt;         exit;<br>
&gt;<br>
&gt; How can i achieve the same for my [FROMASTERISK] route as now with<br>
&gt;<br>
&gt; asterisk.bindip = &quot;x.x.x.x&quot; desc &quot;Asterisk IP Address&quot;<br>
&gt; asterisk.bindport = &quot;5060&quot; desc &quot;Asterisk Port&quot;<br>
&gt;<br>
&gt; and<br>
&gt;<br>
&gt; route[FROMASTERISK] {<br>
&gt;         if($si==$sel(cfg_get.asterisk.bindip)<br>
&gt;                            &amp;&amp; $sp==$sel(cfg_get.asterisk.bindport))<br>
&gt;                 xlog(&quot;L_INFO&quot;,&quot;INVITE: INVITE Passed From [$fu] Asterisk<br>
&gt; Cluster To [$rm:$au].\n&quot;);<br>
&gt;                 return 1;<br>
&gt;         return -1;<br>
&gt; }<br>
&gt;<br>
&gt; This allows calls only from cfg_get.asterisk.bindip (single gateway) where<br>
&gt; I would like gateways in the dispatcher list to be selected and marked as a<br>
&gt; positive match<br>
&gt;<br>
&gt; if(ds_is_from_list(&quot;1&quot;))<br>
&gt; $sht(forw=&gt;$ft)=$si;<br>
&gt;                 xlog(&quot;L_INFO&quot;,&quot;INVITE: INVITE Passed From [$fu] Asterisk<br>
&gt; Cluster To [$rm:$au].\n&quot;);<br>
&gt;                 return 1;<br>
&gt;            return -1;<br>
&gt; }<br>
&gt;<br>
&gt; Can you help?<br>
&gt;<br>
&gt; Thanks in advance<br>
&gt; Ian<br>
&gt; _______________________________________________<br>
&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt; <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
&gt; <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>
&gt;<br>
&gt;<br></div></div>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20130123/41c3694d/attachment-0001.htm" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20130123/41c3694d/attachment-0001.htm</a>&gt;<br>


<br>
------------------------------</blockquote><div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Sammy but I am confused what curly brackets am i missing<br>

</blockquote><div class="im"><div><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></div></div><div>Thks in advance <br> Ian</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Message: 2<br>
Date: Wed, 23 Jan 2013 22:29:25 -0800<br>
From: SamyGo &lt;<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>&gt;<br>
Subject: Re: [SR-Users] Asterisk and dispatcher<br>
To: &quot;SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -<br>
        Users   Mailing List&quot; &lt;<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:CAJUJwtgMna%2B5S5WF29pn__xpb-NQoSyCCYibZyRRGGT2K0r3Ng@mail.gmail.com" target="_blank">CAJUJwtgMna+5S5WF29pn__xpb-NQoSyCCYibZyRRGGT2K0r3Ng@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<div><div class="h5"><br>
<br>
Except that I find missing curly brackets for the if() condition which will<br>
always return 1/positive.<br>
<br>
<br>
On Wed, Jan 23, 2013 at 10:26 PM, SamyGo &lt;<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; You&#39;ve metioned this already in your code:<br>
&gt;<br>
&gt; if(ds_is_from_list(&quot;1&quot;))<br>
&gt;<br>
&gt; Is this not working for you?<br>
&gt;<br>
&gt; Regards,<br>
&gt; Sammy<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jan 23, 2013 at 10:44 AM, Ian French &lt;<a href="mailto:fretec@gmail.com" target="_blank">fretec@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;&gt;     I&#39;ve been working my way through this tutorial (<br>
&gt;&gt;&gt; <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>)<br>
&gt;&gt;&gt; and all it working well thanks. In the other benifits section you mention<br>
&gt;&gt;&gt; that this configuration can be used with multiple instances of Asterisk.<br>
&gt;&gt;&gt; I&#39;ve configured my [TOASTERISK] route<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; route[TOASTERISK] {<br>
&gt;&gt;                 ds_select_dst(&quot;1&quot;,&quot;4&quot;);<br>
&gt;&gt;                 $sht(forw=&gt;$ft)=$du;<br>
&gt;&gt;                 sl_send_reply(&quot;100&quot;,&quot;Trying&quot;);<br>
&gt;&gt;         xlog(&quot;L_INFO&quot;,&quot;INVITE: INVITE [$tU] Passed to [$du] Asterisk<br>
&gt;&gt; Cluster [$rm:$au].\n&quot;);<br>
&gt;&gt;         route(RELAY);<br>
&gt;&gt;         exit;<br>
&gt;&gt;<br>
&gt;&gt; How can i achieve the same for my [FROMASTERISK] route as now with<br>
&gt;&gt;<br>
&gt;&gt; asterisk.bindip = &quot;x.x.x.x&quot; desc &quot;Asterisk IP Address&quot;<br>
&gt;&gt; asterisk.bindport = &quot;5060&quot; desc &quot;Asterisk Port&quot;<br>
&gt;&gt;<br>
&gt;&gt; and<br>
&gt;&gt;<br>
&gt;&gt; route[FROMASTERISK] {<br>
&gt;&gt;         if($si==$sel(cfg_get.asterisk.bindip)<br>
&gt;&gt;                            &amp;&amp; $sp==$sel(cfg_get.asterisk.bindport))<br>
&gt;&gt;                 xlog(&quot;L_INFO&quot;,&quot;INVITE: INVITE Passed From [$fu] Asterisk<br>
&gt;&gt; Cluster To [$rm:$au].\n&quot;);<br>
&gt;&gt;                 return 1;<br>
&gt;&gt;         return -1;<br>
&gt;&gt; }<br>
&gt;&gt;<br>
&gt;&gt; This allows calls only from cfg_get.asterisk.bindip (single gateway)<br>
&gt;&gt; where I would like gateways in the dispatcher list to be selected and<br>
&gt;&gt; marked as a positive match<br>
&gt;&gt;<br>
&gt;&gt; if(ds_is_from_list(&quot;1&quot;))<br>
&gt;&gt; $sht(forw=&gt;$ft)=$si;<br>
&gt;&gt;                 xlog(&quot;L_INFO&quot;,&quot;INVITE: INVITE Passed From [$fu] Asterisk<br>
&gt;&gt; Cluster To [$rm:$au].\n&quot;);<br>
&gt;&gt;                 return 1;<br>
&gt;&gt;            return -1;<br>
&gt;&gt; }<br>
&gt;&gt;<br>
&gt;&gt; Can you help?<br>
&gt;&gt;<br>
&gt;&gt; Thanks in advance<br>
&gt;&gt; Ian<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt; <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
&gt;&gt; <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>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br></div></div>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20130123/5d18521f/attachment-0001.htm" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20130123/5d18521f/attachment-0001.htm</a>&gt;<br>


<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 23 Jan 2013 22:37:54 +0100<br>
From: andrea mucci &lt;<a href="mailto:amucci@hotmail.es" target="_blank">amucci@hotmail.es</a>&gt;<br>
Subject: [SR-Users] Kamailio Multi tenant as registrar server ony<br>
To: <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
Message-ID: &lt;BLU0-SMTP39596AF0F6043976A9F3860A8150@phx.gbl&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
Hi Gurus,<br>
<br>
i have a basic question.<br>
<br>
i have a SIP PBX server that don&#39;t have the Multi Tenant Feature or Multi Company Feature.<br>
i now that Kamailio support this feature, so<br>
<br>
is possible to use the kamailio as registrar server and redirect all the services, SUBSCRIBE, NOTIFY, and RTP to the SIP PBX with corrects headers?<br>
<br>
Thanks for your help<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 24 Jan 2013 14:11:43 +0900 (KST)<br>
From: ??? &lt;<a href="mailto:whdals0@naver.com" target="_blank">whdals0@naver.com</a>&gt;<br>
Subject: [SR-Users] help me about siremis.<br>
To: <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
Message-ID: &lt;<a href="mailto:47ea2c39c02e2ff4796fa2165b853b45@tweb10.nm.nhnsystem.com" target="_blank">47ea2c39c02e2ff4796fa2165b853b45@tweb10.nm.nhnsystem.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
I&#39;m developers who trying to install siremis.<br>
<br>
will go in there and install siremis website.<br>
<br>
However, server-services -&amp;gt; domain list by pressing will get the following error.<br>
?<br>
?<br>
<br>
<br>
What can I do to fix this?<br>
?<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20130124/6310de8e/attachment.htm" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20130124/6310de8e/attachment.htm</a>&gt;<br>


-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: 11.png<br>
Type: image/png<br>
Size: 53285 bytes<br>
Desc: not available<br>
URL: &lt;<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20130124/6310de8e/attachment.png" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20130124/6310de8e/attachment.png</a>&gt;<br>


-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: 22.png<br>
Type: image/png<br>
Size: 19592 bytes<br>
Desc: not available<br>
URL: &lt;<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20130124/6310de8e/attachment-0001.png" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20130124/6310de8e/attachment-0001.png</a>&gt;<br>


<br>
------------------------------<br>
<br>
_______________________________________________<div class="im"><br>
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>
<br></div>
End of sr-users Digest, Vol 92, Issue 55<br>
****************************************<br>
</blockquote></div><br>
<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>