Sms & Fax-old - Action à la réception - CGI exemple
... / Action à la réception - C...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

Action à la réception - CGI exemple

Von
SylvainL20
Erstellungsdatum 2023-09-29 12:24:47 (edited on 2024-09-04 11:10:30) in Sms & Fax-old

Bonjour,

Nous envoyons des SMS grâce à l'option "Envoyer des SMS depuis une adresse e-mail".
Cela fonctionne très bien.

Maintenant nous essayons d'utiliser un CGI lorsque la personne répond au SMS qu'elle a reçu.
Dans la partie "Options >> Options des réponses"
Dans Action à la réception nous avons bien choisi "Appeler un CGI" et renseigné une adresse URL de la forme : https://xxx.xxx.fr:8099/callback.

1 - Je ne sais pas si la page CGI doit être une page php, html, perl ou autre.
2 - Malgré de nombreuses recherche je n'ai aucune idée du code à mettre dans cette page CGI. Auriez-vous un exemple de fichier permettant de récupérer le numéro et le message reçu.

PS : Mon apache détecte bien un appel à la CGI car des lignes apparaissent dans mon access.log
> 137.74.75.196 - - [29/Sep/2023:14:41:14 +0200] "\x16\x03\x01\x01" 400 226
> 137.74.75.195 - - [29/Sep/2023:14:41:14 +0200] "\x16\x03\x01\x01" 400 226
> 137.74.75.196 - - [29/Sep/2023:14:41:14 +0200] "\x16\x03\x01\x01" 400 226
> 137.74.75.195 - - [29/Sep/2023:14:41:14 +0200] "\x16\x03\x01\x01" 400 226
> 137.74.75.196 - - [29/Sep/2023:14:41:14 +0200] "\x16\x03\x01\x01" 400 226
> 137.74.75.195 - - [29/Sep/2023:14:41:14 +0200] "\x16\x03\x01\x01" 400 226

Merci de votre aide.