remove_gsm_from_quarantine
php
bool remove_gsm_from_quarantine(string $gsm)Removes the specified GSM number from SMS quarantine. Returns true on success or false on error.
Parameters:
$gsm- GSM number to remove from quarantine
Requirements:
- SMS quarantine must be enabled for the account
- The GSM number must exist in the database
- The GSM number must be quarantined
Example (removing one number):
php
$gsm = '+48123456789';
$result = remove_gsm_from_quarantine($gsm);
if ($result) {
print($gsm . ' - removed from quarantine');
} else {
print($gsm . ' - NOT removed (not quarantined or an error occurred)');
}Example (removing multiple numbers):
php
$gsms = array('+48987654321', '+48123456789', '+48111111111');
foreach ($gsms as $gsm) {
$result = remove_gsm_from_quarantine($gsm);
if ($result) {
print($gsm . ' - removed from quarantine');
} else {
print($gsm . ' - NOT removed (not quarantined or an error occurred)');
}
}