jasmin icon indicating copy to clipboard operation
jasmin copied to clipboard

Jasmin Web-hook (dlr-url) | how to script in php

Open jaur-jaur opened this issue 2 years ago • 2 comments

Hi, I am using the script below to try retrieving DLR from SMSC. When I browse the php page, There are nothing displayed.

-My http request is http://xx.xx.xx.x:1401/send?username=smsuser&password=xxxx&dlr=yes&dlr-level=2dlr-url=http://host/dlr-request.php&dlr-method=POST&from=INFO NET&to=xxxxx&content=xxxxxxxxxxxxx

---dlr-request.php

<?php
$MO_SMS=$_POST;
//extract variable
extract($MO_SMS);
//display values
echo "<pre>";
var_dump($MO_SMS);
echo "</pre>";
// acking reception
echo "ACK/Jasmin";
?>

image

Can I get any help to just testing retrieving DLR

Thanks in advance

jaur-jaur avatar Mar 22 '22 16:03 jaur-jaur

Jasmin expect your page to return the content ACK/Jasmin. It's the only echo you should have I the page.

Your are free to use The POST or GET data your receive. You may trigger an action or save in a database.

kiswend avatar Mar 23 '22 19:03 kiswend

Stale issue detected, remove stale label or comment or this will be closed soon.

github-actions[bot] avatar Mar 23 '24 01:03 github-actions[bot]

This issue was closed because it has been stalled more than a year with no activity.

github-actions[bot] avatar May 07 '24 02:05 github-actions[bot]