Skip to content

Commit

Permalink
parameterAdded (#141)
Browse files Browse the repository at this point in the history
* parameterAdded

* CallCreateParams

* updated Changelog

Co-authored-by: huzaif-plivo <[email protected]>
  • Loading branch information
ajay-plivo and huzaif-plivo authored Mar 17, 2022
1 parent 478d08d commit f828ecb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Change Log

## [7.7.1](https://github.com/plivo/plivo-go/tree/v7.7.1) (2022-03-17)
**Bug Fix - Voice**
- Added `machine_detection_url` and `machine_detection_method` in [Make a call API](https://www.plivo.com/docs/voice/api/call#make-a-call)

## [7.7.0](https://github.com/plivo/plivo-go/tree/v7.7.0) (2022-03-02)
**Fix go modules**
**Bug Fix - Fix go modules**
- Fix the import path for go modules to work

## [7.6.1](https://github.com/plivo/plivo-go/tree/v7.6.1) (2022-02-22)
Expand Down
2 changes: 1 addition & 1 deletion baseclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/google/go-querystring/query"
)

const sdkVersion = "7.7.0"
const sdkVersion = "7.7.1"

const lookupBaseUrl = "lookup.plivo.com"

Expand Down
34 changes: 18 additions & 16 deletions calls.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,24 @@ type CallCreateParams struct {
To string `json:"to,omitempty" url:"to,omitempty"`
AnswerURL string `json:"answer_url,omitempty" url:"answer_url,omitempty"`
// Optional parameters.
AnswerMethod string `json:"answer_method,omitempty" url:"answer_method,omitempty"`
RingURL string `json:"ring_url,omitempty" url:"ring_url,omitempty"`
RingMethod string `json:"ring_method,omitempty" url:"ring_method,omitempty"`
HangupURL string `json:"hangup_url,omitempty" url:"hangup_url,omitempty"`
HangupMethod string `json:"hangup_method,omitempty" url:"hangup_method,omitempty"`
FallbackURL string `json:"fallback_url,omitempty" url:"fallback_url,omitempty"`
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"`
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"`
SipHeaders string `json:"sip_headers,omitempty" url:"sip_headers,omitempty"`
RingTimeout int64 `json:"ring_timeout,omitempty" url:"ring_timeout,omitempty"`
AnswerMethod string `json:"answer_method,omitempty" url:"answer_method,omitempty"`
RingURL string `json:"ring_url,omitempty" url:"ring_url,omitempty"`
RingMethod string `json:"ring_method,omitempty" url:"ring_method,omitempty"`
HangupURL string `json:"hangup_url,omitempty" url:"hangup_url,omitempty"`
HangupMethod string `json:"hangup_method,omitempty" url:"hangup_method,omitempty"`
FallbackURL string `json:"fallback_url,omitempty" url:"fallback_url,omitempty"`
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"`
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"`
MachineDetectionUrl string `json:"machine_detection_url,omitempty" url:"machine_detection_url,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"`
}

// Stores response for making a call.
Expand Down

0 comments on commit f828ecb

Please sign in to comment.