Troy Kelly wrote:

> Hi,
>  
> Can somebody point me in the right direction with the DLR reports (url 
> based)
>  
> I am using internal storage and have the DLR reports being returned to 
> a URL.  How do I know what message they are for?
>  
> I can see this in my SMSbearer window...
>  
> 2002-05-30 07:13:29 [6] DEBUG: Looking for DLR smsc=vf, ts=41, 
> dst=+61401985266, type=12
>  
> But this is the message from bearer
>  
> 2002-05-30 07:13:29 [8] DEBUG:   data: 65 3d 31 32 26 72 65 70   e=12&rep
> 2002-05-30 07:13:29 [8] DEBUG:   data: 6c 79 3d 30 78 30 30 30   ly=0x000
> 2002-05-30 07:13:29 [8] DEBUG:   data: 30 30 30 30 30 20 48 54   00000 HT
> 2002-05-30 07:13:29 [8] DEBUG:   data: 54 50 2f 31 2e 31 0d 0a   TP/1.1..
> 2002-05-30 07:13:29 [8] DEBUG:   data: 48 6f 73 74 3a 20 31 39   Host: 19
> 2002-05-30 07:13:29 [8] DEBUG:   data: 32 2e 31 36 38 2e 31 30   2.168.10
> 2002-05-30 07:13:29 [8] DEBUG:   data: 30 2e 31 0d 0a 55 73 65   0.1..Use
> 2002-05-30 07:13:29 [8] DEBUG:   data: 72 2d 41 67 65 6e 74 3a   r-Agent:
> 2002-05-30 07:13:29 [8] DEBUG:   data: 20 4b 61 6e 6e 65 6c 20    Kannel
> 2002-05-30 07:13:29 [8] DEBUG:   data: 63 76 73 2d 0d 0a 58 2d   cvs-..X-
> 2002-05-30 07:13:29 [8] DEBUG:   data: 4b 61 6e 6e 65 6c 2d 46   Kannel-F
> 2002-05-30 07:13:29 [8] DEBUG:   data: 72 6f 6d 3a 20 30 30 30   rom: 000
> 2002-05-30 07:13:29 [8] DEBUG:   data: 0d 0a 0d 0a               ....
>  
> The 'ts' value in SMSbearer increments for every message - is it 
> possible to get that number when I submit a message to the gateway - 
> and then have it included in the dlr response?
>  

No - that's not the way to do it, especially as that value is unknown at 
the time you submit the message (because of layering between the boxes 
of kannel). what you should do is encode an application generated ID in 
each dlr URL sent with each message, and use that ID when parsing the 
DLR response, for example - when sending a message set the dlrurl to
http://yourhost/url/script?id=999&result=%d&text=%a
then when your script is called, the application generated ID 999 will 
be sent as a parameter.

--
Oded


Reply via email to