Asterisk Call Recording

I am facing issues with call recording in asterisk using mixmonitor function. Recording is fine but the issue is : lets assume we have two extensions .i.e 6000 & 6001. When 6000 calls to 6001 recording gets started and file created in given directory for the time period of call session. Now the problem i want to discuss here is that asterisk creates file for whole session time period in which lot of silence period is also recorded that is useless just useless consumtion of space.

I want a sollution in which only voice is recorded during whole call session irrespective of call time period and silence period is excluded. Can anyone have the sollution for that problem please let me know.

Thanks in advance :smile: