Hi all, I'm trying to have an audio stream played back on a channel and to pause/resume it through API commands on event socket. Below you can find the sequence of commands and outputs: $ telnet 127.0.0.1 8021 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Content-Type: auth/request auth ClueCon Content-Type: command/reply Reply-Text: +OK accepte api originate user/1003 &playback(${sounds_dir}/jazz.wav) Content-Type: api/response Content-Length: 41 +OK 8fcdb494-82a4-42c4-b011-ecca1da0ade2 api pause 8fcdb494-82a4-42c4-b011-ecca1da0ade2 on Content-Type: api/response Content-Length: 14 *-ERR no reply* ** * * The "pause" command is successful (the stream is really paused) but the api response indicates an error. Same output with the CLI. Is it correct? Thank you very much. Fabio Bigliardi
I see this, too. I looked in the source code and it looks like there's no explicit "+OK" anywhere. However, the "-ERR no reply" looks to me like what would happen on a successful call to the pause API. I think you're okay to assume that a "no reply" means your pause on/off worked. -MC On Thu, Jul 14, 2011 at 6:06 AM, Fabio Bigliardi <fabio.bigliardi@gmail.com>wrote:
Hi all,
I'm trying to have an audio stream played back on a channel and to pause/resume it through API commands on event socket.
Below you can find the sequence of commands and outputs:
$ telnet 127.0.0.1 8021 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Content-Type: auth/request
auth ClueCon
Content-Type: command/reply Reply-Text: +OK accepte
api originate user/1003 &playback(${sounds_dir}/jazz.wav)
Content-Type: api/response Content-Length: 41
+OK 8fcdb494-82a4-42c4-b011-ecca1da0ade2 api pause 8fcdb494-82a4-42c4-b011-ecca1da0ade2 on
Content-Type: api/response Content-Length: 14
*-ERR no reply* **
* *
The "pause" command is successful (the stream is really paused) but the api response indicates an error.
Same output with the CLI.
Is it correct?
Thank you very much.
Fabio Bigliardi
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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 (2)
-
Fabio Bigliardi
-
Michael Collins