Andreas Granig writes:
But as a cruel quick hack you could theoretically use search() from textops module for INVITEs and reply with 488 if you only find high-bandwidth-codecs in the SDP body. Just an idea...
or if there are both, remove high bandwidth ones from sdp of invite so that they are not offered for negotiation. usually, however, g711 is used as a fallback and if you remove that, call may not succeed at all.
-- juha