The id you get with the patch is the one created by kannel for its own
process. The one that comes from the smsc is the smsc id. That is why kannel
queries its database for the id/msisdn when receiving an dlr
|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y
GPRS online
Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com
On Fri, Oct 29, 2010 at 6:00 AM, Mike Nwaogu <[email protected]>wrote:
> 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 <[email protected]>
> *To:* [email protected]
> *Cc:* Mike Nwaogu <[email protected]>
> *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 <[email protected]>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
>>
>>
>>
>>
>>
>>
>
>