switch($api_method) {
case"connect":
$rest_client_config = json_decode(file_get_contents('rest_client_config.json'), true);
$incoming_data['restClientConfig'] = $rest_client_config;
$incoming_data['sipLogin'] = "1234";
$incoming_data['sipAuthenticationName'] = "1234";
$incoming_data['sipPassword'] = "password";
$incoming_data['sipDomain'] = "sip-pbx-address";
$incoming_data['sipOutboundProxy'] = "sip-pbx-address";
$incoming_data['sipPort'] = "5060";
header('HTTP/1.1', true, 200);
header('Content-Type: application/json');
echo json_encode($incoming_data);
break;
...
}