jookies / jasmin

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

dlr_msgid parameter Updated seems not be considered by DLRthrower #1034

Open jaur-jaur opened 2 years ago

jaur-jaur commented 2 years ago

According to the doc, when received DLR and faced to an issue of message id encoding, you need to change the dlr_msgid parameter in the related connector link. So after changed dlr_msgid from 1 to 0, I would expect another output but it seems not have changed because the smpp-msgid still encoded in decimal as dlr_msgid=0.

--messages.log-- tail -f /var/log/jasmin/messages.log 2022-03-03 17:41:13 INFO 1984993 SMS-MT [cid:Net4-bf] [queue-msgid:9d9e69eb-52a7-4a4d-a380-8bce7c11f4cd] [smpp-msgid:b'39f99dd5'] [status:CommandStatus.ESME_ROK] [prio:0] [dlr:RegisteredDeliveryReceipt.SMSC_DELIVERY_RECEIPT_REQUESTED] [validity:none] [from:b'Net4w'] [to:b'22678000198'] [content:b'G-** : votre code de validation Google est 11241']

--dlr--- tail -f /var/log/jasmin/dlrlookupd-messages.log 2022-03-03 17:41:14 ERROR 1984995 [msgid:972660181] (retrials: 1/2) DLRMapNotFound: Got a DLR for an unknown message id: 0972660181 (coded:972660181) 2022-03-03 17:41:24 ERROR 1984995 [msgid:972660181] (final) DLRMapNotFound: Got a DLR for an unknown message id: 0972660181 (coded:972660181)

Please Could anyone explain me what it's wrong ?

farirat commented 2 years ago

if you get hexadecimal msgid in submit (SMS-MT) and decimal msgid in dlr then your dlr_msgid must be set to 1.

jaur-jaur commented 2 years ago

After setting dlr_mdgid to 1. I got the same issue.

2022-03-06 16:30:42 ERROR 1984995 [msgid:3BE58D07] (retrials: 1/2) DLRMapNotFound: Got a DLR for an unknown message id: 1004899591 (coded:3BE58D07) 2022-03-06 16:30:52 ERROR 1984995 [msgid:3BE58D07] (final) DLRMapNotFound: Got a DLR for an unknown message id: 1004899591 (coded:3BE58D07)

farirat commented 2 years ago

What jasmin version is this ? is it possible to take access to your env and debug this issue ? If yes, then plz raise a ticket to support@jasminsms.com and i'll take from there.

jaur-jaur commented 2 years ago

It is the latest 0.10.9 v. Is this a jasmin issue as you want to deal with it ?

farirat commented 2 years ago

i guess no ..

hadpro24 commented 1 year ago

@jaur-jaur do you find solution for that ?