question

Chady Boutros avatar image
Chady Boutros asked Phong Vu answered

How to differentiate inbound and outbound webhook?

If we dial main company number we get hook for outgoing and incoming both. How we can identify?

webhooks
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered

You can define the call direction rely on an event with the extension id in the parties object. See this example.

// No extensionId => internal call
"parties": [
        {
          "accountId": "809646016",
          "id": "p-a0d7bca1f4a83z18613348f51z3343dxxx",
          "direction": "Outbound",
          "to": {
...
// has extensionId => call to/from this extension
"parties": [
        {
          "accountId": "809646XXX",
          "extensionId": "62242421XXX",
          "id": "p-a0d7bca1f4a83z18613348f51z3343dxxx",
          "direction": "Inbound",
          "to": {
                 


You can read this blog for more explanation about telephony session events.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys