<div><div dir="auto">Annexb as well</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 27 Sep 2019 at 09:36, Mark Farmer <<a href="mailto:farmorg@gmail.com">farmorg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Thanks James, that's interesting. However my understanding is that all mention of the target codec should be removed but in this case it seems to be unchanged.</div><div dir="ltr"><br></div><div dir="ltr">According to this list:</div><div dir="ltr"><div><a href="https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml" target="_blank">https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml</a><br></div><div><br></div><div>G.729 is represented in the m=audio line by a value of 18 which is still present in the resulting INVITE.</div><div>The SDP from the initial INVITE from a phone:<br></div><div><br></div><div><div>v=0</div><div>o=- 1569572039 1569572039 IN IP4 <span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">xxx.xxx.xxx.xxx</span></div><div>s=Polycom IP Phone</div><div>c=IN IP4 <span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">xxx.xxx.xxx.xxx</span></div><div>b=AS:512</div><div>t=0 0</div><div>m=audio 2226 RTP/AVP 9 8 0 <b>18</b> 127</div><div>a=rtpmap:9 G722/8000</div><div>a=rtpmap:8 PCMA/8000</div><div>a=rtpmap:0 PCMU/8000</div><div><b>a=rtpmap:18 G729/8000</b></div><div>a=fmtp:18 annexb=no</div><div>a=rtpmap:127 telephone-event/8000</div><div>m=video 2228 RTP/AVP 109 34</div><div>a=rtpmap:109 H264/90000</div><div>a=fmtp:109 profile-level-id=42800d; packetization-mode=0</div><div>a=rtpmap:34 H263/90000</div><div>a=fmtp:34 CIF=1;QCIF=1;SQCIF=1</div></div><div><br></div><div>And the resulting outbound INVITE:</div><div><br></div><div><div>v=0</div><div>o=- 1569572039 1569572039 IN IP4 <span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">xxx.xxx.xxx.xxx</span></div><div>s=Polycom IP Phone</div><div>c=IN IP4 <span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">xxx.xxx.xxx.xxx</span></div><div>b=AS:512</div><div>t=0 0</div><div>m=audio 10552 RTP/AVP 9 8 0 <b>18</b> 127</div><div>a=rtpmap:9 G722/8000</div><div>a=rtpmap:8 PCMA/8000</div><div>a=rtpmap:0 PCMU/8000</div><div><b>a=rtpmap:18 G729/8000</b></div><div>a=rtpmap:127 telephone-event/8000</div><div>a=fmtp:18 annexb=no</div><div>a=sendrecv</div><div>a=rtcp:10553</div><div>a=ice-ufrag:NaBg56me</div><div>a=ice-pwd:oWZ4Hzrn4kJtnYfXo4Q7oCNx95</div><div>a=candidate:wWTC1VOV2dAOfI4x 1 UDP 2130706431 <span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">xxx.xxx.xxx.xxx</span> 10552 typ host</div><div>a=candidate:wWTC1VOV2dAOfI4x 2 UDP 2130706430 <span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">xxx.xxx.xxx.xxx</span> 10553 typ host</div><div>m=video 10574 RTP/AVP 109 34</div><div>a=rtpmap:109 H264/90000</div><div>a=rtpmap:34 H263/90000</div><div>a=fmtp:109 profile-level-id=42800d; packetization-mode=0</div><div>a=fmtp:34 CIF=1;QCIF=1;SQCIF=1</div><div>a=sendrecv</div><div>a=rtcp:10575</div><div>a=ice-ufrag:U1Lig1Dm</div><div>a=ice-pwd:wzCYNGN9FyuFLChyqqVR7YqLRE</div><div>a=candidate:wWTC1VOV2dAOfI4x 1 UDP 2130706431 <span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">xxx.xxx.xxx.xxx</span> 10574 typ host</div><div>a=candidate:wWTC1VOV2dAOfI4x 2 UDP 2130706430 <span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">xxx.xxx.xxx.xxx</span> 10575 typ host</div></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 26 Sep 2019 at 16:59, James Hogbin <<a href="mailto:james@ip-sentinel.com" target="_blank">james@ip-sentinel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">

<div style="word-wrap:break-word;line-break:after-white-space">I think this is helpful?
<div><br>
</div>
<div><a href="https://opensips.org/pipermail/users/2016-September/035510.html" target="_blank">https://opensips.org/pipermail/users/2016-September/035510.html</a></div>
<div><br>
</div>
<div>james<br>
<div><br>
<blockquote type="cite">
<div>
    <br>
    <p style="font-family:"Open Sans",sans-serif">
    <b><span style="font-family:"Open Sans",sans-serif;font-size:10pt;color:rgb(136,136,136)">James Hogbin</span></b>
    <b><span style="font-family:"Open Sans",sans-serif;font-size:8pt;color:rgb(136,136,136)"><br>Director</span></b>
    </p>
    <table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td><a href="http://ip-sentinel.com" target="_blank"><img border="0" alt="IP Sentinel Logo" src="cid:16d71d2ff75ac1cb8171" style="max-width: 100%;"></a></td></tr></tbody></table>
                <span style="font-family:"Open Sans",sans-serif;font-size:8pt;color:rgb(34,34,34)"><br>t. <a href="tel:+442030114150" target="_blank">+44 (0)20 3011 4150</a><br></span><span style="font-family:"Open Sans",sans-serif;font-size:8pt;color:rgb(34,34,34)">m. +44 7786910895<br></span><span style="font-family:"Open Sans",sans-serif;font-size:8pt;color:rgb(34,34,34)">w. <a href="https://www.ip-sentinel.com/" target="_blank">https://www.ip-sentinel.com</a><br></span><table>
                <tbody><tr>
                        </tr>
                <tr>
                        
                </tr>
                <tr>
                        
                </tr>
                <tr>
                        
                </tr>
    </tbody></table>
    <br>
    
On 26 Sep 2019, at 16:37, Mark Farmer <<a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a>> wrote:</div>
<br class="m_4829127402977900970gmail-m_-1474449490814213295Apple-interchange-newline">
<div>
<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="m_4829127402977900970gmail-m_-1474449490814213295gmail_signature"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div>
</blockquote>
</div>
<br>
</div>



    <p style="font-family:"Open Sans",Arial,sans-serif;padding:5px;background-color:rgb(213,234,255);background-position:initial initial;background-repeat:initial initial">
    <span style="font-family:"Open Sans",sans-serif;font-size:8pt;color:red">IP Sentinel Disclaimer <br></span>
    <span style="font-family:"Open Sans",sans-serif;font-size:6pt;color:black">The information contained in this e-mail, and any attachment, is confidential and is intended solely for the use of the intended recipient. Access, copying or re-use of the e-mail or any attachment, or any information contained therein, by any other person is not authorized. Unintended recipients are prohibited from taking action on the basis of information in this e-mail. If you are not the intended recipient or have received this email in error, please notify the sender immediately by return email and delete the email from your computer.
E-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be intercepted, deleted or interfered with without the knowledge of the sender or the intended recipient. We do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of computer viruses or other defects. 
. IP Sentinel Ltd is a limited company registered in England and Wales under Registered Number 08648097. Registered Office: Newnhams Wood, Horsted Keynes, West Sussex, RH17 7BT. </span>
    </p><span style="font-size:1pt;color:white">Q3dhRSrm_disclaimer</span>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_4829127402977900970gmail_signature">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>