Page MenuHomePhabricator

Fix SMS gateway in https://cinquepermille.wikimedia.it/ not allowing a nice sender name
Closed, ResolvedPublic

Description

This Task tracks the upstream request sent today to our SMS gateway provider because their SDK is partially borked with PHP7 and moreover it seems it does not allow to change the SMS sender specifying a nice sender name.

The service is in use for the reminder here:

Event Timeline

A seguito dell'entrata in vigore della delibera 42/13/CIR e successive modifiche ed integrazioni, l'AGCOM ha introdotto nuove regole per l'utilizzo dei mittenti dei messaggi SMS. L'utilizzo dei mittenti personalizzati è permesso soltanto ai clienti non consumatori finali, cioè da aziende o da coloro che possiedono una partita IVA.

It seems it's not a bug but a feature. We have to send a certified email (PEC). The staff is preparing this communication.

$ ssh boz@intreccio.wikimedia.it
$ /var/www/cinquex1000/www/wp-content/themes/wikimedia/inc/test-sms.php 
array(4) {
  ["CODE_RESPONSE"]=>
  string(2) "01"
  ["CID"]=>
  string(1) "0"
  ["ORDERID"]=>
  array(1) {
    [0]=>
    string(9) "<omissis>"
  }
  ["TO_ERRORO_LIST"]=>
  array(1) {
    [0]=>
    string(2) "
"
  }
}

sms-asd.jpg (1×720 px, 47 KB)

Lovely sender. Isn't it? (It's not in my contacts. It's really an AGCOM-approved custom sender. Whoooo! The bureaucracy is so cool!)