Events do not work on calls Xsi-Events in the cloud PBX Beeline.
Subscribe to events:
PUT https://cloudpbx.beeline.ru/apis/portal/subscription { "expires": 3600, "subscriptionType": "BASIC_CALL", "url": "https://example.ru/some/url" } The answer is 200 OK:
{ "subscriptionId": "0d62739d-84ed-4198-884e-6c3f29dae147", "expires": 3600 } I receive information on the created subscription:
GET https://cloudpbx.beeline.ru/apis/portal/subscription?subscriptionId=0d62739d-84ed-4198-884e-6c3f29dae147 { "subscriptionId": "0d62739d-84ed-4198-884e-6c3f29dae147", "targetType": "GROUP", "targetId": "MPBX_g_103210", "subscriptionType": "BASIC_CALL", "expires": 3591, "url": "https://example.ru/some/url" } I start to call, but nothing comes to the transmitted url. The URL was correct (not the one in the example above), I checked it - it accepts requests. I also tried hookbin.com, requestb.in - requests do not come either. In this case, the subscription disappears as soon as the PBX of the biline sees the call. That is, in response to:
https://cloudpbx.beeline.ru/apis/portal/subscription?subscriptionId=0d62739d-84ed-4198-884e-6c3f29dae147 Immediately begins to return:
{ "errorCode": "GetSubscriptionInfoError", "description": "Не удалось получить информацию" } I repeated it many times - I created a subscription, I receive information on it GET https://cloudpbx.beeline.ru/apis/portal/subscription, but as soon as the call comes in, it starts returning an error instead of subscription data.
Those. Beeline support for this product can not be found.