Problem using FSClient and FreeSWITCH
I’m doing a little experimenting with FreeSWITCH and I've encountered a problem which hopefully someone can help with. I have a system running a generic build/install of FreeSWITCH and another with the FSClient running. I am trying to dial some of the numbers that should respond, such as 9664 or 9198, but when I try the call connects to the server but is then disconnected at the client end. Debugging the client I've found that there are two threads executing the audio_bridge_thread function. Both have the same two channels but they're reversed between threads. The problem seems to be that one channel has no media_handle assigned so when switch_core_session_write_frame is called to write the sound data that should be played by the client, the function returns a failure code and the client hangs up. Does anyone have any idea why one channel would not have had a media handle assigned – I can call the same numbers from X-Lite on the same client PC and the call connects successfully and the audio stream is played ok.
Have you tried just verbose logging on the client and server? Remember FSClient you can turn up logging just like freeswitch. ~Mitch ~mitch On Tue, Dec 20, 2016 at 2:39 PM, Paul Mateer <paul.mateer@outlook.com> wrote:
I’m doing a little experimenting with FreeSWITCH and I've encountered a problem which hopefully someone can help with.
I have a system running a generic build/install of FreeSWITCH and another with the FSClient running.
I am trying to dial some of the numbers that should respond, such as 9664 or 9198, but when I try the call connects to the server but is then disconnected at the client end.
Debugging the client I've found that there are two threads executing the audio_bridge_thread function. Both have the same two channels but they're reversed between threads.
The problem seems to be that one channel has no media_handle assigned so when switch_core_session_write_frame is called to write the sound data that should be played by the client, the function returns a failure code and the client hangs up.
Does anyone have any idea why one channel would not have had a media handle assigned – I can call the same numbers from X-Lite on the same client PC and the call connects successfully and the audio stream is played ok.
_________________________________________________________________________ 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
Try latest master and see if you still see that. We just fixed something similar this morning. On Tue, Dec 20, 2016 at 4:47 PM, Mitch Capper <mitch.capper@gmail.com> wrote:
Have you tried just verbose logging on the client and server? Remember FSClient you can turn up logging just like freeswitch.
~Mitch
~mitch
On Tue, Dec 20, 2016 at 2:39 PM, Paul Mateer <paul.mateer@outlook.com> wrote:
I’m doing a little experimenting with FreeSWITCH and I've encountered a problem which hopefully someone can help with.
I have a system running a generic build/install of FreeSWITCH and another with the FSClient running.
I am trying to dial some of the numbers that should respond, such as 9664 or 9198, but when I try the call connects to the server but is then disconnected at the client end.
Debugging the client I've found that there are two threads executing the audio_bridge_thread function. Both have the same two channels but they're reversed between threads.
The problem seems to be that one channel has no media_handle assigned so when switch_core_session_write_frame is called to write the sound data that should be played by the client, the function returns a failure code and the client hangs up.
Does anyone have any idea why one channel would not have had a media handle assigned – I can call the same numbers from X-Lite on the same client PC and the call connects successfully and the audio stream is played ok.
_________________________________________________________________________ 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
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬ ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+ <http://freeswitch.org/g+>* ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900 https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA
participants (3)
-
Anthony Minessale
-
Mitch Capper
-
Paul Mateer