Vr pin settings
The TJ11 has 6 pins (1-6), you need to connect the two middle ones (3 & 4). Pin 2 is connected to pin 3 and pin 5 is connected to pin 4. This is the same connection as on analog modems, where the signal is feed from 3 & 4 to 2 & 5 if the modem is onhook, so a telephone in series might work. For our application just connect 3 & 4
You need to set the a2_fmt parameter in the structure to "VOX_FMT". With A2VoxDelay you can control the timeout for hang-up is silent.