[Freeswitch-users] Limit is not working when originate a call
Eli Hayun
elihayun at gmail.com
Mon Jul 27 00:59:52 PDT 2009
Anthony Minessale wrote:
>> limit is for inbound calls
>> you cannot call it after you already made the call.
>> The correct approach would be to not make the call at all.
>>
>> you could maybe use the limit FSAPI interface with apiExecute to check
>> if the limit was exceeded and
>> then not bother to place the call to begin with.
>>
>> otherwise it's sort of like putting a prisoner in the electric chair
>> then giving him his trial.
>>
>>
>>
Can you tell me how to do that?
I set the limit as:
<action application="limit_hash" data="${destination_number}
${destination_number} 1" />
Now, how do I know what is the current limit of ${destination_number}
Can you give me a JS (or lua) example?
Thanks
Eli
More information about the FreeSWITCH-users
mailing list