jookies / jasmin

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

DLR not received #1050

Open eshetua opened 2 years ago

eshetua commented 2 years ago

Hello!

We use the REST API to send messages and request level 3 DLR with all the necessary configs. It looks like DLR messages are not properly thrown or show as SMS-MO in the messages log (excerpt below). The messages send to the user phone properly ... it's just that further DLR statuses are not sent back to our callback URL.

2022-04-15 20:08:43 INFO 2858991 SMS-MT [cid:WESEND3] [queue-msgid:ff88ea6d-9af7-44a6-97ae-b83c1f131892] [smpp-msgid:b'5f878c79'] [status:CommandStatus.ESME_ROK] [prio:3] [dlr:RegisteredDeliveryReceipt.SMSC_DELIVERY_RECEIPT_REQUESTED] [validity:none] [from:b'AfroMSG'] [to:b'XXX'] [content:b'\xfe\xff\x00D\x00e\x00l\x00i\x00v\x00e\x00r\x00y\x00 \x00c\x00h\x00e\x00c\x00k\x00!\x00 '] 2022-04-15 20:08:45 INFO 2858991 SMS-MO [cid:WESEND2] [queue-msgid:f1283b35-bbb4-4af0-a164-3d87f715adbe] [status:CommandStatus.ESME_ROK] [prio:None] [validity:None] [from:b'XXX'] [to:b'AfroMSG'] [content:b'id:1602718841 submit date:2204152009 done date:2204152009 stat:DELIVRD err:000']

We use 1 for dlr_msgid since one is hex and another is decimal for the message ids. We have also tried switching between data_sm and deliver_sm for dlr_pdu value inside jasmin.cfg. What are we missing and why are DLR messages show as SMS-MO?

Thanks for your help and a fantastic product!

intothemoonlite commented 1 year ago

@eshetua did you figure out a solution. tried all of the above as well and same error. The issue is that HttpApiError() is quite vague and from this line, it seems it's thrown when the dlr-url returns a status >= 400.

I have tried my dlr-url and it's returns a 200 OK with ACK/Jasmin content. Would love to hear an update if you got this working, thanks!