>> Hello, >> When I send an SMS with Kannel with a dlr-mask, I receive then a >> delivery >> report. The problem is that I don't know which SMS is associated with >> the >> DLR I received. >> Is it possible to get an ID from the SMSC, or to generate one included >> in >> the SMS when I send it, and then to recover the ID in the delivery >> report? >> I have an EMI2 connection to the SMSC, over TCP/IP. > > Emi does not include a unique ID. Kannel uses a TS (timestamp) but you > can include your own string/db-id to trace it. >
Ok, I didn't know... >> Or is there a ready-to-use solution in Kannel that would permit to make >> a >> link between a sent SMS and the reception of a delivery report? And how >> should I proceed? Is there anyone who still resolved this problem? > > Did u set the DLR-URL ? > In the URL you can include any id you want. Sure I set it, but is there a Kannel parameter (like "%...") to put in this URL that would identify to which SMS the DLR is linked. It's nice to recieve a delivery report, but if I cannot know for which message I recieve a DLR, it has no sens. In my case, I cannot base the comparaison with the phone numbers. So when Kannel transmitt the SMS to the SMSC via EMI2, does Kannel receive an identification number from the SMSC, which would be present in the DLR that send the SMSC to Kannel? Should I use the timestamp to make the relation? Or I could generate an identification number, but I've to know how to join it to the SMS, and how to recover it from the DLR. I use the sendsms HTTP interface to send the messages, so which variable should I define to join an identification number? What I have to do: 1) A message is sent form a graphical interface. 2) The message is stored in the table of a db, and returns a unique ID (primary key) 3) the message is sent using the sendsms http interface, with this famous ID joined. 4) I receive a DLR and the dlr-url calls a php page with some parameters (included the ID). 5) I store it in another table of the database, with this famous ID as foreign key, the status, and some other informations. So when I want to see if a message was sent, I can recover the DLR, and the other way is possible too... Thank you, Yanik >> Thaks a lot, >> >> Yanik Ruchat >> HES assistant >> HEG Geneva >> >> >> > >
