Hi Michael,
I will like to get a few RINGS back to the user and sleep a bit before the
call back.
The second i can do using the app sleep.
What about the first thing?
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_ring_ready
Will test i let you know...
Crazy Callbacker aka aep
--
On Thu, Sep 17, 2009 at 5:53 PM, Michael Giagnocavo m...@giagnocavo.netwrote:
Oh, weird. Seems to work in other languages.
Yet another reason to use Lua instead of JS. :)
-MC
___
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
Thanks for all the tips. I tried to run apiExecute(bgapi, jsrun originate)
and still Javascript?? does not let the thread go.
No matter the combination of session.hangup(), exit, apiExecute with or
without bgapi, the state remains in CS_EXECUTE.
So at the end i am triggering an event that i can
You could put an api_hangup_hook on the channel to jsrun your script.
What you want with javascript is not going to happen as long as you execute
the script *WITH* the channel.
it's not a problem it's just misuse/misunderstanding on your part.
On Fri, Sep 18, 2009 at 5:03 AM, Alberto Escudero
FYI,
I did a POC on this:
extension name=crazy_callback
condition field=destination_number expression=^(\d{10})$
action application=set data=luarun dump_arg.lua ${caller_id_number}
${caller_id_name}/
/condition
/extension
dump_arg.lua:
--
dump_args.lua
-- print out the
args
We are trying to create a callback application in Javascript. We get the
callerid from the unanswered call and after destroying the session, we
initiate a callback to the user to conenct it to a local extension in the
dialplan.
Although we have tried to destroy the first session, or even invoke a
So, what happens is that when you are executing an app, the state is
CS_EXECUTE. Even if the session is hungup, the state machine doesn't go through
all the hangup code until your app executes.
The easiest workaround is probably to start a background api (bgapi?) call to a
script. This will
session.dispose();
???
On Thu, Sep 17, 2009 at 5:20 PM, Alberto Escudero aep.li...@it46.se wrote:
We are trying to create a callback application in Javascript. We get the
callerid from the unanswered call and after destroying the session, we
initiate a callback to the user to conenct it to a
Dispose is a .NET only thing. But I think you are right - with anthm's changes,
any way you kill your session, if you're on the right thread, it should really
hangup.
-Michael
From: freeswitch-users-boun...@lists.freeswitch.org
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf
On Fri, Sep 18, 2009 at 12:08 AM, Michael Giagnocavo m...@giagnocavo.net
wrote:
Dispose is a .NET only thing. But I think you are right – with anthm’s
changes, any way you kill your session, if you’re on the right thread, it
should really hangup.
Problem is, we are trying to *not answer* the
Oh, weird. Seems to work in other languages.
-Original Message-
From: freeswitch-users-boun...@lists.freeswitch.org
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Giovanni
Maruzzelli
Sent: Thursday, September 17, 2009 5:27 PM
To:
11 matches
Mail list logo