mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
Skinny: rename skinny-route to skinny-process
this is needed to differentiate route/cfwd
This commit is contained in:
parent
d51cb976cb
commit
5f6c469e44
@ -673,12 +673,12 @@ switch_status_t channel_on_routing(switch_core_session_t *session)
|
||||
struct channel_on_routing_helper helper = {0};
|
||||
|
||||
if(switch_test_flag(tech_pvt, TFLAG_FORCE_ROUTE)) {
|
||||
action = SKINNY_ACTION_ROUTE;
|
||||
action = SKINNY_ACTION_PROCESS;
|
||||
} else {
|
||||
action = skinny_session_dest_match_pattern(session, &data);
|
||||
}
|
||||
switch(action) {
|
||||
case SKINNY_ACTION_ROUTE:
|
||||
case SKINNY_ACTION_PROCESS:
|
||||
skinny_profile_find_listener_by_device_name_and_instance(tech_pvt->profile,
|
||||
switch_channel_get_variable(channel, "skinny_device_name"),
|
||||
atoi(switch_channel_get_variable(channel, "skinny_device_instance")), &listener);
|
||||
|
@ -117,7 +117,7 @@ struct skinny_device_type_params {
|
||||
typedef struct skinny_device_type_params skinny_device_type_params_t;
|
||||
|
||||
typedef enum {
|
||||
SKINNY_ACTION_ROUTE,
|
||||
SKINNY_ACTION_PROCESS,
|
||||
SKINNY_ACTION_DROP,
|
||||
SKINNY_ACTION_WAIT
|
||||
} skinny_action_t;
|
||||
@ -174,12 +174,12 @@ typedef enum {
|
||||
|
||||
struct private_object {
|
||||
unsigned int flags;
|
||||
switch_mutex_t *flag_mutex;
|
||||
switch_frame_t read_frame;
|
||||
unsigned char databuf[SWITCH_RECOMMENDED_BUFFER_SIZE];
|
||||
switch_core_session_t *session;
|
||||
switch_caller_profile_t *caller_profile;
|
||||
switch_mutex_t *mutex;
|
||||
switch_mutex_t *flag_mutex;
|
||||
|
||||
/* identification */
|
||||
skinny_profile_t *profile;
|
||||
|
@ -238,8 +238,8 @@ found:
|
||||
|
||||
extension->current_application = extension->current_application->next;
|
||||
|
||||
if (!strcmp(current_application->application_name, "skinny-route")) {
|
||||
action = SKINNY_ACTION_ROUTE;
|
||||
if (!strcmp(current_application->application_name, "skinny-route") || !strcmp(current_application->application_name, "skinny-process")) {
|
||||
action = SKINNY_ACTION_PROCESS;
|
||||
} else if (!strcmp(current_application->application_name, "skinny-drop")) {
|
||||
action = SKINNY_ACTION_DROP;
|
||||
} else if (!strcmp(current_application->application_name, "skinny-wait")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user