From 2d3a952f39836947563ac722d2e4614ff4d44239 Mon Sep 17 00:00:00 2001 From: digvijay-plivo Date: Tue, 13 Aug 2019 08:17:09 +0530 Subject: [PATCH] add missing params for Make a call --- CHANGELOG.md | 2 ++ calls.go | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32ce948..cb2b3a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## [4.1.1] (https://github.com/plivo/plivo-go/tree/v4.1.1) (2019-08-08) - Add logic to handle invalid numbers for bulk SMS +- Add test case to handle invalid numbers for bulk SMS +- Add missing params for Make a call ## [4.1.0](https://github.com/plivo/plivo-go/tree/v4.1.0) (2019-03-12) - Add PHLO support diff --git a/calls.go b/calls.go index 6596fcc..717570e 100644 --- a/calls.go +++ b/calls.go @@ -78,13 +78,16 @@ type CallCreateParams struct { FallbackMethod string `json:"fallback_method,omitempty" url:"fallback_method,omitempty"` CallerName string `json:"caller_name,omitempty" url:"caller_name,omitempty"` SendDigits string `json:"send_digits,omitempty" url:"send_digits,omitempty"` - SendOnPreanswer bool `json:"send_on_preanswer,omitempty" url:"send_on_preanswer,omitempty"` + SendOnPreanswer string `json:"send_on_preanswer,omitempty" url:"send_on_preanswer,omitempty"` TimeLimit int64 `json:"time_limit,omitempty" url:"time_limit,omitempty"` HangupOnRing int64 `json:"hangup_on_ring,omitempty" url:"hangup_on_ring,omitempty"` MachineDetection string `json:"machine_detection,omitempty" url:"machine_detection,omitempty"` MachineDetectionTime int64 `json:"machine_detection_time,omitempty" url:"machine_detection_time,omitempty"` + MachineDetectionMethod string `json:"machine_detection_method,omitempty" url:"machine_detection_method,omitempty"` SipHeaders string `json:"sip_headers,omitempty" url:"sip_headers,omitempty"` RingTimeout int64 `json:"ring_timeout,omitempty" url:"ring_timeout,omitempty"` + ParentCallUUID string `json:"parent_call_uuid,omitempty" url:"parent_call_uuid,omitempty"` + ErrorIfParentNotFound string `json:"error_if_parent_not_found,omitempty" url:"error_if_parent_not_found,omitempty"` } // Stores response for making a call.