I have a server that listens to NCCO request from nexmo. My nexmo application is configured to forward all incoming calls to this server. When an NCCO is requested for an incoming call, I return an NCCO with "connect" action along with a websocket url and the call gets connected.
But in certain cases, I want to decline the call. What should be a correct NCCO response for that.
Right now when I write back empty string to NCCO request, then on the calling phone(my phone, not nexmo number) I hears one or two rings and then it just stays on "Calling screen" on my phone and nothing happens. No ringing sound comes and call also stays connected.