From 9c1e14aa9c2af64ec8b14aace0a86200436634e9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 6 May 2008 13:59:37 +0000 Subject: [PATCH] missed some name changes thanks coppice git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8270 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_alsa/mod_alsa.c | 2 +- src/mod/endpoints/mod_dingaling/mod_dingaling.c | 2 +- src/mod/endpoints/mod_iax/mod_iax.c | 2 +- src/mod/endpoints/mod_portaudio/mod_portaudio.c | 2 +- src/mod/endpoints/mod_reference/mod_reference.c | 5 ++++- src/mod/endpoints/mod_sofia/mod_sofia.c | 2 +- src/mod/endpoints/mod_wanpipe/mod_wanpipe.c | 2 +- src/mod/endpoints/mod_woomera/mod_woomera.c | 2 +- 8 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/mod/endpoints/mod_alsa/mod_alsa.c b/src/mod/endpoints/mod_alsa/mod_alsa.c index e464367e2a..f439c73ec3 100644 --- a/src/mod/endpoints/mod_alsa/mod_alsa.c +++ b/src/mod/endpoints/mod_alsa/mod_alsa.c @@ -293,7 +293,7 @@ static switch_status_t channel_on_init(switch_core_session_t *session) switch_set_flag_locked(tech_pvt, TFLAG_IO); - /* Move Channel's State Machine to RING */ + /* Move channel's state machine to ROUTING */ switch_channel_set_state(channel, CS_ROUTING); return SWITCH_STATUS_SUCCESS; diff --git a/src/mod/endpoints/mod_dingaling/mod_dingaling.c b/src/mod/endpoints/mod_dingaling/mod_dingaling.c index 301de3d767..6d4d07cf74 100644 --- a/src/mod/endpoints/mod_dingaling/mod_dingaling.c +++ b/src/mod/endpoints/mod_dingaling/mod_dingaling.c @@ -1165,7 +1165,7 @@ static switch_status_t channel_on_init(switch_core_session_t *session) switch_set_flag(tech_pvt, TFLAG_READY); if (negotiate_media(session) == SWITCH_STATUS_SUCCESS) { - /* Move Channel's State Machine to RING */ + /* Move channel's state machine to ROUTING */ switch_channel_set_state(channel, CS_ROUTING); } diff --git a/src/mod/endpoints/mod_iax/mod_iax.c b/src/mod/endpoints/mod_iax/mod_iax.c index b5a1b318e7..32735c6939 100644 --- a/src/mod/endpoints/mod_iax/mod_iax.c +++ b/src/mod/endpoints/mod_iax/mod_iax.c @@ -467,7 +467,7 @@ static switch_status_t channel_on_init(switch_core_session_t *session) switch_set_flag_locked(tech_pvt, TFLAG_IO); - /* Move Channel's State Machine to RING */ + /* Move channel's state machine to ROUTING */ switch_channel_set_state(switch_core_session_get_channel(session), CS_ROUTING); switch_mutex_lock(globals.mutex); globals.calls++; diff --git a/src/mod/endpoints/mod_portaudio/mod_portaudio.c b/src/mod/endpoints/mod_portaudio/mod_portaudio.c index 756818d79b..8f7aa424df 100644 --- a/src/mod/endpoints/mod_portaudio/mod_portaudio.c +++ b/src/mod/endpoints/mod_portaudio/mod_portaudio.c @@ -283,7 +283,7 @@ static switch_status_t channel_on_init(switch_core_session_t *session) switch_set_flag_locked(tech_pvt, TFLAG_IO); - /* Move Channel's State Machine to RING */ + /* Move channel's state machine to ROUTING */ switch_channel_set_state(channel, CS_ROUTING); return SWITCH_STATUS_SUCCESS; diff --git a/src/mod/endpoints/mod_reference/mod_reference.c b/src/mod/endpoints/mod_reference/mod_reference.c index 81713e3492..66cf59b1af 100644 --- a/src/mod/endpoints/mod_reference/mod_reference.c +++ b/src/mod/endpoints/mod_reference/mod_reference.c @@ -139,7 +139,10 @@ static switch_status_t channel_on_init(switch_core_session_t *session) assert(channel != NULL); switch_set_flag_locked(tech_pvt, TFLAG_IO); - /* Move Channel's State Machine to RING */ + /* Move channel's state machine to ROUTING. This means the call is trying + to get from the initial start where the call because, to the point + where a destination has been identified. If the channel is simply + left in the initial state, nothing will happen. */ switch_channel_set_state(channel, CS_ROUTING); switch_mutex_lock(globals.mutex); globals.calls++; diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 63deae71ad..00bb5d7c2d 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -103,7 +103,7 @@ static switch_status_t sofia_on_init(switch_core_session_t *session) } } - /* Move Channel's State Machine to RING */ + /* Move channel's state machine to ROUTING */ switch_channel_set_state(channel, CS_ROUTING); assert( switch_channel_get_state(channel) != CS_INIT); return SWITCH_STATUS_SUCCESS; diff --git a/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c b/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c index af716c4cc4..17ae55cd8a 100644 --- a/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c +++ b/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c @@ -613,7 +613,7 @@ static switch_status_t wanpipe_on_init(switch_core_session_t *session) done: - /* Move Channel's State Machine to RING */ + /* Move channel's state machine to ROUTING */ switch_channel_set_state(channel, CS_ROUTING); return SWITCH_STATUS_SUCCESS; } diff --git a/src/mod/endpoints/mod_woomera/mod_woomera.c b/src/mod/endpoints/mod_woomera/mod_woomera.c index 5fce2ba7d6..709a245663 100644 --- a/src/mod/endpoints/mod_woomera/mod_woomera.c +++ b/src/mod/endpoints/mod_woomera/mod_woomera.c @@ -1042,7 +1042,7 @@ static void *woomera_channel_thread_run(switch_thread_t * thread, void *obj) ptr++; port = (switch_port_t) atoi(ptr); } - /* Move Channel's State Machine to RING */ + /* Move channel's state machine to ROUTING */ switch_channel_answer(channel); switch_channel_set_state(channel, CS_ROUTING);