Data Structures | |
| class | IVRMenu |
| class | API |
| struct | input_callback_state |
| class | Stream |
| class | Event |
| class | CoreSession |
Typedefs | |
| typedef input_callback_state | input_callback_state_t |
Enumerations | |
| enum | session_flag_t { S_HUP = (1 << 0), S_FREE = (1 << 1), S_RDLOCK = (1 << 2) } |
Functions | |
| void | consoleLog (char *level_str, char *msg) |
| void | consoleCleanLog (char *msg) |
| void | console_log (char *level_str, char *msg) |
| void | console_clean_log (char *msg) |
| void | bridge (CoreSession &session_a, CoreSession &session_b) |
| bridge the audio of session_b into session_a | |
| switch_status_t | hanguphook (switch_core_session_t *session) |
| switch_status_t | dtmf_callback (switch_core_session_t *session, void *input, switch_input_type_t itype, void *buf, unsigned int buflen) |
|
|
|
|
|
00051 {
00052 S_HUP = (1 << 0),
00053 S_FREE = (1 << 1),
00054 S_RDLOCK = (1 << 2)
00055 } session_flag_t;
|
|
||||||||||||
|
bridge the audio of session_b into session_a NOTE: the stuff regarding the dtmf callback might be completely wrong and has not been reviewed or tested 00975 {
00976 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "bridge called, session_a uuid: %s\n", session_a.get_uuid());
00977 switch_input_callback_function_t dtmf_func = NULL;
00978 switch_input_args_t args;
00979
00980 session_a.begin_allow_threads();
00981 args = session_a.get_cb_args(); // get the cb_args data structure for session a
00982 dtmf_func = args.input_callback; // get the call back function
00983 switch_ivr_multi_threaded_bridge(session_a.session, session_b.session, dtmf_func, args.buf, args.buf);
00984 session_a.end_allow_threads();
00985
00986 }
|
Here is the call graph for this function:

|
|
00969 {
00970 switch_log_printf(SWITCH_CHANNEL_LOG_CLEAN,SWITCH_LOG_DEBUG, "%s", switch_str_nil(msg));
00971 }
|
Here is the call graph for this function:

|
||||||||||||
|
00957 {
00958 switch_log_level_t level = SWITCH_LOG_DEBUG;
00959 if (level_str) {
00960 level = switch_log_str2level(level_str);
00961 if (level == SWITCH_LOG_INVALID) {
00962 level = SWITCH_LOG_DEBUG;
00963 }
00964 }
00965 switch_log_printf(SWITCH_CHANNEL_LOG, level, "%s", switch_str_nil(msg));
00966 }
|
Here is the call graph for this function:

|
|
00952 {
00953 return console_clean_log(msg);
00954 }
|
Here is the call graph for this function:

|
||||||||||||
|
00947 {
00948 return console_log(level_str, msg);
00949 }
|
Here is the call graph for this function:

|
||||||||||||||||||||||||
|
|
|
|
|
1.3.9.1