Re: Problem with cgi-bin/sendsms when using deferred=0
Andreas Fink <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
is 0 really current time and not 1.1.1970 maybe?
In that case the SMSC is absolutely right in rejecting a delivery in the past.
On 23.05.2012, at 16:07, Alexander Malysh wrote:
> Hi Tanja,
>
> please keep devel@ in CC...
>
> It's not really a BUG of Kannel because in SMPP it's not defined that schedule_delivery_time should be in the future.
> Therefore Kannel does what you are asking for, send schedule_delivery_time with current time.
>
> We can workaround it in kannel BUT it's mostly your bug to sent deferred=0 since you know SMSC doesn't accept it.
>
> Thanks,
> Alex
>
> P.S. I will fix it in SVN...
>
> Am 23.05.2012 um 15:47 schrieb Tanja Kipreska:
>
>> Hello Alexander,
>>
>> Please find attached requested log(s). I was sending SMS to 38976514008.
>>
>> Meanwhile I was analyzing the code and I believe that changing line no. 963 in smsc_smpp.c from
>>
>> if (msg->sms.deferred != SMS_PARAM_UNDEFINED) {
>>
>> to
>>
>> if ((msg->sms.deferred)&&(msg->sms.deferred != SMS_PARAM_UNDEFINED)) {
>>
>> may solve the problem.
>>
>> Looking forward to your answer.
>>
>> Regards,
>> Tanja
>>
>> On Wed, May 23, 2012 at 11:30 AM, Alexander Malysh <[email protected]> wrote:
>> Hi,
>>
>> could you please provide debug log for this submit_sm?
>>
>> Thanks,
>> Alex
>>
>> Am 22.05.2012 um 16:45 schrieb Tanja Kipreska:
>>
>> > Dear All,
>> >
>> > I've noticed problem with kannel 1.5.0 when I'm submitting AO-MT sms using cgi-bin/sendsms deferred parameter. Namely, when i put deferred=0 in the URL the message is rejected by the SMS center with error "Invalid scheduled delivery time". I'm currently using kannel 1.3.1 in production and have performed the same test and message was accepted and successfully delivered.
>> >
>> > Can this be categorized as bug in kannel 1.5.0 and be fixed soon?
>> >
>> > Thanks in advance,
>> > Tanja
>> >
>>
>>
>> <logs.zip>
>