[Freeswitch-users] Limit is not working when originate a call
Eli Hayun
elihayun at gmail.com
Wed Jul 22 22:04:07 PDT 2009
Michael Jerris wrote:
> because your not running limit at all when you are doing an originate
> directly. You can use loopback to originate through a dialplan
> extension.
>
> Mike
>
> On Jul 22, 2009, at 8:45 AM, Eli Hayun wrote:
>
>
>> Hi
>> I set the limit to 1 on the extension like that
>>
>> <action application="limit_hash" data="${destination_number}
>> ${destination_number} 1" />
>>
>> When I am trying to make a call the that destination i transfered to
>> limit_exceeded dialplan, just like I want
>>
>> The problem is, that when I am trying to make a call using
>> "originate" I
>> am not getting the limitation.
>> Why is that?
>>
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
Thanks for answer.
I am calling "Originate" from JS. I tried to call "limit_hash" from JS
but with no success. I did it like that:
lmt = apiExecute("limit_hash", dialed_ext + " " + dialed_ext + " 1");
I could't find any documentation on that.
can u help ?
Thanks
Eli
More information about the FreeSWITCH-users
mailing list