I have a question/issue that I am wondering if it is even possible to achieve.
We have G729 as our only codec to be used on the SIP trunk for all external calls. We also have a SIP trunk used for faxing that only allows ulaw for t.38 purposes (since it can only travel over ulaw).
We have several DIDs that point to extensions direct, but to first try fax detection. My theory/question is this: is it possible to have a DID to prefer to use ulaw for fax detection, but if a fax is not detected, to renegotiate as as g729? We are trying to find ways to ensure all calls to handsets with outside callers are g729 only.
I can confirm that if I do not specify our SIP fax trunk with
then calls will come through to the extension for that respective DID (with fax detection) as g729, simply because g729 is listed as the most preferred codec in Asterisk SIP settings. Obviously, when it begins to arrive as g729, faxes will never detect, so therefore fax calls will pass through to the telephone/followme.