# Send a message after video call complete

**URL:** <https://community.sendbird.com/t/send-a-message-after-video-call-complete/1350>\
**Category:** JavaScript\
**Tags:** chatsdk\
**Created:** [December 2, 2020, 5:30am UTC](https://community.sendbird.com/t/send-a-message-after-video-call-complete/1350 "2020-12-02T05:30:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajeev\_Bhaskaran](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/rajeev_bhaskaran/32/512_2.png) [@Rajeev\_Bhaskaran](https://community.sendbird.com/u/Rajeev_Bhaskaran)\
**Post date:** [December 2, 2020, 5:30am UTC](https://community.sendbird.com/t/send-a-message-after-video-call-complete/1350/1 "2020-12-02T05:30:08Z")

</div>

Hi ,

Am using booth sendbirdcall.js and sendbirdchat.js.

after user complete a call i want to trigger a message in the group channel.

what will be the best approach.

Thanks

---

<div class="post-metadata">

**Author:** ![walter.rodriguez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/walter.rodriguez/32/546_2.png) [@walter.rodriguez](https://community.sendbird.com/u/walter.rodriguez)\
**Post date:** [December 2, 2020, 11:54am UTC](https://community.sendbird.com/t/send-a-message-after-video-call-complete/1350/2 "2020-12-02T11:54:28Z")

</div>

You have listeners (when making and receiving calls)

```auto
const call = SendBirdCall.dial(dialParams, (call, error) => {
   ...
});
call.onEstablished = (call) => {
    ...
};
call.onConnected = (call) => {
    ...
};
call.onEnded = (call) => {
    ...
};
...

```

> **[Make your first call | Calls JavaScript SDK | Sendbird Docs](https://sendbird.com/docs/calls/v1/javascript/getting-started/make-first-call#2-step-4-make-a-call)**
>
> Learn how to make the first call using the Calls SDK for JavaScript.

You can invoke a function inside the **onEnded** method:

```auto
call.onEnded = (call) => {
    sendMessageToGroupChannel(call);
};
...
function sendMessageToGroupChannel(call) {
   // Send your message here
}

```

**Call** object has many useful methods for you to use. You can set a breakpoint and check all the properties.
