you need to define what silence is.
from my point of view, doesn't have sense to start recording if a channel is not bridged ( conversation established ). Only when A and B legs are bridged and answered, recording should start.
also, you can remove generated recordings for A and B leg if both were not bridged and/or answered.
its all based on your business logic and where you expect the conversation to be.
in my contact center, i start recording when the Agent leg answers the call and have no silence in recorded files
on Agent Answer:
| "api uuid_setvar
1318cbc3-ad28-498d-998f-10157ae449f2 bridge_pre_execute_aleg_app
record_session" |
| "api uuid_setvar
1318cbc3-ad28-498d-998f-10157ae449f2 bridge_pre_execute_aleg_arg
/nfs/nexios/recordings/5/queue_recordings/2018-03-12.19.42.22-385916331550.wav" |
| "api uuid_setvar
1318cbc3-ad28-498d-998f-10157ae449f2 bridge_pre_execute_aleg_data
/nfs/nexios/recordings/5/queue_recordings/2018-03-12.19.42.22-385916331550.wav" |
| "bgapi uuid_bridge
1318cbc3-ad28-498d-998f-10157ae449f2
32dfe8e2-6eda-4bd6-8f73-fd8d6ac531c1" |