From e1503ab68accd8353778fe24ee08f604cb3eb755 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 24 Jul 2017 17:01:23 +0200 Subject: [PATCH] CELESTIA SANTISSIMA --- README.md | 2 +- docs/index.md | 2 +- src/danog/MadelineProto/MTProto.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 89ee2128..4984804b 100644 --- a/README.md +++ b/README.md @@ -433,7 +433,7 @@ MadelineProto works using raw signed PCM audio with the sample rate and the bit Requesting calls is easy, just run the `request_call` method. ``` -$controller = $MadelineProto->request_call('@danogentili')->play('input.raw')->then('inputb.raw')->setHoldFiles(['hold.raw'])->setOutputFile('output.raw'); +$controller = $MadelineProto->request_call('@danogentili')->play('input.raw')->then('inputb.raw')->playOhHold(['hold.raw'])->setOutputFile('output.raw'); $controller->configuration['log_file_path'] = $controller->getOtherID().'.log'; // We need to receive updates in order to know that the other use accepted the call diff --git a/docs/index.md b/docs/index.md index 263d8db6..6b08a135 100644 --- a/docs/index.md +++ b/docs/index.md @@ -437,7 +437,7 @@ MadelineProto works using raw signed PCM audio with the sample rate and the bit Requesting calls is easy, just run the `request_call` method. ``` -$controller = $MadelineProto->request_call('@danogentili')->play('input.raw')->then('inputb.raw')->setHoldFiles(['hold.raw'])->setOutputFile('output.raw'); +$controller = $MadelineProto->request_call('@danogentili')->play('input.raw')->then('inputb.raw')->playOhHold(['hold.raw'])->setOutputFile('output.raw'); $controller->configuration['log_file_path'] = $controller->getOtherID().'.log'; // We need to receive updates in order to know that the other use accepted the call diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index 84bfab5e..9ca733e1 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -276,7 +276,7 @@ class MTProto extends \Volatile return; } foreach ($this->calls as $id => $controller) { - if (!is_object($controller)) { + if (!is_object($controller) || $controller->getMadeline() !== $this) { unset($this->calls[$id]); } elseif ($controller->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_ENDED) { $controller->discard();