CELESTIA SANTISSIMA
This commit is contained in:
parent
c177a4dde0
commit
e1503ab68a
@ -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.
|
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';
|
$controller->configuration['log_file_path'] = $controller->getOtherID().'.log';
|
||||||
|
|
||||||
// We need to receive updates in order to know that the other use accepted the call
|
// We need to receive updates in order to know that the other use accepted the call
|
||||||
|
@ -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.
|
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';
|
$controller->configuration['log_file_path'] = $controller->getOtherID().'.log';
|
||||||
|
|
||||||
// We need to receive updates in order to know that the other use accepted the call
|
// We need to receive updates in order to know that the other use accepted the call
|
||||||
|
@ -276,7 +276,7 @@ class MTProto extends \Volatile
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
foreach ($this->calls as $id => $controller) {
|
foreach ($this->calls as $id => $controller) {
|
||||||
if (!is_object($controller)) {
|
if (!is_object($controller) || $controller->getMadeline() !== $this) {
|
||||||
unset($this->calls[$id]);
|
unset($this->calls[$id]);
|
||||||
} elseif ($controller->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_ENDED) {
|
} elseif ($controller->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_ENDED) {
|
||||||
$controller->discard();
|
$controller->discard();
|
||||||
|
Loading…
Reference in New Issue
Block a user