[Freeswitch-dev] Qt portaudio interface
Hi all, Anyone interested in contributing to a Qt interface in order to make a decent softphone using FS please reply to this thread. (also give your availability so we can have a conference call to decide stuff) Thanks, Math
Had a try following the example found at http://wiki.freeswitch.org/wiki/Simple_conference.lua However, the session:execute seems wont return until the caller hangs up Following is my test script session:answer() session:setAutoHangup(false) session:sleep(200) session:execute("conference", "12345@default") freeswitch.consoleLog("notice", "testing conference\n") The freeswitch.consoleLog wont be execute unless the caller hangs up What's wrong with it? Regards Scott
session:answer() session:setAutoHangup(false) session:sleep(200)
session:execute("conference", "12345@default")
freeswitch.consoleLog("notice", "testing conference\n")
The freeswitch.consoleLog wont be execute unless the caller hangs up
I think the call to "conference" is blocking. If you had a non-blocking call what would your script be doing while the session was in conference? Just curious. -MC
In non-blocking mode, I think the script can invite some other parties -----Original Message----- From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: Tuesday, 3 March 2009 11:56 AM To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] Lua session:execute did not return on conference
session:answer() session:setAutoHangup(false) session:sleep(200)
session:execute("conference", "12345@default")
freeswitch.consoleLog("notice", "testing conference\n")
The freeswitch.consoleLog wont be execute unless the caller hangs up
I think the call to "conference" is blocking. If you had a non-blocking call what would your script be doing while the session was in conference? Just curious. -MC _______________________________________________ Freeswitch-dev mailing list Freeswitch-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Thats the way its supposed to be. Math On 2-Mar-09, at 7:34 PM, Scott Shen wrote:
Had a try following the example found at
http://wiki.freeswitch.org/wiki/Simple_conference.lua
However, the session:execute seems wont return until the caller hangs up
Following is my test script
session:answer() session:setAutoHangup(false) session:sleep(200)
session:execute("conference", "12345@default")
freeswitch.consoleLog("notice", "testing conference\n")
The freeswitch.consoleLog wont be execute unless the caller hangs up
What's wrong with it?
Regards Scott
_______________________________________________ Freeswitch-dev mailing list Freeswitch-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Then, how can I drop a session into a conference via lua script? or is it not possible? -----Original Message----- From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Mathieu Rene Sent: Tuesday, 3 March 2009 11:58 AM To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] Lua session:execute did not return on conference Thats the way its supposed to be. Math On 2-Mar-09, at 7:34 PM, Scott Shen wrote:
Had a try following the example found at
http://wiki.freeswitch.org/wiki/Simple_conference.lua
However, the session:execute seems wont return until the caller hangs up
Following is my test script
session:answer() session:setAutoHangup(false) session:sleep(200)
session:execute("conference", "12345@default")
freeswitch.consoleLog("notice", "testing conference\n")
The freeswitch.consoleLog wont be execute unless the caller hangs up
What's wrong with it?
Regards Scott
_______________________________________________ Freeswitch-dev mailing list Freeswitch-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ Freeswitch-dev mailing list Freeswitch-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Sent from my iPhone On Mar 2, 2009, at 5:11 PM, Scott Shen <sshen@oa.com.au> wrote:
Then, how can I drop a session into a conference via lua script? or is it not possible?
It depends. What is the big picture? What is the actual application that you are creating? It sounds like you need to control multiple sessions. If so, you probably shouldn't be doing that from a single Lua script that is called from the dp. However, when you tell us a bit more about your application we can give you more intelligent answers. -MC
I encountered a similar situation and I created an extension that I transferred the session to. In that extension is where I drop the call into the conference. It allows the script to continue on, create new sessions, and connect them to the conference by transferring the session to the conference extension. Jonathan On Mon, Mar 2, 2009 at 7:55 PM, Michael S Collins <msc@freeswitch.org>wrote:
Sent from my iPhone
On Mar 2, 2009, at 5:11 PM, Scott Shen <sshen@oa.com.au> wrote:
Then, how can I drop a session into a conference via lua script? or is it not possible?
It depends. What is the big picture? What is the actual application that you are creating? It sounds like you need to control multiple sessions. If so, you probably shouldn't be doing that from a single Lua script that is called from the dp. However, when you tell us a bit more about your application we can give you more intelligent answers.
-MC
_______________________________________________ Freeswitch-dev mailing list Freeswitch-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Thanks, I actually tried the same way after some readings of the source code, I think it's now working as expected. -----Original Message----- From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of jonathan augenstine Sent: Tuesday, 3 March 2009 3:15 PM To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] Lua session:execute did not return on conference I encountered a similar situation and I created an extension that I transferred the session to. In that extension is where I drop the call into the conference. It allows the script to continue on, create new sessions, and connect them to the conference by transferring the session to the conference extension. Jonathan On Mon, Mar 2, 2009 at 7:55 PM, Michael S Collins <msc@freeswitch.org<mailto:msc@freeswitch.org>> wrote: Sent from my iPhone On Mar 2, 2009, at 5:11 PM, Scott Shen <sshen@oa.com.au<mailto:sshen@oa.com.au>> wrote:
Then, how can I drop a session into a conference via lua script? or is it not possible?
It depends. What is the big picture? What is the actual application that you are creating? It sounds like you need to control multiple sessions. If so, you probably shouldn't be doing that from a single Lua script that is called from the dp. However, when you tell us a bit more about your application we can give you more intelligent answers. -MC
_______________________________________________ Freeswitch-dev mailing list Freeswitch-dev@lists.freeswitch.org<mailto:Freeswitch-dev@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
I still think a web based interface would work well and be more cross platform. The web app could be served from within FS. http://127.0.0.1:8080/myfancysoftphone/ Sent from my iPhone On Mar 2, 2009, at 12:00 AM, Mathieu Rene <mrene_lists@avgs.ca> wrote:
Hi all,
Anyone interested in contributing to a Qt interface in order to make a decent softphone using FS please reply to this thread. (also give your availability so we can have a conference call to decide stuff)
Thanks, Math
_______________________________________________ Freeswitch-dev mailing list Freeswitch-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
participants (6)
-
Jason Garland
-
jonathan augenstine
-
Mathieu Rene
-
Michael Collins
-
Michael S Collins
-
Scott Shen