If we dial main company number we get hook for outgoing and incoming both. How we can identify?
© 1999-2024 RingCentral, Inc. All rights reserved.
Privacy Notice
If we dial main company number we get hook for outgoing and incoming both. How we can identify?
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.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.