[Freeswitch-users] limit works but limit_usage always reports 0

Thorsten Göllner tg-maillistings at level5.de
Fri Dec 2 18:19:47 MSK 2016


Hi there,

I am using freeswitch 1.6.13~64bit and have trouble with limit_usage. I
use the following simplified dialplan:

<extension name="test">
  <condition field="destination_number" expression="^100$">
    <action application="limit" data="hash realm1 res1 1/600" />
    <action application="answer"/>
    <action application="conference" data="$1-${domain_name}@cdquality"/>
  </condition>
</extension>

<extension name="limit_exceeded">
  <condition field="destination_number" expression="^limit_exceeded$">
    <action application="answer"/>
    <action application="playback" data="/audio/too_often.wav"/>
    <action application="hangup"/>
  </condition>
</extension>

As you can see, I use application limit - and here only 1 call per 10
minutes should be fine. So the second call goes to limit_exceeded. This
works fine.

From the shell I use the following command to query the limit status:

fs_cli -x "limit_usage hash realm1 res1"

But this command always returns "0". I expect it to report the current
limit status - for example "1" when the first call goes to limit_exceeded.

Do I expect the wrong thing or do I make a mistake?

Thanks in advance, Thorsten




Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list