<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Been looking at this for a while now and it just won't play ball.<div>I have an avp defined:</div><div><br></div><div><div># Codecs we do NOT support!</div><div>$avp(BadCodec) = "G729";</div><div>$avp(BadCodec) = "G729a";</div><div><br></div><div>Then I use a for each to remove any instances of the codecs:</div><div><br></div><div><div>for ($var(ToDelete) in $(avp(BadCodec)[*]))</div><div>                if (codec_delete($var(ToDelete))) {</div><div>                            xlog("CUSTOM_LOG: Invalid codec detected and deleted: $var(ToDelete)");</div><div>                }</div></div><div><br></div><div>sipmsgops reports that it's trying to remove codecs:</div><div><br></div><div>DBG:sipmsgops:codec_delete: deleting codec <G729a> with clock <><br></div><div>---</div><div>DBG:sipmsgops:codec_delete: deleting codec <G729> with clock <><br></div><div>---</div><div><br></div><div>My custom logs only generate a single entry since only G729 is present in SDP:</div><div><br></div><div>CUSTOM_LOG: Invalid codec detected and deleted: G729<br></div><div><br></div><div>But when the call is routed, the G729 codecs remain in the SDP:</div><div><br></div><div>a=rtpmap:18 G729/8000<br></div><div><br></div><div>Can anyone suggest why might that be?</div><div><br></div><div>Regards</div><div>Mark.</div><div><br></div><div><br></div><div dir="ltr" class="gmail_signature"></div></div></div></div></div></div></div></div></div></div>