Hello everyone,
I want to set up recording in my custom context in extensions_custom.conf
I have registered an extension (e.g. 6001) and checked Force to all recording options in the advanced setting of that extension.
however when I call from this extension to my custom context, everything seems to execute within it, but there is no call record for my 6001 extension.
So I started experimenting with sub-record-check, but I’m not entirely sure if I understand all the arguments, even after checking extension_additional.conf.
The third argument is clear - It declares the priority of recording, so values can be : yes | no | never | force | dontcare
But what about the first and second arguments? What do they represent? I assume they should be a CID and DID but theese argument are changing depending on internal, external or from-trunk calls.
Could someone please explain this to me?
I’ve tried many combinations and for me seems to work this one:
same => n, Gosub(sub-record-check,s,1(exten,${CALLERID(num)},dontcare))
After applying this, my custom extension is recorded. However, is it correct? Could it cause inappropriate behavior elsewhere in FreePBX?
Thank you for any insights.