[Freeswitch-users] Need help with php or js scripts
x-81 at o2.pl
x-81 at o2.pl
Wed Jun 18 13:03:23 PDT 2008
1) How to set call duration (for example for 5 minutes ) in js file
User bkw__ (from IRC) has advised me to use sched_hangup.
First in my dialplan I set following line
<action application="sched_hangup" data="+60 alloted_timeout"/>
but after 1 minute call didn't automatically hangup. Also in the Internet I found something like this
<action application="sched_hangup" data="execute_on_answer=+60 alloted_timeout"/>
but still minute call didn't automatically hangup. Why ?
2) Can anybody help me with this problem http://pastebin.freeswitch.org/4641 ?
MikeJ on IRC has written something like this:
"you can't return a value from a jsrun"
"becuase it spawns a thread to do the jsrun "
"what you can do is bind an event "
"and spawn the event from the js "
"thats the only way I can think to do it easilt "
So. How bind an event and spawn it from js ?
Thanks
[argh]
More information about the FreeSWITCH-users
mailing list