Hi,
Sorry, for missreading you, but your English are poor and I have problems
with them. I still have problems understanding what is "8 lack", but I think
it means 8 hundred thousand. Also do not ask how many queues kannel has. It
is filled with queues. You need to read the source code.
If you want to modify the priority queue, you must know C. In which case you
also know gdb and that's the only way to figure out which queue is called
when. Or you could print some diagnostic messages.
There is a test program ./test/test_prioqueue.c, which can be used to test
prioqueue function. If you don't trust the sources, please next time post
output from that program with indicated errors. Otherwise don't repost the
same problem with conjectures of what you think or don't.
BR,
Nikos
----- Original Message -----
From: adil nazir
To: Nikos Balkanas
Cc: [email protected] ; Alvaro Cornejo ; Rene Kluwen
Sent: Thursday, August 19, 2010 2:52 AM
Subject: Re: Problem of messages comes first in Bearerbox Queue
I have only one problem which is that:
First of all i am talking about Bearerbox queue NOTE please i am not talking
about SMSC Queue and i dont care how SMSC Deal with these messages and their
sequences after receiving from Bearearbox, my problem is the behavior of
Bearerbox when its queue grows bigger e.g. when it has 8 lack(800000)
messages in its queue with no priority or having same priority, again NOTE
that i am not talking about messages in the queue having different
priorities, so when Bearerbox have 800000 messages with no priority or with
same priority then Bearerbox should behave like FIFO Queue but its not
behaving like FIFO Queue. Bearerbox sends incomming messages and messages
last entered in the queue quickly but messages first entered in the queue
some time have to wait for even 2 to 3 days to reach to the SMSC and i want
that my Bearerbox queue should behave like FIFO Queue so that messages
entered first in the queue must be delivered first. This is the problem and
i hope that now you guys can understand what i want actually?
I was asking you this same problem with two different thread subjects but
the problrm was same:
Problem of messages comes first in Bearerbox Queue
Problem of messages having same priority
Also i have mentioned before that sms_time is not working this comparison is
in gw/sms.c file. Now guide me please
From: Nikos Balkanas <[email protected]>
To: Alvaro Cornejo <[email protected]>
Cc: Rene Kluwen <[email protected]>; adil nazir
<[email protected]>; [email protected]
Sent: Thu, August 19, 2010 2:53:48 AM
Subject: Re: Problem of messages comes first in Bearerbox Queue
Actually within the same priority it will obey the FIFO and checks for that
the sms_time. But is that the question? Or if sms of *different* priorities
are sent at the same time or out of (priority) order?
BR,
Nikos
----- Original Message -----
From: "Alvaro Cornejo" <[email protected]>
To: "Nikos Balkanas" <[email protected]>
Cc: "Rene Kluwen" <[email protected]>; "adil nazir"
<[email protected]>; <[email protected]>
Sent: Thursday, August 19, 2010 12:21 AM
Subject: Re: Problem of messages comes first in Bearerbox Queue
Nikos
He is talking about message order not priority. Kannel -as far as I
now- obey priorities 1-3 but within a priority, it does not necesarily
obey the order in wich messages were entered into kannel.
Regards
Alvaro
|-----------------------------------------------------------------------------------------------------------------|
EnvΓƒΒe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
Γ‚ Γ‚ Γ‚ Γ‚ Γ‚ Γ‚ Γ‚ Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com
2010/8/18 Nikos Balkanas <[email protected]>:
Maybe, but that doesn't change the fact, that if kannel supports priority
queues, it should do so correctly. Besides, priority is part of the SMPP
spec and you never know what the SMSc on the other end will do.
BR,
Nikos
----- Original Message ----- From: "Rene Kluwen" <[email protected]>
To: "'Alvaro Cornejo'" <[email protected]>; "'adil nazir'"
<[email protected]>
Cc: <[email protected]>
Sent: Wednesday, August 18, 2010 11:46 PM
Subject: RE: Problem of messages comes first in Bearerbox Queue
True.
Suppose you make Kannel the way you want it to work: Send out the first
message that you want to send first, and after that the other ones.
Then still you are not sure that that particular message is received first
on the hand set. It depends on your upstream provider and a lot of other
things that you don't have control over.
== Rene
-----Original Message-----
From: Alvaro Cornejo [mailto:[email protected]]
Sent: Wednesday, 18 August, 2010 19:42
To: adil nazir
Cc: Rene Kluwen; [email protected]
Subject: Re: Problem of messages comes first in Bearerbox Queue
I'm not developper nor have programming knowledge so I can't help you
with changing the code;
However, I'm still wondering why would you want kannel to strictly
respect the order of the message queue when there is ABSOLUTELY no way
to control that once kannel passes the message to the smsc. In the
same seccond you push your messages, the smsc is receiving thousands
of messages from other sources and the system will mix them all so
there is very little chances to get the messages in the same order you
entered to kannel. IMHO it is WAY too much work for nothing.
Regards
|---------------------------------------------------------------------------
--------------------------------------|
Env�½e y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Per�Š, M�¹xico y en mas de 180 paises. Use aplicaciones 2 vias
via
SMS y GPRS online
Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com
On Wed, Aug 18, 2010 at 12:26 PM, adil nazir <[email protected]>
wrote:
Sir i have studied all the documents from
http://www.kannel.org/arch.shtml.
I have the source code of kannel with the name of gateway-1.4.3 and now a
days i am debugging this code. I have studied all the previous threads
posted on userslevel and devlevel forums some of them are related to my
problem but these threads are difficult to understand because i am new on
kannel and threads contains advance terminologies. sir i have found lot
of
queues in kannel during debugging and i dont know how many queues kannel
is
maintaining right now and why? I have found gw_priority queue in smpp
driver, i have found simple gwlist_queue in bearerbox.c files and in
smsbox.c file now i an confused in all these queues which queue's logic i
should modify to solve my problem? i don't know. I have also studied
kannel
architecture document from its website but this document only elaborate
bearerbox flow with wap not with sms and i am dealing only with sms.
I also tried to modify the function
sms_priority_compare() in gw/sms.c file
inorder to send old sms before sending new sms but its not working. Also
i
tried to modify the function
sms_priority_compare() in gwlib/gw_prioqueue.c file
inorder to change the sequence of sms's but its also not working. even i
am
unable to detect that which function is dealing with which queue. So
please
sir guide i am very much confused and i have to urgent solve this
problem.
________________________________
From: Rene Kluwen <[email protected]>
To: adil nazir <[email protected]>; Alvaro Cornejo
<[email protected]>
Cc: [email protected]
Sent: Wed, August 18, 2010 9:47:48 PM
Subject: RE: Problem of messages comes first in Bearerbox Queue
There’s quite some different queues in Kannel. Read the
architecture
document at http://www.kannel.org/arch.shtml
Apart from that, you have all the source codes available. There have been
some pointers given in earlier posts of where you can look.
From: [email protected] [mailto:[email protected]] On
Behalf
Of adil nazir
Sent: Wednesday, 18 August, 2010 18:39
To: Alvaro Cornejo
Cc: [email protected]
Subject: Re: Problem of messages comes first in Bearerbox Queue
ok can you guide me where i need modifications in kannel to change its
queue
logic? because its an urgent need.
________________________________
From: Alvaro Cornejo <[email protected]>
To: adil nazir <[email protected]>
Cc: [email protected]
Sent: Wed, August 18, 2010 9:33:19 PM
Subject: Re: Problem of messages comes first in Bearerbox Queue
Do NOT change subject of a thread. It will difficult follow up
There is NOTHING you can do... other than rewrite kannel queue logic
|---------------------------------------------------------------------------
--------------------------------------|
Env�½e y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Per�Š, M�¹xico y en mas de 180 paises. Use aplicaciones 2 vias
via
SMS y GPRS online
Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com
On Wed, Aug 18, 2010 at 10:12 AM, adil nazir <[email protected]>
wrote:
yes i can understand that but tell me what i should do in the situation
when
i have 8 lack messages in bearerbox queue and the messages which comes
first
in bearerbox queue they will be received by SMSC after 2 to 3 days after
receiving by SMSC then it depends on SMSC that weather it follows the
message sequence or not but first its kannel responsibility to send all
messages to SMSC for delivery. so tell me how can i handle this
situation
in
which i have 8 lac messages in queue and first come (approx 1 lac)
messages
delivered after 2 to 3 days. I am using SMPP and to test it i am using
gateway-1.4.3/test/drive_smpp. Please guide me.
________________________________
From: Alvaro Cornejo <[email protected]>
To: adil nazir <[email protected]>
Cc: [email protected]
Sent: Tue, August 17, 2010 11:49:01 PM
Subject: Re: Problem of messages with same priority
There is no way to do that with the current architecture kannel has,
nor with any other aplication you might found/develop... unless you
send one message, wait for the dlr confirmation that the message was
delivered --if it is available-- and then send the next one.... Dlrs
can take up to a couple of days to be received.
It wont be efficient. Period.
Besides, unless you have a real argument/need for the messages to be
received in the same order they were sent, it wouldn't matter. Not
even in concatenated messages the phone receives the parts in the same
order. Same with TCP/IP protocols. They are designed for efficiently
TRANSPORT data, its on application side where the parts are
reassembled/ordered.
Regards
Alvaro
|---------------------------------------------------------------------------
--------------------------------------|
Env�½e y Reciba Datos y mensajes de Texto (SMS) hacia y desde
cualquier
celular y Nextel
en el Per�Š, M�¹xico y en mas de 180 paises. Use aplicaciones 2 vias
via
SMS y GPRS online
Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com
On Tue, Aug 17, 2010 at 1:29 PM, adil nazir <[email protected]>
wrote:
then guide me how can i achieve this target that message comes first
should
deliver first and if queue is already full with messages then first
queued
messages should deliver then new messages.
________________________________
From: Rene Kluwen <[email protected]>
To: adil nazir <[email protected]>
Cc: [email protected]
Sent: Tue, August 17, 2010 10:07:31 PM
Subject: RE: Problem of messages with same priority
1. I replied to your message that didn’t have users in CC.
That’s
why
it didn’t get here.
2. What we are trying to make clear to you is that message queuing
isn’t a Kannel issue. SMS messages are not guaranteed to arrive
within
a
specific time or order.… and not even guaranteed to arrive at
all.
== Rene
From: adil nazir [mailto:[email protected]]
Sent: Tuesday, 17 August, 2010 19:04
To: Rene Kluwen
Cc: [email protected]
Subject: Re: Problem of messages with same priority
Please add [email protected] in Cc thanks
That is why i am saying that if kennel can handle priority messages
then
why
it cant handle message sequence?
________________________________
From: Rene Kluwen <[email protected]>
To: adil nazir <[email protected]>
Cc: Alejandro Guerrieri <[email protected]>
Sent: Tue, August 17, 2010 9:12:10 PM
Subject: RE: Problem of messages with same priority
SMS messages carrying a higher priority are sent to the smsc first.
After
that, they are on their own.
== Rene
From: adil nazir [mailto:[email protected]]
Sent: Tuesday, 17 August, 2010 18:10
To: Rene Kluwen
Cc: adil nazir; Alejandro Guerrieri
Subject: Re: Problem of messages with same priority
yes i know but if kannel can send SMS having high priority before the
low
priority then it means it has the ability to send SMS in specific
order.
If
SMS �by nature- uses a store-and-forward scheme then how
priority
works
with
kannel and why they implement priority queue in kannel drivers.
________________________________
From: Rene Kluwen <[email protected]>
To: adil nazir <[email protected]>; Alejandro Guerrieri
<[email protected]>
Cc: [email protected]
Sent: Tue, August 17, 2010 9:02:59 PM
Subject: RE: Problem of messages with same priority
SMS �by nature- uses a store-and-forward scheme. Even if Kannel
sends
messages out in a specific order, it doesn’t mean that messages
arrive
in
the same order.
If it is important that messages arrive in a specific order, then
implement
a system that waits for a final dlr state and after that send the next
message.
== Rene
From: [email protected] [mailto:[email protected]] On
Behalf
Of adil nazir
Sent: Tuesday, 17 August, 2010 17:39
To: Alejandro Guerrieri
Cc: [email protected]
Subject: Re: Problem of messages with same priority
But this is not good because if we already have thousands of messages
in
our
queue then how can is it possible to deliver new incoming message
before
queued messages. I think it is duty of Kannel to take care of message
sequence in the same way as it take care of messages with different
priority. Can anyone suggest the solution to solve this problem? I want
that
Kannel work like FIFO queue.
Also tell me if we use sms.time field of message then can we solve this
problem? because arrival time of messages having same priority will
different. so we can differentiate them with there time.
________________________________
From: Alejandro Guerrieri <[email protected]>
To: Alvaro Cornejo <[email protected]>
Cc: adil nazir <[email protected]>; [email protected]
Sent: Tue, August 17, 2010 7:26:12 PM
Subject: Re: Problem of messages with same priority
Yes, and despite Kannel honors order of arrival at first, if messages
are
queued and retried is hard to tell what the final order would be,
specially
if a bind or the whole service is restarted.
Regards,
Alex
On Tue, Aug 17, 2010 at 4:03 PM, Alvaro Cornejo
<[email protected]>
wrote:
Note that is your sms provider/operator smsc who finally takes care of
messages. If Kannel send messages in 1,2,3 order to the smsc it
doesn't mean they will arrive in that order to your phone.
|---------------------------------------------------------------------------
--------------------------------------|
Env�½e y Reciba Datos y mensajes de Texto (SMS) hacia y desde
cualquier
celular y Nextel
en el Per�Š, M�¹xico y en mas de 180 paises. Use aplicaciones 2
vias
via
SMS y GPRS online
Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com
On Tue, Aug 17, 2010 at 3:11 AM, adil nazir <[email protected]>
wrote:
I have tested kannel with messages having same priorities these
messages
should be treated like FIFO method means which message comes first
should
be
reached first on particular smsc but kannel is treated all messages,
having
same priorities, equal and deliver them randomly even there arrival
time
is
different why? Can anyone help me in this regard? Any solutions
please?