--- channels/chan_sip.c 2008-07-10 05:55:45.000000000 +1200 +++ channels/chan_sip.c 2008-08-06 10:11:44.000000000 +1200 @@ -6667,6 +6667,7 @@ add_header(&req, "X-asterisk-Info", "SIP re-invite (External RTP bridge)"); if (!ast_test_flag(&p->flags[0], SIP_NO_HISTORY)) append_history(p, "ReInv", "Re-invite sent"); + try_suggested_sip_codec(p); add_sdp(&req, p); /* Use this as the basis */ initialize_initreq(p, &req); @@ -7021,6 +7022,7 @@ ast_log(LOG_DEBUG, "T38 is in state %d on channel %s\n", p->t38.state, p->owner ? p->owner->name : ""); add_t38_sdp(&req, p); } else if (p->rtp) + try_suggested_sip_codec(p); add_sdp(&req, p); } else { add_header_contentLength(&req, 0);