Setting an Outbound Call Timeout to Hang Up Automatically After 10 Seconds on FreeSWITC

I’m trying to configure FreeSWITCH so that outbound calls terminate automatically after 10 seconds of being answered or just when the dialed number hangs up. Currently after I make an outbound call the the inbound CDR gets updated after 4 seconds as I would expect because thats how long the call is. However the outbound CDR takes 300 seconds before it gets updated. I’m fairly certain this is because the outbound call is only terminating after 300 seconds for some reason.

Here is the command I am currently using to make an outbound call
$command = “fs_cli -x ‘originate {origination_caller_id_number=$caller_id_number}sofia/gateway/$selected_trunk/$destination_number &park’”;

Any guidance on other configurations or files that might impact this setting would be greatly appreciated.

Thank you

This might be the timeout, the default is 300 seconds. Try setting this lower freeswitch/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c at master · signalwire/freeswitch · GitHub

Thank you for your response, I ended up taking out park from my command and that seemed to work