<div dir="ltr"><div><extension name="test1" ></div><div> <condition field="caller_id_number" expression="1000$" /></div><div> <condition field="destination_number" expression="^(61\d{7})$" ></div>
<div> <action application="limit" data="hash fraud_protection calls_max_intl 3 !NORMAL_TEMPORARY_FAILURE" /></div><div> <action application="set" data="RECORD_TITLE=Recording ${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}" /></div>
<div> <action application="set" data="media_bug_answer_req=true" /></div><div> <action application="set" data="recording_follow_transfer=true" /></div><div>
<action application="set" data="continue_on_fail=true" /></div>
<div> <action application="set" data="hangup_after_bridge=true" /></div><div> <action application="bridge" data="{codec_string='PCMA'}sofia/gateway/${distributor(distributor1)}/$1" loop="2" /></div>
<div> </condition></div><div></extension></div><div><br></div><div><br></div><div><extension name="test2" ></div><div> <condition field="caller_id_number" expression="2000" /></div>
<div> <condition field="destination_number" expression="^(61\d{7})$" ></div><div> <action application="limit" data="hash fraud_protection calls_max_intl 1 !NORMAL_TEMPORARY_FAILURE" /></div>
<div> <action application="set" data="media_bug_answer_req=true" /></div><div> <action application="set" data="recording_follow_transfer=true" /></div><div>
<action application="set" data="continue_on_fail=true" /></div>
<div> <action application="set" data="hangup_after_bridge=true" /></div><div> <action application="bridge" data="{codec_string='PCMA'}sofia/gateway/${distributor(distributor2)}/$1" loop="3" /></div>
<div> </condition></div><div></extension></div><div><br></div><div><br></div><div>logs:</div><div><br></div><div>first call:</div><div><br></div><div>EXECUTE sofia/internal/<a href="mailto:1000@sip1.linuxtechnology.com.pl">1000@sip1.linuxtechnology.com.pl</a> limit(hash fraud_protection calls_max_intl 3 !NORMAL_TEMPORARY_FAILURE)</div>
<div>2013-03-29 06:12:22.954993 [INFO] switch_limit.c:126 incr called: fraud_protection_calls_max_intl max:3, interval:0</div><div>2013-03-29 06:12:22.954993 [INFO] mod_hash.c:202 Usage for fraud_protection_calls_max_intl is now 1/3</div>
<div><br></div><div><br></div><div>During first call, I've tried to establish second call:</div><div><br></div><div>EXECUTE sofia/internal/<a href="mailto:2000@sip1.linuxtechnology.com.pl">2000@sip1.linuxtechnology.com.pl</a> limit(hash fraud_protection calls_max_intl 1 !NORMAL_TEMPORARY_FAILURE)</div>
<div>2013-03-29 06:12:31.915022 [INFO] switch_limit.c:126 incr called: fraud_protection_calls_max_intl max:1, interval:0</div><div>2013-03-29 06:12:31.915022 [INFO] mod_hash.c:189 Usage for fraud_protection_calls_max_intl is already at max value (1)</div>
<div>2013-03-29 06:12:31.915022 [DEBUG] switch_channel.c:3011 (sofia/internal/<a href="mailto:2000@sip1.linuxtechnology.com.pl">2000@sip1.linuxtechnology.com.pl</a>) Callstate Change RINGING -> HANGUP</div><div>2013-03-29 06:12:31.915022 [NOTICE] mod_dptools.c:4326 Hangup sofia/internal/<a href="mailto:2000@sip1.linuxtechnology.com.pl">2000@sip1.linuxtechnology.com.pl</a> [CS_EXECUTE] [NORMAL_TEMPORARY_FAILURE]</div>
<div><br></div><div style>Regards.</div><div style>Tom</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 28, 2013 at 11:59 PM, Avi Marcus <span dir="ltr"><<a href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Can you give some of your dialplan and logs? It sounds like you're using it fine.<div>Do you have transfers going on in the dialplan?</div>
<div><span class="HOEnZb"><font color="#888888"><br clear="all"><div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi</span><br>
</div></div></font></span><div><div class="h5"><br><div class="gmail_quote">On Fri, Mar 29, 2013 at 12:36 AM, Tomasz Szuster <span dir="ltr"><<a href="mailto:tomasz.szuster@gmail.com" target="_blank">tomasz.szuster@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">Hi Nick.</p>
<p dir="ltr">I used different gateways.</p>
<p dir="ltr">Regards<br>
Tom</p><div><div>
<div class="gmail_quote">On 28 Mar 2013 23:21, "Nick Vines" <<a href="mailto:jnvines@gmail.com" target="_blank">jnvines@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Try changing "<span style="font-family:arial,sans-serif;font-size:12px">gateway" to something like "gateway_dialplan1" and "gateway_dialplan2".</span> You are just querying the same limit data otherwise. </div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 28, 2013 at 3:02 PM, Tomasz Szuster <span dir="ltr"><<a href="mailto:tomasz.szuster@gmail.com" target="_blank">tomasz.szuster@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<div><br></div><div>I've set up limit for outgoing calls using <a href="http://wiki.freeswitch.org/wiki/FS_weekly_2010_12_01" target="_blank">http://wiki.freeswitch.org/wiki/FS_weekly_2010_12_01</a>, especially by adding:</div>
<div>
<br></div><div><span style="color:rgb(255,255,255);font-size:12px;background-color:rgb(95,95,95)">limit hash fraud_protection calls_max_intl 32 !NORMAL_TEMPORARY_FAILURE</span><span style="color:rgb(255,255,255);font-size:12px"> </span><span style="font-size:12px">to the dialplan.</span></div>
<div><span style="font-size:12px"><br></span></div><div><span style="font-size:12px">When I created second dialplan with different call_max_intl value freeswitch did not get it.</span></div><div><span style="font-size:12px">It has still remember call_max_intl 32 from first dialplan.</span></div>
<div><span style="font-size:12px"><br></span></div><div><span style="font-size:12px">At console I've got:</span></div><div><span style="font-size:12px"><br></span></div><div><span style="font-size:12px"><font color="#33cc00"><b>Usage for fraud_protection_calls_max_intl is already at max value (32)</b></font></span></div>
<div><br></div><div><span style="font-size:12px">I've also try with:</span></div><div><span style="font-size:12px"><br></span></div><div><span style="font-size:12px"><action application="limit_execute" data="hash outbound gateway 12 bridge sofia/gateway/gateway/$1" /></span></div>
<div><span style="font-size:12px"><br></span></div><div><span style="font-size:12px">Result was the same as for limit hash.</span></div><div><span style="font-size:12px"><br></span></div><div><span style="font-size:12px">My goal is to create dialplans with different calls max where calls max value are treated separately.</span><span style="font-size:12px"> </span></div>
<div><div><br></div><div>Can you please advice how to proceed, where to look ?</div><span><font color="#888888">-- <br>Regards.<br>Tom</font></span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Pozdrawiam<br>Tomasz
</div>