Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] question about latest version of mod_limit


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
markmorreny at gmail.com
Guest





PostPosted: Thu Aug 06, 2009 4:32 am    Post subject: [Freeswitch-users] question about latest version of mod_limi Reply with quote

Hello,

I have the following setup in the dialplan.  Then, I fire up sipp to send 5calls/s and I expect to get limit-pass=false in most of the INFO output.  However, I am getting all "limit-pass=pass".

Does anyone know what is wrong with my dialplan?


 <context name="internal">

  <extension name="test-limit">

    <condition field="destination_number" expression="^9(.*)$">

        <action application="limit_hash_execute" data="192.168.1.102 6000 1/1 transfer to-next" />
        <action application="set" data="limit-pass=false"/>
        <action application="info" />
        <action application="hangup" />

    </condition>

  </extension>
    <extension name="to-next">
        <condition field="destination_number" expression="^to-next$">
        <action application="set" data="limit-pass=true"/>
        <action application="info" />
        <action application="hangup" />



    </condition>
    </extension>
</context>
Back to top
mrene_lists at avgs.ca
Guest





PostPosted: Mon Aug 10, 2009 6:04 pm    Post subject: [Freeswitch-users] question about latest version of mod_limi Reply with quote

You are using it wrong.
<action application="limit_hash_execute" data="192.168.1.102 6000 1/1
bridge sofia/gateway/etc" />

The purpose of limit_hash_execute is to have a resource that is
released if the command doesnt complete properly.
If you want to transfer when the res. is over-limit, use limit_hash,
not limit_hash_execute.

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mrene@avgs.ca




On 6-Aug-09, at 5:26 AM, mark morreny wrote:

Quote:
Hello,

I have the following setup in the dialplan. Then, I fire up sipp to
send 5calls/s and I expect to get limit-pass=false in most of the
INFO output. However, I am getting all "limit-pass=pass".

Does anyone know what is wrong with my dialplan?


<context name="internal">

<extension name="test-limit">

<condition field="destination_number" expression="^9(.*)$">

<action application="limit_hash_execute" data="192.168.1.102
6000 1/1 transfer to-next" />
<action application="set" data="limit-pass=false"/>
<action application="info" />
<action application="hangup" />

</condition>

</extension>
<extension name="to-next">
<condition field="destination_number" expression="^to-next$">
<action application="set" data="limit-pass=true"/>
<action application="info" />
<action application="hangup" />



</condition>
</extension>
</context>
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
msc at freeswitch.org
Guest





PostPosted: Mon Aug 10, 2009 6:05 pm    Post subject: [Freeswitch-users] question about latest version of mod_limi Reply with quote

Possibly the calls are being disconnected too quickly? Try adding a sleep for 1000ms on each one and see what happens.
-MC

On Thu, Aug 6, 2009 at 4:26 AM, mark morreny <markmorreny@gmail.com (markmorreny@gmail.com)> wrote:
Quote:
Hello,

I have the following setup in the dialplan.  Then, I fire up sipp to send 5calls/s and I expect to get limit-pass=false in most of the INFO output.  However, I am getting all "limit-pass=pass".

Does anyone know what is wrong with my dialplan?


 <context name="internal">

  <extension name="test-limit">

    <condition field="destination_number" expression="^9(.*)$">

        <action application="limit_hash_execute" data="192.168.1.102 6000 1/1 transfer to-next" />
        <action application="set" data="limit-pass=false"/>
        <action application="info" />
        <action application="hangup" />

    </condition>

  </extension>
    <extension name="to-next">
        <condition field="destination_number" expression="^to-next$">
        <action application="set" data="limit-pass=true"/>
        <action application="info" />
        <action application="hangup" />



    </condition>
    </extension>
</context>

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services