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.


On Thu, Jul 23, 2009 at 12:04 AM, Eli Hayun <eliha...@gmail.com> wrote:

> 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@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
> >
> 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
>
> _______________________________________________
> 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
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_miness...@hotmail.com <msn%3aanthony_miness...@hotmail.com>
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com<paypal%3aanthony.miness...@gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org <sip%3a...@conference.freeswitch.org>
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.org<googletalk%3aconf%2b...@conference.freeswitch.org>
pstn:213-799-1400
_______________________________________________
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

Reply via email to