<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div><br></div><div>I'm working on request to support SIP trunking with IAD boxes connected to legacy PBXs.</div><div>Those PBXs are using ISDN for dial-in-only remote management.</div><div><br></div><div>For successful management sessions, IADs require so-called Clearmode support (rfc4040).</div><div>In my target use-case, a management session involves the following devices:</div><div><br></div><div>Admin PC ----  ISDN modem ---- IAD --- Asterisk ---- IAD --- PBX</div><div><br></div><div>In this use-case, only Clearmode passthrough is needed as ISDN/Clearmode SIP conversion is done by IAD devices but as Asterisk also supports ISDN, "Clearmode gateway-ing" can help other use cases.<br></div><div><br></div><div>From rfc4040, an example SDP is as follows:<br>audio/clearmode; ptime=10<br><br>m=audio 12345 RTP/AVP 97<br>a=rtpmap:97 CLEARMODE/8000<br>a=ptime:10</div><div><br></div><div>Also from rfc4040:</div><div>"Clearmode does not use any encoding or decoding.  It just provides packetization.<br><br>Clearmode assumes that the data to be handled is sample oriented with one octet (8bits) per sample.  There is no restriction on the number of samples per packet other than the 64 kbyte limit imposed by the IP protocol.  The number of samples SHOULD be less than the path maximum transmission unit (MTU) minus combined packet header length.  If the environment is expected to have tunnels or security encapsulation as part of operation, the number of samples SHOULD be reduced to allow for the extra header space.<br><br>The payload packetization/depacketization for Clearmode is similar to the Pulse Code Modulation (PCMU or PCMA) handling described in RFC3551 [5].  Each Clearmode octet SHALL be octet-aligned in an RTP packet.  The sign bit of each octet SHALL correspond to the most significant bit of the octet in the RTP packet."</div><div><br></div><div><br></div><div>1. Would Clearmode passthough be a welcome addition ? If positive, which are the best stack candidates (pjsip, cna_sip, chan_pri, ...) for it ?<br></div><div>2. Is passthough support much simpler than full support (gateway and passthrough), taking testing into account ?</div><div>3. What could be the basics steps for such addition ?</div><div><br></div><div>Best regards<br></div></div></div></div>