From 0a9f38c81fb57ce80b8bf5d5c30641e6d8723128 Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 10 May 2022 09:15:46 -0400 Subject: [PATCH 1/2] Fixed url for BXML --- src/Voice/Controllers/APIController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Voice/Controllers/APIController.php b/src/Voice/Controllers/APIController.php index 4e57f60..1e156af 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 ( From bd827cbc800be435f8fd087c8635ceaaa332febf Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 10 May 2022 10:02:10 -0400 Subject: [PATCH 2/2] Fix to URL --- src/Voice/Controllers/APIController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Voice/Controllers/APIController.php b/src/Voice/Controllers/APIController.php index 1e156af..5360a9a 100644 --- a/src/Voice/Controllers/APIController.php +++ b/src/Voice/Controllers/APIController.php @@ -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) {