!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/sms.picotech.app/public_html/vendor/vonage/client-core/src/Voice/NCCO/Action/   drwxr-xr-x
Free 28.44 GB of 117.98 GB (24.11%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Connect.php (4.59 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
Vonage\Voice\NCCO\Action;

use 
InvalidArgumentException;
use 
Vonage\Voice\Endpoint\EndpointInterface;
use 
Vonage\Voice\VoiceObjects\AdvancedMachineDetection;
use 
Vonage\Voice\Webhook;

class 
Connect implements ActionInterface
{
    public const 
EVENT_TYPE_SYNCHRONOUS 'synchronous';
    public const 
MACHINE_CONTINUE 'continue';
    public const 
MACHINE_HANGUP 'hangup';

    protected ?
string $from '';
    protected ?
string $eventType '';

    protected 
int $timeout 0;
    protected 
int $limit 0;
    protected 
string $machineDetection '';
    protected ?
Webhook $eventWebhook null;
    protected ?
string $ringbackTone '';
    protected ?
AdvancedMachineDetection $advancedMachineDetection null;

    public function 
__construct(protected EndpointInterface $endpoint)
    {
    }

    public static function 
factory(EndpointInterface $endpoint): Connect
    
{
        return new 
Connect($endpoint);
    }

    #[
\ReturnTypeWillChange]
    public function 
jsonSerialize(): array
    {
        return 
$this->toNCCOArray();
    }

    public function 
toNCCOArray(): array
    {
        
$data = [
            
'action' => 'connect',
            
'endpoint' => [$this->endpoint->toArray()],
        ];

        if (
$this->getTimeout()) {
            
$data['timeout'] = $this->getTimeout();
        }

        if (
$this->getLimit()) {
            
$data['limit'] = $this->getLimit();
        }

        if (
$this->getMachineDetection()) {
            
$data['machineDetection'] = $this->getMachineDetection();
        }

        if (
$this->getAdvancedMachineDetection()) {
            
$data['advancedMachineDetection'] = $this->getAdvancedMachineDetection()->toArray();
        }

        
$from $this->getFrom();

        if (
$from) {
            
$data['from'] = $from;
        }

        
$eventType $this->getEventType();

        if (
$eventType) {
            
$data['eventType'] = $eventType;
        }

        
$eventWebhook $this->getEventWebhook();

        if (
$eventWebhook) {
            
$data['eventUrl'] = [$eventWebhook->getUrl()];
            
$data['eventMethod'] = $eventWebhook->getMethod();
        }

        
$ringbackTone $this->getRingbackTone();

        if (
$ringbackTone) {
            
$data['ringbackTone'] = $ringbackTone;
        }

        return 
$data;
    }

    public function 
getFrom(): ?string
    
{
        return 
$this->from;
    }

    
/**
     * @return $this
     */
    
public function setFrom(string $from): self
    
{
        
$this->from $from;

        return 
$this;
    }

    public function 
getEventType(): ?string
    
{
        return 
$this->eventType;
    }

    public function 
setEventType(string $eventType): self
    
{
        if (
$eventType !== self::EVENT_TYPE_SYNCHRONOUS) {
            throw new 
InvalidArgumentException('Unknown event type for Connection action');
        }

        
$this->eventType $eventType;

        return 
$this;
    }

    public function 
getTimeout(): ?int
    
{
        return 
$this->timeout;
    }

    public function 
setTimeout(int $timeout): self
    
{
        
$this->timeout $timeout;

        return 
$this;
    }

    public function 
getLimit(): ?int
    
{
        return 
$this->limit;
    }

    public function 
setLimit(int $limit): self
    
{
        
$this->limit $limit;

        return 
$this;
    }

    public function 
getMachineDetection(): ?string
    
{
        return 
$this->machineDetection;
    }

    public function 
setMachineDetection(string $machineDetection): self
    
{
        if (
            
$machineDetection !== self::MACHINE_CONTINUE &&
            
$machineDetection !== self::MACHINE_HANGUP
        
) {
            throw new 
InvalidArgumentException('Unknown machine detection type');
        }

        
$this->machineDetection $machineDetection;

        return 
$this;
    }

    public function 
getEventWebhook(): ?Webhook
    
{
        return 
$this->eventWebhook;
    }

    public function 
setEventWebhook(Webhook $eventWebhook): self
    
{
        
$this->eventWebhook $eventWebhook;

        return 
$this;
    }

    public function 
getRingbackTone(): ?string
    
{
        return 
$this->ringbackTone;
    }

    public function 
setRingbackTone(string $ringbackTone): self
    
{
        
$this->ringbackTone $ringbackTone;

        return 
$this;
    }

    public function 
getAdvancedMachineDetection(): ?AdvancedMachineDetection
    
{
        return 
$this->advancedMachineDetection;
    }

    public function 
setAdvancedMachineDetection(AdvancedMachineDetection $advancedMachineDetection): static
    {
        
$this->advancedMachineDetection $advancedMachineDetection;

        return 
$this;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0052 ]--