diff --git a/src/Voice/Controllers/APIController.php b/src/Voice/Controllers/APIController.php index 4e57f60..5360a9a 100644 --- a/src/Voice/Controllers/APIController.php +++ b/src/Voice/Controllers/APIController.php @@ -264,7 +264,7 @@ public function modifyCallBxml( ) { //prepare query string for API call - $_queryBuilder = '/api/v2/accounts/{accountId}/calls/{callId}'; + $_queryBuilder = '/api/v2/accounts/{accountId}/calls/{callId}/bxml'; //process optional query parameters $_queryBuilder = APIHelper::appendUrlWithTemplateParameters($_queryBuilder, array ( @@ -284,7 +284,7 @@ public function modifyCallBxml( //set HTTP basic auth parameters Request::auth($this->config->getVoiceBasicAuthUserName(), $this->config->getVoiceBasicAuthPassword()); - $_httpRequest = new HttpRequest(HttpMethod::POST, $_headers, $_queryUrl); + $_httpRequest = new HttpRequest(HttpMethod::PUT, $_headers, $_queryUrl); //call on-before Http callback if ($this->getHttpCallBack() != null) {