Legacy Dev Forum Posts

 View Only

Sign Up

Workaround for hanging up a call?

  • 1.  Workaround for hanging up a call?

    Posted 06-05-2025 18:10

    alex | 2016-08-05 17:29:16 UTC | #1

    We have an an integration with PureCloud built on v1 of the api. I'm working on converting it to v2, but I've run into a problem, namely that the platform our application is built on apparently does not support PATCH http requests.

    Currently, the only PATCH request we need to make is for hanging up calls. In our v1 implementation, we were doing a PUT to each participant of the call with a payload of '{"state": "DISCONNECTED"}'. In v2 you can only make PATCH requests to this path.

    Is there any other way to accomplish a hangup that wouldn't use a PATCH request? Or am I out of luck?


    tim.smith | 2016-08-05 17:35:50 UTC | #2

    Are you by chance using Java and the Jersey HTTP client?


    alex | 2016-08-05 17:43:43 UTC | #3

    No, we've got a Salesforce.com application and are making the request using their proprietary language Apex.


    KevinGlinski | 2016-08-05 17:48:48 UTC | #4

    Apex is a superset of java so it is a possibility that they are using jersey. Looks like you are not alone though. There is a workaround here, not sure if it works or not http://salesforce.stackexchange.com/questions/57215/how-can-i-make-a-patch-http-callout-from-apex


    alex | 2016-08-05 18:25:37 UTC | #5

    Unfortunately the workaround mentioned (using POST and setting the X-HTTP-Method-Override header) doesn't appear to work. It would rely on the PureCloud servers looking for that header, which it seems they do not because I get a "HTTP 405 Method Not Allowed" response.


    KevinGlinski | 2016-08-05 18:30:47 UTC | #6

    oh sorry, missed the line in the response saying the server had to watch for the header


    anon49642543 | 2016-08-08 19:43:57 UTC | #7

    @KevinGlinski, do we know how our own Salesforce embedded client is handling this? I'm hopeful if they were able to work around this Salesvue will be able to do the same.


    tim.smith | 2016-08-08 20:00:42 UTC | #8

    The PureCloud for Salesforce client is not using Apex; it's a web app that's iframed into Salesforce.


    system | 2017-08-28 19:26:08 UTC | #9


    This post was migrated from the old Developer Forum.

    ref: 255