Quick question Garth,
I noticed that the message id I store when I send isn't the same one the DLR 
comes back with, how do I reconcile this?

 Regards,
Mike Nwaogu






________________________________
From: Garth Patil <garthpa...@gmail.com>
To: users@kannel.org
Cc: Mike Nwaogu <michael_nwa...@yahoo.com>
Sent: Thu, October 28, 2010 4:44:56 PM
Subject: Re: Associating a DLR with the original message

This is the patch I used to get the id:

--- gateway-1.4.3-orig/gw/smsbox.c    2009-01-12 08:46:57.000000000 -0800
+++ gateway-1.4.3/gw/smsbox.c    2009-08-26 14:08:50.000000000 -0700
@@ -192,11 +192,15 @@
     switch (msg->ack.nack) {
       case ack_success:
         status = HTTP_ACCEPTED;
-        answer = octstr_create("0: Accepted for delivery");
+        //answer = octstr_create("0: Accepted for delivery");
+        answer = octstr_create("0: Accepted for delivery: ");
+    octstr_append(answer, os);
         break;
       case ack_buffered:
         status = HTTP_ACCEPTED;
-        answer = octstr_create("3: Queued for later delivery");
+        //answer = octstr_create("3: Queued for later delivery");
+        answer = octstr_create("3: Queued for later delivery: ");
+    octstr_append(answer, os);
         break;
       case ack_failed:
         status = HTTP_FORBIDDEN;


On Thu, Oct 28, 2010 at 7:02 AM, Mike Nwaogu <michael_nwa...@yahoo.com> wrote:


> 
> 
>Hello Yall,
>Alejandro posted something on this patch last year.
>on the above  subject, I'd like to know how to achieve this patch using the 
>same 
>kannel version 1.4.3
>I want my send-sms service to reply like so "0: Accepted for delivery: 
>c8d487ac-181f-4f2e-97d7-ffb7abfe99b9"
>
>where "c8d487ac-181f-4f2e-97d7-ffb7abfe99b9" is the message ID as created by 
>kannel.
>
>How do I achieve this?
>
>Regards,
>Mike Nwaogu
>
>
> 
>
>  
>  
>
> 
>



      

Reply via email to