<div dir="ltr"><div>Some ideas:</div><div><br></div><div>In the ROUTE_REQUEST or BRANCH_ROUTE, you might do something like this to set the profile for the specific gateway:<br><br>set_dlg_profile("dest_gw","$rd");<br><br>Then you can check it in prior ROUTE_REQUEST logic before t_relay'ing the INVITE:<br><br>if (get_profile_size("dest_gw","$rd","$var(dest_gw_count)"))<br>{                <br>    if ($var(dest_gw_count)>$avp(gw_max_call_limit)) {<br>        xlog("LIMIT: Call $ci - Max call limit hit on $rd \n");<br>        <br>    }<br>}<br><br></div>Make sure to clear the unset the profile in a FAILURE_ROUTE if you are using gateway failover.<br><div><br><br><div class="gmail_extra"><div class="gmail_quote">On Wed, Dec 13, 2017 at 8:20 AM, Matine Tinthaitae <span dir="ltr"><<a href="mailto:fehmfehmfehmfehmfehm@gmail.com" target="_blank">fehmfehmfehmfehmfehm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Thank you for replying.<br></div>That's what the tutorial i linked used so i'm still stuck. Do you have anything more specific?<br></div>My problem is that i can filter on anything on the incoming invite, but i don't see how i filter on destination gateway.<span class="gmail-HOEnZb"><font color="#888888"><br><br></font></span></div><span class="gmail-HOEnZb"><font color="#888888">//Matine</font></span><div><div class="gmail-h5"><br><div><div><div class="gmail_extra"><br><div class="gmail_quote">2017-12-13 15:04 GMT+01:00 Aqs Younas <span dir="ltr"><<a href="mailto:aqsyounas@gmail.com" target="_blank">aqsyounas@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Check profiling in dialog module<div><br></div><div><a href="http://www.opensips.org/html/docs/modules/2.3.x/dialog.html" target="_blank">http://www.opensips.org/html/d<wbr>ocs/modules/2.3.x/dialog.html</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="gmail-m_7881339211173384563h5">On 13 December 2017 at 18:53, Matine Tinthaitae <span dir="ltr"><<a href="mailto:fehmfehmfehmfehmfehm@gmail.com" target="_blank">fehmfehmfehmfehmfehm@gmail.co<wbr>m</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-m_7881339211173384563h5"><div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>I have a opensips installation which receives calls from two gateways and sends it out to a couple PBXes depending on dr_rules.<br><br></div>I'd like to limit the concurrent calls depending on destination but i can't find any way to do this. I've looked at <a href="http://www.opensips.org/Documentation/Tutorials-ConcurrentCallsLimitation" target="_blank">http://www.opensips.org/Docume<wbr>ntation/Tutorials-ConcurrentCa<wbr>llsLimitation</a> but as far as i understand this looks at the source ip and blocks it there. I need to limit per destination.<br><br></div>Even better would be to somehow limit per total from/to a gateway but that isn't really necessary right now.<br><br></div>I hope someone can point me in the right direction!<span class="gmail-m_7881339211173384563m_-5046337595845085584HOEnZb"><font color="#888888"><br><br></font></span></div><span class="gmail-m_7881339211173384563m_-5046337595845085584HOEnZb"><font color="#888888">//Matine<br></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div></div></div></div></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div></div>