CELESTIA SANTISSIMA

This commit is contained in:
Daniil Gentili 2017-07-24 17:01:23 +02:00
parent c177a4dde0
commit e1503ab68a
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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();