Re: SMPP Defer ability
Alex Judd <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Answering my own questions a little bit, SMPP does support
schedule_delivery_time as an octet in the submit sms pdu and is definied
in gw/smpp_pdu.def however isn't used.
The docs. say it is an octet of length 17 so it should be possible if we
know the formatting to construct this. The code from the emi2 driver is
below - anyone know if the times are the same format?
if (msg->sms.deferred) {
str = octstr_create("1");
emimsg->fields[E50_DD] = str;
tm = gw_localtime(time(NULL) + msg->sms.deferred * 60);
sprintf(p, "%02d%02d%02d%02d%02d",
tm.tm_mday, tm.tm_mon + 1, tm.tm_year % 100,
tm.tm_hour, tm.tm_min);
str = octstr_create(p);
emimsg->fields[E50_DDT] = str;
}
because if they are we can set the pdu->u.submit_sm.schedule_delivery_time
to be the right time and go with that.
Alex
On Tue, 23 Apr 2002, Alex Judd wrote:
> smsc_emi2 (and smsc_http) have the ability to defer messages with the
> sms.deferred. Has anyone implemented this for SMPP and does it support it
> in the PDU structure?
>
>
--
Alex Judd
http://www.skywire.co.uk