@ -1485,15 +1485,15 @@ static void janus_finish_response(JsonBuilder *builder, const char *success, con
}
}
const char * websocket_janus_process ( struct websocket_message * wm ) {
static const char * websocket_janus_process_json ( struct websocket_message * wm ,
uint64_t session_id , uint64_t handle_id )
{
JsonParser * parser = NULL ;
JsonParser * parser = NULL ;
JsonReader * reader = NULL ;
JsonReader * reader = NULL ;
const char * err = NULL ;
const char * err = NULL ;
int retcode = 200 ;
int retcode = 200 ;
const char * transaction = NULL ;
const char * transaction = NULL ;
const char * success = " success " ;
const char * success = " success " ;
uint64_t session_id = 0 ;
uint64_t handle_id = 0 ;
struct janus_session * session = NULL ;
struct janus_session * session = NULL ;
ilog ( LOG_DEBUG , " Processing Janus message: '%.*s' " , ( int ) wm - > body - > len , wm - > body - > str ) ;
ilog ( LOG_DEBUG , " Processing Janus message: '%.*s' " , ( int ) wm - > body - > len , wm - > body - > str ) ;
@ -1662,6 +1662,11 @@ err:
}
}
const char * websocket_janus_process ( struct websocket_message * wm ) {
return websocket_janus_process_json ( wm , 0 , 0 ) ;
}
const char * websocket_janus_get ( struct websocket_message * wm ) {
const char * websocket_janus_get ( struct websocket_message * wm ) {
str uri ;
str uri ;
str_init ( & uri , wm - > uri ) ;
str_init ( & uri , wm - > uri ) ;