# danog\MadelineProto\VoIP\DiscardReason: Why was the call discarded?

[Back to index](../../../index.html)

> Author: Daniil Gentili <daniil@daniil.it>  
  

Why was the call discarded?  




## Constants
* `danog\MadelineProto\VoIP\DiscardReason::MISSED`: We missed the call

* `danog\MadelineProto\VoIP\DiscardReason::DISCONNECTED`: The phone call was disconnected

* `danog\MadelineProto\VoIP\DiscardReason::HANGUP`: The phone call ended normally

* `danog\MadelineProto\VoIP\DiscardReason::BUSY`: The phone call was discarded because the user is busy in another call

* `danog\MadelineProto\VoIP\DiscardReason::MIGRATE_CONFERENCE_CALL`: The phone call was upgraded to a [conference call »](https://core.telegram.org/api/group-calls#conference-calls).
  
  Do not pass this reason manually, use `VoIP::migrateToConference()` instead.

## Properties
* `$name`: `string` 
* `$value`: `string` 

## Method list:
* [`cases(): array`](#cases)
* [`from(string|int $value): static`](#from)
* [`tryFrom(string|int $value): ?static`](#tryFrom)

## Methods:
### <a name="cases"></a> `cases(): array`





### <a name="from"></a> `from(string|int $value): static`




Parameters:

* `$value`: `string|int`   



### <a name="tryFrom"></a> `tryFrom(string|int $value): ?static`




Parameters:

* `$value`: `string|int`   



---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
