Hi, i need some help. Is there anyway to detect that user hangup (means user press endcall button - diconnects ) in lua. I have tried session:getstate() but its not changing. I have also tried to hookup hangup but it also of no avail. Thanks.
Why are you doing this exactly? I hope you're doing all this in a session:ready block. On Mon, Nov 9, 2015 at 3:37 PM, Shan Randhawa <randhawaay@gmail.com> wrote:
Hi,
i need some help. Is there anyway to detect that user hangup (means user press endcall button - diconnects ) in lua.
I have tried session:getstate() but its not changing.
I have also tried to hookup hangup but it also of no avail.
Thanks.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Hi Brain, Thanks for replying. Yes i m doing in a session:ready block. Actually i m using a external web server to make session in one lua script using freeswitch commandline API and then doing record and playandgetdigits in another lua script.what is happening right now is that when user disconnects by pressing endcall button, the record and playandgetdigit (lua script) continue to execute.I m trying to find a way that will tell me that user has hangup so that i can tel my server that no need to execute further commands. What i m using this for is I'm writing a interpreter that will execute tropo ( paid telephony server ) scripts' on freeswitch.Its like a library. Thanks. On Tue, Nov 10, 2015 at 2:50 AM, Brian West <brian@freeswitch.org> wrote:
Why are you doing this exactly? I hope you're doing all this in a session:ready block.
On Mon, Nov 9, 2015 at 3:37 PM, Shan Randhawa <randhawaay@gmail.com> wrote:
Hi,
i need some help. Is there anyway to detect that user hangup (means user press endcall button - diconnects ) in lua.
I have tried session:getstate() but its not changing.
I have also tried to hookup hangup but it also of no avail.
Thanks.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
sounds like you are not actually getting a hangup.. Check freeswitch logs and sip trace...
On Nov 9, 2015, at 5:00 PM, Shan Randhawa <randhawaay@gmail.com> wrote:
Hi Brain,
Thanks for replying. Yes i m doing in a session:ready block.
Actually i m using a external web server to make session in one lua script using freeswitch commandline API and then doing record and playandgetdigits in another lua script.what is happening right now is that when user disconnects by pressing endcall button, the record and playandgetdigit (lua script) continue to execute.I m trying to find a way that will tell me that user has hangup so that i can tel my server that no need to execute further commands.
What i m using this for is I'm writing a interpreter that will execute tropo ( paid telephony server ) scripts' on freeswitch.Its like a library.
Thanks.
On Tue, Nov 10, 2015 at 2:50 AM, Brian West <brian@freeswitch.org <mailto:brian@freeswitch.org>> wrote: Why are you doing this exactly? I hope you're doing all this in a session:ready block.
On Mon, Nov 9, 2015 at 3:37 PM, Shan Randhawa <randhawaay@gmail.com <mailto:randhawaay@gmail.com>> wrote: Hi,
i need some help. Is there anyway to detect that user hangup (means user press endcall button - diconnects ) in lua.
I have tried session:getstate() but its not changing.
I have also tried to hookup hangup but it also of no avail.
Thanks.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
-- Brian West brian@freeswitch.org <mailto:brian@freeswitch.org>
Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com <http://www.freeswitchbook.com/> http://www.freeswitchcookbook.com <http://www.freeswitchcookbook.com/> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> T:+19184209001 <tel:%2B19184209001> | F:+19184209002 <tel:%2B19184209002> | M:+1918424WEST (9378) iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
Hi, I have found the problem.The problem was in the softphone. i m using.it was not sending the hangup.Using different softphone solves the problem, Regards, Shan Randhawa On Tue, Nov 10, 2015 at 3:05 AM, Michael Jerris <mike@jerris.com> wrote:
sounds like you are not actually getting a hangup.. Check freeswitch logs and sip trace...
On Nov 9, 2015, at 5:00 PM, Shan Randhawa <randhawaay@gmail.com> wrote:
Hi Brain,
Thanks for replying. Yes i m doing in a session:ready block.
Actually i m using a external web server to make session in one lua script using freeswitch commandline API and then doing record and playandgetdigits in another lua script.what is happening right now is that when user disconnects by pressing endcall button, the record and playandgetdigit (lua script) continue to execute.I m trying to find a way that will tell me that user has hangup so that i can tel my server that no need to execute further commands.
What i m using this for is I'm writing a interpreter that will execute tropo ( paid telephony server ) scripts' on freeswitch.Its like a library.
Thanks.
On Tue, Nov 10, 2015 at 2:50 AM, Brian West <brian@freeswitch.org> wrote:
Why are you doing this exactly? I hope you're doing all this in a session:ready block.
On Mon, Nov 9, 2015 at 3:37 PM, Shan Randhawa <randhawaay@gmail.com> wrote:
Hi,
i need some help. Is there anyway to detect that user hangup (means user press endcall button - diconnects ) in lua.
I have tried session:getstate() but its not changing.
I have also tried to hookup hangup but it also of no avail.
Thanks.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
participants (3)
-
Brian West
-
Michael Jerris
-
Shan Randhawa