jookies / jasmin

Jasmin - Open source SMS gateway
http://jasminsms.com
Other
1.02k stars 549 forks source link

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

Closed jaur-jaur closed 4 months ago

jaur-jaur commented 2 years ago

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

kiswend commented 2 years ago

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.

github-actions[bot] commented 5 months ago

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

github-actions[bot] commented 4 months ago

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