mirror of
https://github.com/jambonz/freeswitch-modules.git
synced 2025-12-19 06:47:43 +00:00
* support streaming audio for mod_audio_fork Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com> * wip Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com> * wip Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com> * wip Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com> * wip Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com> * wip Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com> * wip Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com> * wip Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com> * wip Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com> * wip Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com> * wip Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com> * wip Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com> * fix review comments * fix review comments --------- Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com>
24 lines
1.4 KiB
C
24 lines
1.4 KiB
C
#ifndef __LWS_GLUE_H__
|
|
#define __LWS_GLUE_H__
|
|
|
|
#include "mod_audio_fork.h"
|
|
|
|
int parse_ws_uri(switch_channel_t *channel, const char* szServerUri, char* host, char *path, unsigned int* pPort, int* pSslFlags);
|
|
|
|
switch_status_t fork_init();
|
|
switch_status_t fork_cleanup();
|
|
switch_status_t fork_session_init(switch_core_session_t *session, responseHandler_t responseHandler,
|
|
uint32_t samples_per_second, char *host, unsigned int port, char* path, int sampling, int sslFlags, int channels,
|
|
char *bugname, char* metadata, int bidirectional_audio_enable,
|
|
int bidirectional_audio_stream, int bidirectional_audio_sample_rate, void **ppUserData);
|
|
switch_status_t fork_session_cleanup(switch_core_session_t *session, char *bugname, char* text, int channelIsClosing);
|
|
switch_status_t fork_session_stop_play(switch_core_session_t *session, char *bugname);
|
|
switch_status_t fork_session_pauseresume(switch_core_session_t *session, char *bugname, int pause);
|
|
switch_status_t fork_session_graceful_shutdown(switch_core_session_t *session, char *bugname);
|
|
switch_status_t fork_session_send_text(switch_core_session_t *session, char *bugname, char* text);
|
|
switch_bool_t fork_frame(switch_core_session_t *session, switch_media_bug_t *bug);
|
|
switch_bool_t dub_speech_frame(switch_media_bug_t *bug, private_t * tech_pvt);
|
|
switch_status_t fork_service_threads();
|
|
switch_status_t fork_session_connect(void **ppUserData);
|
|
#endif
|