public function stopRecording($liveCallUuid, $url = null)
    {
        if (empty($liveCallUuid)) {
            throw new PlivoValidationException(
                "Which call to stop recording? No callUuid given");
        }

        $params = [];
        
        if (!empty($url)) {
            $params = ['URL' => $url];
        }
        
        
        $this->client->delete(
            $this->uri . $liveCallUuid . '/Record/',
            $params
        );
    }
public function stopRecording($liveCallUuid, $url = null)
    {
        if (empty($liveCallUuid)) {
            throw new PlivoValidationException(
                "Which call to stop recording? No callUuid given");
        }

        $params = [];
        
        if (!empty($url)) {
            $params = ['URL' => $url];
        }
        
        
        $this->client->delete(
            $this->uri . $liveCallUuid . '/Record/',
            $params
        );
    }
public function stopRecording ( $ liveCallUuid , $ url = null ) { if ( empty ( $ liveCallUuid ) ) { throw new PlivoValidationException ( "Which call to stop recording? No callUuid given" ) ; } $ params = [ ] ; if ( ! empty ( $ url ) ) { $ params = [ 'URL' => $ url ] ; } $ this -> client -> delete ( $ this -> uri . $ liveCallUuid . '/Record/' , $ params ) ; }
Stop recording a live call

@param string $liveCallUuid
@param string|null $url - You can specify a record URL to stop only one record. By default all recordings are stopped.
@throws PlivoValidationException
Stop recording a live call