OK, now I got what you mean.

2014-03-10 2:04 GMT+04:00 [email protected] <[email protected]>:

> Thank you for your reply.
>
> I am sending the sms through send-sms cgi.
>
> You see, the issue, like i said, is that I am sending multiple numbers
> request in one URL (that is why I can not define the message if in my MT
>

I'd avoid completely this and sent MT one by one not in batch. Because if
you use your way you can't be sure all MT's are delivered to destination
addresses.

On the speed impact: it'd be completely same because kannel processes it's
internal queue one by one.


> request. Because in one url there is 100s of numbers. I also send dlr-mask
> and dlr-url. In my dlr-url php page I have the script inserting/updating
> the database. What happens though is type=1 of the same number, has
> different message-id (kannel internal messageid I mean), than type=8 of the
> same number.
>

That's because you're asking for all DLR types. And kannel sends 2 DLR
messages, one for 8 status (it's basically means MT was successfully
submitted it comes not from remote SMSC but from kannel itself).

The second DLR is type=1 means MT was successfully delivered. That's why
you're being confused.

%I as I said earlier stands for internal message ID so you shouldn't really
rely on it (esp. if your MT is gonna be concatenated with multiple parts).




>
> So one number, two different message-ids. Thus, I have 2 records in my
> database, for the same number...
>

If you don't want 2 records you can use dlr_mask = 31 - 8 = 23

But in this case you won't get any DLR signing that your MT was
successfully submitted to SMSC.


>
> I hope I explained myself well now and you understood what my problem is.
> This issue I am reporting, happens in messages of 1 part (latin and less
> than 160 chars)
>
> Any idea?
>
> Thank you,
> Ali.
>
>
> On 09/03/2014 21:57, spameden wrote:
>
>> You need to define msgid for each MT you submit through SMSC.
>>
>> That is the correct way to get proper status of each MT.
>>
>> You can achieve this by appending required parameter to dlr_url or
>> adding msgid and task_id in the sqlbox's sent_sms table.
>>
>> %I i believe stands for internal kannel's message id, it could vary
>> depending on the size of MT, if MT is longer than allowed by standard
>> (e.g. >160 for latin1 or >60 for ucs-2) kannel would return multiple
>> message ids for each part of MT.
>>
>>
>> 2014-03-10 1:07 GMT+04:00 [email protected] <mailto:[email protected]>
>> <[email protected] <mailto:[email protected]>>:
>>
>>
>>     No one can answer my question? I appreciate any replies.. Thank you!
>>
>>     The issue is as below:
>>
>>
>>     I have setup kannel with an SMPP SMSc.
>>
>>     For DLR-URL, when I submit my HTTP request via CGI, I have
>>     dlr-mask=31 and my urlencoded DLR-URL.
>>
>>     Part of my DLR-URL, I need to receive the message ID from kannel
>>     (and please note I am submitting multiple numbers in the same HTTP
>>     request, so I can not have my own message id, because then it will
>>     be the same for all those numbers in one http request). So kannel is
>>     responsible to provide message id for EACH INDIVIDUAL number
>>     submitted to kannel. But what happens, I get one message ID when
>>     type=8 is received, and I get a different message id when type=1 is
>>     received.
>>
>>     I use the tag "%I" for the message id from kannel. I can not use the
>>     tag "%F", because that is for my SMSc, and i can not/do not want to
>>     give this IDs to my client.
>>
>>     Isn't kannel supposed to update the status of ONE MESSAGE according
>>     to different types? (I suppose YES) Then why is it giving a
>>     different message ID for the same number, but when type is being
>>     updated????
>>
>>
>>
>>     Thank you,
>>     Ali.
>>
>>
>>
>

Reply via email to