]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
little cleanup, remove unnecessary (char *) cast.
authorMichael Jerris <mike@jerris.com>
Tue, 28 Aug 2007 22:44:02 +0000 (22:44 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 28 Aug 2007 22:44:02 +0000 (22:44 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5674 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_dingaling/mod_dingaling.c
src/mod/endpoints/mod_iax/mod_iax.c
src/mod/endpoints/mod_portaudio/mod_portaudio.c
src/mod/endpoints/mod_sofia/sofia.c
src/mod/endpoints/mod_woomera/mod_woomera.c
src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
src/switch_ivr_originate.c

index 28a04ce8f85474aa99939e735a9dcf54bc99c1ee..534e0f2bd29330698ccd683cd83c737755e8d06c 100644 (file)
@@ -2650,12 +2650,11 @@ static ldl_status handle_signalling(ldl_handle_t * handle, ldl_session_t * dlses
                                                                                                                                                          cid_name,
                                                                                                                                                          cid_num,
                                                                                                                                                          ldl_session_get_ip(dlsession),
-                                                                                                                                                         ldl_session_get_value(dlsession,
-                                                                                                                                                                                                       "ani"),
-                                                                                                                                                         ldl_session_get_value(dlsession,
-                                                                                                                                                                                                       "aniii"),
-                                                                                                                                                         ldl_session_get_value(dlsession,
-                                                                                                                                                                                                       "rdnis"), (char *) modname, context,
+                                                                                                                                                         ldl_session_get_value(dlsession, "ani"),
+                                                                                                                                                         ldl_session_get_value(dlsession, "aniii"),
+                                                                                                                                                         ldl_session_get_value(dlsession, "rdnis"),
+                                                                                                                                                         modname,
+                                                                                                                                                         context,
                                                                                                                                                          exten)) != 0) {
                                                char name[128];
                                                snprintf(name, sizeof(name), "DingaLing/%s", tech_pvt->caller_profile->destination_number);
index 4acde49b6ecba3e6441b8b921c1d766e359ae118..7e5020851277422a0f401f443b8e74b09634603f 100644 (file)
@@ -1107,8 +1107,9 @@ SWITCH_MODULE_RUNTIME_FUNCTION(mod_iax_runtime)
                                                                                                                                                                  iaxevent->ies.calling_ani,
                                                                                                                                                                  NULL,
                                                                                                                                                                  NULL,
-                                                                                                                                                                 (char *) modname,
-                                                                                                                                                                 iaxevent->ies.called_context, iaxevent->ies.called_number)) != 0) {
+                                                                                                                                                                 modname,
+                                                                                                                                                                 iaxevent->ies.called_context,
+                                                                                                                                                                 iaxevent->ies.called_number)) != 0) {
                                                        char name[128];
                                                        snprintf(name, sizeof(name), "IAX/%s-%04x", tech_pvt->caller_profile->destination_number, rand() & 0xffff);
                                                        switch_channel_set_name(channel, name);
index 58f964635d9a44062351338ed242f493aec20793..a6e7ede7c63a01dd11c33d2a6e1f324d879ab72e 100644 (file)
@@ -1600,8 +1600,8 @@ static switch_status_t place_call(char **argv, int argc, switch_stream_handle_t
                }
 
                if ((tech_pvt->caller_profile = switch_caller_profile_new(switch_core_session_get_pool(session),
-                                                                                                                                 NULL,
-                                                                                                                                 dialplan, cid_name, cid_num, NULL, NULL, NULL, NULL, (char *) modname, NULL,
+                                                                                                                                 NULL, dialplan, cid_name, cid_num,
+                                                                                                                                 NULL, NULL, NULL, NULL, modname, NULL,
                                                                                                                                  dest)) != 0) {
                        char name[128];
                        snprintf(name, sizeof(name), "PortAudio/%s",
index 88e8edcbf986b0b99c43b088446b1be16cce27b6..50f80b7c36328c21cdb092bf12b6d82f0bb287e8 100644 (file)
@@ -1935,7 +1935,10 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
        tech_pvt->caller_profile = switch_caller_profile_new(switch_core_session_get_pool(session),
                                                                                                                 from_user,
                                                                                                                 profile->dialplan,
-                                                                                                                displayname, from_user, network_ip, NULL, NULL, NULL, MODNAME, context, destination_number);
+                                                                                                                displayname,
+                                                                                                                from_user,
+                                                                                                                network_ip,
+                                                                                                                NULL, NULL, NULL, MODNAME, context, destination_number);
 
        if (tech_pvt->caller_profile) {
 
index 5ac6078786d432e46bc9f6646f0b87b05d2588ad..70357cd49334984bb4cb65f189a7b08b3b265991 100644 (file)
@@ -1059,7 +1059,15 @@ static void *woomera_channel_thread_run(switch_thread_t * thread, void *obj)
                                if ((tech_pvt->caller_profile = switch_caller_profile_new(switch_core_session_get_pool(session),
                                                                                                                                                  NULL,
                                                                                                                                                  tech_pvt->profile->dialplan,
-                                                                                                                                                 cid_name, cid_num, ip, NULL, NULL, NULL, (char *) modname, NULL, exten)) != 0) {
+                                                                                                                                                 cid_name,
+                                                                                                                                                 cid_num,
+                                                                                                                                                 ip,
+                                                                                                                                                 NULL,
+                                                                                                                                                 NULL,
+                                                                                                                                                 NULL,
+                                                                                                                                                 modname,
+                                                                                                                                                 NULL,
+                                                                                                                                                 exten)) != 0) {
                                        char name[128];
                                        snprintf(name, sizeof(name), "Woomera/%s-%04x", tech_pvt->caller_profile->destination_number, rand() & 0xffff);
                                        switch_channel_set_name(channel, name);
index a493b12fbe866eab450640f88bc4a1c626335d97..c6cd33553aff5e873a07b0fef750882f0888fd0f 100644 (file)
@@ -2430,9 +2430,8 @@ static JSBool session_originate(JSContext * cx, JSObject * obj, uintN argc, jsva
                        return JS_FALSE;
                }
 
-               caller_profile = switch_caller_profile_new(pool,
-                                                                                                  username, dialplan, cid_name, cid_num, network_addr, ani, aniii, rdnis, (char *) modname, context,
-                                                                                                  dest);
+               caller_profile = switch_caller_profile_new(pool,username, dialplan, cid_name, cid_num, network_addr,
+                                                                                                  ani, aniii, rdnis, modname, context, dest);
 
                if (switch_ivr_originate(session, &peer_session, &jss->cause, dest, to ? atoi(to) : 60, NULL, NULL, NULL, caller_profile) != SWITCH_STATUS_SUCCESS) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Cannot Create Outgoing Channel! [%s]\n", dest);
index 2005d5c2f41608b238e341ebb5a0968601bfa48b..fe75d19f3a0abb25f52b617fe8d0f857f3fc1e71 100644 (file)
@@ -500,10 +500,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                                }
 
                                                new_profile = switch_caller_profile_new(pool,
-                                                                                                                                NULL,
-                                                                                                                                NULL,
-                                                                                                                                cid_name_override, cid_num_override, NULL, NULL, NULL, NULL, __FILE__, NULL,
-                                                                                                                                chan_data);
+                                                                                                                               NULL,
+                                                                                                                               NULL,
+                                                                                                                               cid_name_override,
+                                                                                                                               cid_num_override,
+                                                                                                                               NULL, NULL, NULL, NULL, __FILE__, NULL,
+                                                                                                                               chan_data);
                                        }
                                }