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.