VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
elihayun at gmail.com Guest
|
Posted: Wed Jul 22, 2009 7:56 am Post subject: [Freeswitch-users] Limit is not working when originate a cal |
|
|
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 |
|
Back to top |
|
|
mike at jerris.com Guest
|
Posted: Wed Jul 22, 2009 9:52 am Post subject: [Freeswitch-users] Limit is not working when originate a cal |
|
|
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:
Quote: | 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 |
|
Back to top |
|
|
elihayun at gmail.com Guest
|
Posted: Thu Jul 23, 2009 12:18 am Post subject: [Freeswitch-users] Limit is not working when originate a cal |
|
|
Michael Jerris wrote:
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 |
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Thu Jul 23, 2009 7:51 am Post subject: [Freeswitch-users] Limit is not working when originate a cal |
|
|
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 <elihayun@gmail.com (elihayun@gmail.com)> wrote:
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
elihayun at gmail.com Guest
|
Posted: Sun Jul 26, 2009 2:34 am Post subject: [Freeswitch-users] Limit is not working when originate a cal |
|
|
Anthony Minessale wrote:
Quote: | 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 <elihayun@gmail.com
<mailto:elihayun@gmail.com>> wrote:
Michael Jerris wrote:
Quote: | because your not running limit at all when you are doing an
| originate
Quote: | directly. You can use loopback to originate through a dialplan
extension.
Mike
On Jul 22, 2009, at 8:45 AM, Eli Hayun wrote:
Quote: | 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
Quote: | Quote: | 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
|
| <mailto:FreeSWITCH-users@lists.freeswitch.org>
Quote: | Quote: | http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
|
| UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
<mailto:FreeSWITCH-users@lists.freeswitch.org>
Quote: | http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
| UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
Quote: | 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
<mailto: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_minessale@hotmail.com
<mailto:MSN%3Aanthony_minessale@hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
<mailto:PAYPAL%3Aanthony.minessale@gmail.com>
IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
<mailto:sip%3A888@conference.freeswitch.org>
iax:guest@conference.freeswitch.org/888
<http://iax:guest@conference.freeswitch.org/888>
googletalk:conf+888@conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888@conference.freeswitch.org>
pstn:213-799-1400
| Thanks for replay, but how do I do that?
I tried to use :
lmt = apiExecute("limit_hash", extno + " " + extno + " 1");
console_log("info","*** Limit ***" + lmt + "\n");
But it gave me "Invalid command". What is the exact way to do that. The
documentation on that, is missing.
_______________________________________________
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 |
|
|
elihayun at gmail.com Guest
|
Posted: Mon Jul 27, 2009 3:09 am Post subject: [Freeswitch-users] Limit is not working when originate a cal |
|
|
Anthony Minessale wrote:
Quote: | Quote: | 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
_______________________________________________
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 |
|
|
anthony.minessale at g... Guest
|
Posted: Mon Jul 27, 2009 9:54 am Post subject: [Freeswitch-users] Limit is not working when originate a cal |
|
|
I suggest you study FS more because if you can't tell what to do with the info provided
you have some fundamentals to review before proceeding.
On Mon, Jul 27, 2009 at 2:59 AM, Eli Hayun <elihayun@gmail.com (elihayun@gmail.com)> wrote:
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
|
|
|
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
|