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