gsm_to_quarantine
php
bool gsm_to_quarantine(string $gsm, array $dateToSet)Adds the specified GSM number to SMS quarantine with the supplied dates. If the number is already partially quarantined (some dates are set), existing values are preserved. Returns true on success or false on error.
Parameters:
$gsm- GSM number (for example'+48123456789')$dateToSet- array of three past Unix timestamps (integers):[0]- quarantine date (quarantine)[1]- quarantine leave date (quarantine_leave)[2]- blocked date (blocked)
Requirements:
- SMS quarantine must be enabled for the account
- The GSM number must exist in the database
- All three dates must be positive integer timestamps in the past
- The number must not already be fully quarantined (all three dates set)
Example:
php
$time = time() - 60;
$gsm = '+48123456789';
gsm_to_quarantine($gsm, array($time, $time, $time));