]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add logging before uuid_bridge, set frame->codec from tech_pvt->read_codec
authorMathieu Rene <mrene@avgs.ca>
Thu, 26 Jul 2012 01:16:14 +0000 (21:16 -0400)
committerMathieu Rene <mrene@avgs.ca>
Thu, 26 Jul 2012 01:16:14 +0000 (21:16 -0400)
libs/freetdm/mod_freetdm/tdm.c
src/mod/endpoints/mod_media_gateway/media_gateway.c
src/mod/endpoints/mod_sofia/rtp.c

index 6398515b725fb81ff42c6d7c8c19b7f1578e0a13..89e0d3c4642307baa8f6084923b4cfcd24d132f9 100644 (file)
@@ -337,6 +337,7 @@ top:
     *frame = &tech_pvt->read_frame;
     tech_pvt->read_frame.datalen = (uint32_t)len;
     tech_pvt->read_frame.samples = tech_pvt->read_frame.datalen;
+    tech_pvt->read_frame = &tech_pvt->read_codec;
 
     if (ftdm_channel_get_codec(tech_pvt->ftdm_channel) == FTDM_CODEC_SLIN) {
         tech_pvt->read_frame.samples /= 2;
index 9805548b6f90fd689bcabc1866e764768512c6e4..3d10abf05cd2d991be9f4fa97450d7d48e560509 100644 (file)
@@ -286,6 +286,10 @@ switch_status_t megaco_context_add_termination(mg_context_t *ctx, mg_termination
             megaco_activate_termination(ctx->terminations[1]);
         }
         
+        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Bridging: %s (%s) <> %s (%s)\n", 
+                          ctx->terminations[0]->name, ctx->terminations[0]->uuid,
+                          ctx->terminations[1]->name, ctx->terminations[1]->uuid);
+        
         switch_ivr_uuid_bridge(ctx->terminations[0]->uuid, ctx->terminations[1]->uuid);
     }
 
index 631c8e7711fe4d22cf7151451b76eb3bbbe2e1c1..43e272522433fa2fde7e2bfa5a0d949384c157ad 100644 (file)
@@ -325,6 +325,7 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
     }
     
     tech_pvt->read_frame.flags = SFF_NONE;
+    tech_pvt->read_frame.codec = &tech_pvt->read_codec;
     status = switch_rtp_zerocopy_read_frame(tech_pvt->rtp_session, &tech_pvt->read_frame, flags);
 
     if (status != SWITCH_STATUS_SUCCESS && status != SWITCH_STATUS_BREAK) {