Hey, Willy.

I'm using this code to provide dlr_url generation depending on the current
timestamp:

    char dlr_url_generated[20];
 /* myadd dlr_url generation */
           if(row[19] == NULL ) {
                snprintf(dlr_url_generated, sizeof(dlr_url_generated),
"%08X%08X",(int)time(0),atoi(row[0]));
                msg->sms.dlr_url = octstr_null_create(dlr_url_generated);
            }
            else {
                msg->sms.dlr_url    = octstr_null_create(row[19]);
            }

It's probably not correct in terms of using oct_str_* for doing this, but I
haven't found better way to do this :)

2012/11/1 Willy Mularto <[email protected]>

> Thanks Stipe, is there any way to create custom internal message id
> format/structure (such as concatenate sender+current_date_time)?
>
>
>
> On Nov 1, 2012, at 12:48 PM, Stipe Tolj wrote:
>
> > Am 31.10.2012 09:16, schrieb Willy Mularto:
> >> In situation where multiple Kannel daemon run on the same server does
> >> Kannel's internal Message ID really unique? Thanks.
> >
> > "yes", we use UUIDs, please see for reference:
> >
> > http://en.wikipedia.org/wiki/Universally_unique_identifier
> >
> > NOTE: the "yes" means, with a confidence that is 99.(some repetition)9%
> accurate in terms of uniqueness.
> >
> > Stipe
> >
> > --
> > -------------------------------------------------------------------
> > Kölner Landstrasse 419
> > 40589 Düsseldorf, NRW, Germany
> >
> > tolj.org system architecture      Kannel Software Foundation (KSF)
> > http://www.tolj.org/              http://www.kannel.org/
> >
> > mailto:st_{at}_tolj.org           mailto:stolj_{at}_kannel.org
> > -------------------------------------------------------------------
> >
>
> Willy Mularto
> F300HD+MR18DE (NLC1725)
>
>
>
>
>
>
>
>
>
>
>

Reply via email to