Please explain dlr -url..

159 views
Skip to first unread message

Project SH

unread,
Mar 28, 2024, 10:49:42 AM3/28/24
to Jasmin SMS Gateway
"I've successfully installed Jasmin SMS Gateway and ensured that my sms_logger.py script functions correctly. I've also tested connecting to a fake SMPP server and everything works fine. However, I have a question regarding the use of the dlr-url parameter in REST API calls.

http://host:1402/secure/send { "to": 19012233451, "from": "Jookies", "content": "Hello", "dlr": "yes", "dlr-level": 3 }
When I send an SMS using the REST API without the dlr-url parameter, the status in sms_logger.py shows CommandStatus.ESME_ROK. But when I include a dlr-url pointing to a any URL,
http://host:1402/secure/send { "to": 19012233451, "from": "Jookies", "content": "Hello", "dlr": "yes", "dlr-level": 3 "dlr-url":http://localhost/test }
I receive proper delivery reports (DLRs) from the fake SMPP server.

I'm wondering about the role and significance of the dlr-url parameter in this context. "I apologize if this seems like a trivial question, as I'm still learning."

Hernani Neto

unread,
Mar 29, 2024, 2:13:23 PM3/29/24
to Jasmin SMS Gateway
Regarding the dlr-url param the documentation says:
- Mandatory if dlr
- If a DLR is requested (dlr = ‘yes’), dlr-url MUST be set, if not, dlr value is reconsidered as ‘no’

Therefore, you only receive the delivery reports if dlr=true and dlr-url is setted

Ashish Khandagale

unread,
Jun 7, 2024, 5:12:50 AM6/7/24
to Jasmin SMS Gateway
hi,
I have created REST API for sending SMS with real SMPP connector, Also I can get SMS on mobile, but I didn't got ant delivery status even I provided dlr-ulr while sending SMS.
http://host/send?username=tester&password=password&to={reciever}1&content=hello&from={sender}&dlr=yes&dlr-url=https://host/dlr_reciever.php&dlr-level=3&dlr-method=GET

Thanks

charles njihia

unread,
Jul 26, 2024, 5:27:43 PM7/26/24
to Jasmin SMS Gateway
Hello Project SH

Ideally the dlr-url is the url to which the delivery response is to be sent to.So if you need to get the delivery message you have to provide the dlr callback

Would you kindly share the fake smpp that you are using?

Regards

Achyut Menon

unread,
Dec 10, 2024, 1:19:00 PM12/10/24
to Jasmin SMS Gateway
Hi,
I have another question related to DLR. Is there a way to restrict the parameters returned back by delivery level 2. For me it returns all these values"level_2_value" : {
                "message_status",
                "sub" ,
                "connector",
                "dlvrd"
                "err",
                "level",
                "subDate" ,
                "id" ,
                "text",
                "id_smsc",
                "doneDate"
              }
Instead if I need only these values
{
                "message_status"
                "connector"
                "level",
                "id"
              }
Is this possible. I am using 0.10.12 version of Jasmin

Reply all
Reply to author
Forward
0 new messages