RE: SMPP Defer ability
"Michael Mulcahy" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
I think someone submitted a patch for this, obviously it didn't make it to CVS. I don't have the mail so maybe someone else has it. If you look up section 7 in the SMPP 3.4 spec then that will have the time format required. Its pretty similar to emi I think with one or two minor changes. Regards, Michael. ANAM Wireless Internet Solutions http://www.anam.com mailto:[email protected] +353 1 284 7555 Castle Yard, Saint Patrick's Road, Dalkey, County Dublin, Ireland > -----Original Message----- > From: Alex Judd [mailto:[email protected]] > Sent: Tuesday, April 23, 2002 2:51 PM > To: Michael Mulcahy > Cc: [email protected] > Subject: RE: SMPP Defer ability > > > You sure you mean smsc_smpp.c validity period code as the > version I have > (and cvs has) doesn't appear to have any validity code > setting in it (more > is the shame!). > > Therefore is any of smsc_at(2), smsc_cimd2, smsc_emi2 or > smsc_ois share > the same structure I'll borrow it from there and implement it. > > Alex > > On Tue, 23 Apr 2002, Michael Mulcahy wrote: > > > Hi, > > > > The code used for the validity period in SMPP may be reused for > > the scheduled delivery period in the SMPP module as the formats > > are the same. > > > > Regards, > > Michael Mulcahy. > > > > ANAM Wireless Internet Solutions > > http://www.anam.com mailto:[email protected] > > +353 1 284 7555 > > Castle Yard, Saint Patrick's Road, Dalkey, County Dublin, Ireland > > > > > -----Original Message----- > > > From: [email protected] > > > [mailto:[email protected]]On Behalf Of Alex Judd > > > Sent: Tuesday, April 23, 2002 1:16 PM > > > To: [email protected] > > > Subject: Re: SMPP Defer ability > > > > > > > > > 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 > > > > > > > -- > Alex Judd > http://www.skywire.co.uk