Conference commands through Java API
Hi, I am sending some conference commands, like : conference list; conference <name_conf> lock through java client I am using inbound socket for this and I am listening to response events. The client is listening until it founds something like in the response: "OK" "Non-Existant" "Conference" "not found\n" "-ERR" The thing is that when the call is successful, I never get "OK" in the response, and due to this, the java client gets "hanged" Here are some successful responses that I get using freeswitch CLI: freeswitch@internal> conference list No active conferences. so there is no "OK" message there or, when I have one active conference: conference list Conference mirceaConf (0 members rate: 8000) the same, no "OK" message I don't know if there is a problem in the java client (we should never assume that we get "OK" in the response) or, maybe there is a problem in freeswitch Please advice, Thanks, Mircea
Hi Mircea, Which java 'api' are you using ? [1] I have never used the conference commands, but I just did a quick test using the Java ESL Client [2] and sent the 'conference list' command, and got back a response object with the 'No active conferences' content you describe below, ie it seemed to work just fine. Hope this helps? davidv [1] http://wiki.freeswitch.org/wiki/Java_ESL [2] http://wiki.freeswitch.org/wiki/Java_ESL_Client On 10 November 2010 05:16, Mircea Carasel <mirceac@ezuce.com> wrote:
Hi,
I am sending some conference commands, like : conference list; conference <name_conf> lock through java client I am using inbound socket for this and I am listening to response events. The client is listening until it founds something like in the response: "OK" "Non-Existant" "Conference" "not found\n" "-ERR"
The thing is that when the call is successful, I never get "OK" in the response, and due to this, the java client gets "hanged"
Here are some successful responses that I get using freeswitch CLI:
freeswitch@internal> conference list No active conferences.
so there is no "OK" message there
or, when I have one active conference:
conference list Conference mirceaConf (0 members rate: 8000)
the same, no "OK" message
I don't know if there is a problem in the java client (we should never assume that we get "OK" in the response) or, maybe there is a problem in freeswitch
Please advice,
Thanks, Mircea
-- david varnes
participants (2)
-
david varnes
-
Mircea Carasel