]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Changed the ..._image_sdp routine to ..._udptl_image_sdp in preparation for
authorSteve Underwood <steveu@coppice.org>
Sun, 3 Feb 2013 08:28:20 +0000 (16:28 +0800)
committerSteve Underwood <steveu@coppice.org>
Sun, 3 Feb 2013 08:28:20 +0000 (16:28 +0800)
adding other kinds of image (specifically RTP and TCP/TPKT).

src/mod/endpoints/mod_sofia/mod_sofia.c
src/mod/endpoints/mod_sofia/mod_sofia.h
src/mod/endpoints/mod_sofia/sofia_glue.c

index f8d91634356267003e959b84f9e67994f70ae94c..90837150d41f80c6337006ecac3d9f24868f844e 100644 (file)
@@ -2063,7 +2063,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
 
                        start_udptl(tech_pvt, t38_options);
 
-                       sofia_glue_set_image_sdp(tech_pvt, t38_options, msg->numeric_arg);
+                       sofia_glue_set_udptl_image_sdp(tech_pvt, t38_options, msg->numeric_arg);
 
                        if (!sofia_test_flag(tech_pvt, TFLAG_BYE)) {
                                char *extra_headers = sofia_glue_get_extra_headers(channel, SOFIA_SIP_RESPONSE_HEADER_PREFIX);
@@ -2095,7 +2095,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
                        switch_t38_options_t *t38_options = switch_channel_get_private(tech_pvt->channel, "t38_options");
 
                        if (t38_options) {
-                               sofia_glue_set_image_sdp(tech_pvt, t38_options, msg->numeric_arg);
+                               sofia_glue_set_udptl_image_sdp(tech_pvt, t38_options, msg->numeric_arg);
 
                                if (!switch_channel_test_flag(channel, CF_PROXY_MEDIA)) {
                                        switch_channel_set_flag(channel, CF_REQ_MEDIA);
@@ -2635,7 +2635,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
                                                        if (!strcasecmp(sdp, "t38")) {
                                                                switch_t38_options_t *t38_options = switch_channel_get_private(tech_pvt->channel, "t38_options");
                                                                if (t38_options) {
-                                                                       sofia_glue_set_image_sdp(tech_pvt, t38_options, 0);
+                                                                       sofia_glue_set_udptl_image_sdp(tech_pvt, t38_options, 0);
                                                                        if (switch_rtp_ready(tech_pvt->rtp_session)) {
                                                                                sofia_clear_flag(tech_pvt, TFLAG_NOTIMER_DURING_BRIDGE);
                                                                                switch_rtp_udptl_mode(tech_pvt->rtp_session);
index 82c68516fbf96f374a7c9d54fb3a79167106d915..2690f0ee32943fef013e827c467d3b6fba1ef16e 100644 (file)
@@ -1142,7 +1142,7 @@ int sofia_glue_toggle_hold(private_object_t *tech_pvt, int sendonly);
 const char *sofia_state_string(int state);
 switch_status_t sofia_glue_tech_set_codec(private_object_t *tech_pvt, int force);
 void sofia_wait_for_reply(struct private_object *tech_pvt, nua_event_t event, uint32_t timeout);
-void sofia_glue_set_image_sdp(private_object_t *tech_pvt, switch_t38_options_t *t38_options, int insist);
+void sofia_glue_set_udptl_image_sdp(private_object_t *tech_pvt, switch_t38_options_t *t38_options, int insist);
 
 /* 
  * Logging control functions
index 79d33fc4974ce5ddf2bde88b666eda5bdd54402e..7657488933f8396ce38057eb7617dea89fe996a7 100644 (file)
@@ -39,7 +39,7 @@
 switch_cache_db_handle_t *_sofia_glue_get_db_handle(sofia_profile_t *profile, const char *file, const char *func, int line);
 #define sofia_glue_get_db_handle(_p) _sofia_glue_get_db_handle(_p, __FILE__, __SWITCH_FUNC__, __LINE__)
 
-void sofia_glue_set_image_sdp(private_object_t *tech_pvt, switch_t38_options_t *t38_options, int insist)
+void sofia_glue_set_udptl_image_sdp(private_object_t *tech_pvt, switch_t38_options_t *t38_options, int insist)
 {
        char buf[2048] = "";
        char max_buf[128] = "";
@@ -110,7 +110,9 @@ void sofia_glue_set_image_sdp(private_object_t *tech_pvt, switch_t38_options_t *
        switch_snprintf(buf, sizeof(buf),
                                        "v=0\n"
                                        "o=%s %010u %010u IN %s %s\n"
-                                       "s=%s\n" "c=IN %s %s\n" "t=0 0\n", username, tech_pvt->owner_id, tech_pvt->session_id, family, ip, username, family, ip);
+                                       "s=%s\n"
+                                       "c=IN %s %s\n"
+                                       "t=0 0\n", username, tech_pvt->owner_id, tech_pvt->session_id, family, ip, username, family, ip);
 
        if (t38_options->T38FaxMaxBuffer) {
                switch_snprintf(max_buf, sizeof(max_buf), "a=T38FaxMaxBuffer:%d\n", t38_options->T38FaxMaxBuffer);