This will certainly block T.38. MAybe we should send some other error code which indicates that this media is not supported. Intelligent devices may then try to fallback to G.711.
regards klaus
Jean-Michel Hiver wrote:
You can use search() to search for a T.38 media line in the SDP and then reject the INVITE using sl_send_reply("403","T.38 not allowed");
OK. Typically, I have this in the SDP media lines:
m=image 6202 udptl t38. a=T38FaxVersion:0. a=T38MaxBitRate:14400. a=T38FaxMaxBuffer:1024. a=T38FaxMaxDatagram:122. a=T38FaxRateManagement:transferredTCF. a=T38FaxUdpEC:t38UDPRedundancy.
So, do you reckon doing:
if (search("(a|A)=(T|t)38")) { sl_send_reply("403","T.38 not allowed. Use ulaw instead"); }
Will do the trick?
Cheers, Jean-Michel.