@@ -40,7 +40,7 @@ func NewCallService(opts ...option.RequestOption) (r CallService) {
4040// it.
4141func (r * CallService ) Accept (ctx context.Context , callID string , body CallAcceptParams , opts ... option.RequestOption ) (err error ) {
4242 opts = slices .Concat (r .Options , opts )
43- opts = append ([]option.RequestOption {option .WithHeader ("Accept" , "" )}, opts ... )
43+ opts = append ([]option.RequestOption {option .WithHeader ("Accept" , "*/* " )}, opts ... )
4444 if callID == "" {
4545 err = errors .New ("missing required call_id parameter" )
4646 return
@@ -53,7 +53,7 @@ func (r *CallService) Accept(ctx context.Context, callID string, body CallAccept
5353// End an active Realtime API call, whether it was initiated over SIP or WebRTC.
5454func (r * CallService ) Hangup (ctx context.Context , callID string , opts ... option.RequestOption ) (err error ) {
5555 opts = slices .Concat (r .Options , opts )
56- opts = append ([]option.RequestOption {option .WithHeader ("Accept" , "" )}, opts ... )
56+ opts = append ([]option.RequestOption {option .WithHeader ("Accept" , "*/* " )}, opts ... )
5757 if callID == "" {
5858 err = errors .New ("missing required call_id parameter" )
5959 return
@@ -66,7 +66,7 @@ func (r *CallService) Hangup(ctx context.Context, callID string, opts ...option.
6666// Transfer an active SIP call to a new destination using the SIP REFER verb.
6767func (r * CallService ) Refer (ctx context.Context , callID string , body CallReferParams , opts ... option.RequestOption ) (err error ) {
6868 opts = slices .Concat (r .Options , opts )
69- opts = append ([]option.RequestOption {option .WithHeader ("Accept" , "" )}, opts ... )
69+ opts = append ([]option.RequestOption {option .WithHeader ("Accept" , "*/* " )}, opts ... )
7070 if callID == "" {
7171 err = errors .New ("missing required call_id parameter" )
7272 return
@@ -79,7 +79,7 @@ func (r *CallService) Refer(ctx context.Context, callID string, body CallReferPa
7979// Decline an incoming SIP call by returning a SIP status code to the caller.
8080func (r * CallService ) Reject (ctx context.Context , callID string , body CallRejectParams , opts ... option.RequestOption ) (err error ) {
8181 opts = slices .Concat (r .Options , opts )
82- opts = append ([]option.RequestOption {option .WithHeader ("Accept" , "" )}, opts ... )
82+ opts = append ([]option.RequestOption {option .WithHeader ("Accept" , "*/* " )}, opts ... )
8383 if callID == "" {
8484 err = errors .New ("missing required call_id parameter" )
8585 return
0 commit comments