On Fri, 2011-05-13 at 16:10, ha...@aeon.pk wrote: > If you could tell me the steps, I could change and recompile and test. Am > not a programmer so would need external help.
I don't have enough time to write a howto guide about compiling Kannel. It is described in userguide. But it looks like the only two lines in smsc_smpp.c should be changed in 1.5.0 version. lines 922 and 923: struct tm tm = gw_gmtime(time(NULL) + validity * 60); pdu->u.submit_sm.validity_period = octstr_format("%02d%02d%02d%02d%02d%02d000+", could be changed to: struct tm tm = gw_gmtime(msg->sms.validity * 60); pdu->u.submit_sm.validity_period = octstr_format("%02d%02d%02d%02d%02d%02d000R", But keep in mind that is from my head, I didn't checked anything actually. Anyway, I would start from there. > On Fri, May 13, 2011 at 3:58 PM, Milan P. Stanic <m...@arvanta.net> wrote: > > > On Fri, 2011-05-13 at 15:38, ha...@aeon.pk wrote: > > > Well, the validity parameter is another issue with me, since my > > application > > > server is on different timezone, and kannel sends absolute timestamp > > > (2011-05-12 13:01:01) as validity parameter instead of relative timestamp > > > (expiry time = current/submission time+60 secs). I don't seem to find the > > > resolution of it as well, so I have stopped using the validity period > > thing. > > > Any resolution to this? > > > > I looked in smsc_smpp.c and it does not seems that it is to complicated > > to change it to use relative instead of absolute time. But I cannot test > > it because I do not have any environment where I could play with it. > > > > > On Fri, May 13, 2011 at 2:43 PM, Milan P. Stanic <m...@arvanta.net> > > wrote: > > > > > > > On Fri, 2011-05-13 at 12:59, ha...@aeon.pk wrote: > > > > > Thanks Mads. I already tried this, but the problem that I am facing > > is > > > > that > > > > > the app needs to read the DLR sent by SMSC. SMSC sends > > 'DLR=Delivered' if > > > > > the handset is on. But SMSC does not send any DLR at all if the > > handset > > > > is > > > > > off or out of coverage. Thats the only issue I am having. Any > > solution > > > > for > > > > > this? > > > > > > > > Did you tried to put validity parameter with short time (1 minute)? > > > > I'm using pid=64 for (so called) SMS Push and SMSC responds with > > > > Absent_subscriber code in case it cannot deliver message to subscriber. > > > > > > > > > Also, can I get the table for the all possible values of PID and what > > can > > > > we > > > > > do playing around with them? Thanks! > > > > > > > > > > > > > > > On Fri, May 13, 2011 at 12:56 PM, Mads N. Vestergaard < > > m...@coolsms.com > > > > >wrote: > > > > > > > > > > > Hi Hamza, > > > > > > > > > > > > You can send a SMS with a special PID to generate a silent SMS. > > > > > > > > > > > > We are adding pid=64 to the HTTP request, to do this. > > > > > > > > > > > > But please be aware that not all gateways supports this. > > > > > > > > > > > > Regards, > > > > > > > > > > > > Mads > > > > > > > > > > > > Den 13/05/2011 kl. 09.51 skrev ha...@aeon.pk: > > > > > > > > > > > > > Dear friends, > > > > > > > > > > > > > > How to send a silent SMS via kannel? My purpose is to check the > > > > status of > > > > > > the mobile (ON/OFF) without bothering the customer by any > > pop-up/SMS > > > > > > messages. > > > > > > > > > > > > > > Regards, > > > > > > > > > > > > > > Hamza > > > > > > > > > > > > > > > > > > > > -- > > > > Kind regards, Milan > > > > -------------------------------------------------- > > > > Arvanta, IT Security http://www.arvanta.net > > > > Please do not send me e-mail containing HTML code. > > > > > > > > > > > > -- > > Kind regards, Milan > > -------------------------------------------------- > > Arvanta, IT Security http://www.arvanta.net > > Please do not send me e-mail containing HTML code. > > > > -- Kind regards, Milan -------------------------------------------------- Arvanta, IT Security http://www.arvanta.net Please do not send me e-mail containing HTML code.