There are no separate driver binaries. All these are part of the bearerbox binary.

Bearerbox (and the other boxes) don't need only priority queues, they need regular queues as well. Using priority queues for regular lists is very slow and inefficient.

BR,
Nikos

----- Original Message ----- From: adil nazir
To: Nikos Balkanas
Cc: Alejandro Guerrieri ; users@kannel.org
Sent: Tuesday, August 17, 2010 7:13 AM
Subject: Re: Need kind help in Implementation of priority queue


yes i know but priority queue implementation is in driver not in bearebox that is why i am confused that who bearerbox manage its sms coming from smsbox. Also i have seen some list function in smsbox.c e.g

gwlist_create()
gwlist_extract_first()

similar functions i have also seen in bearerbox.c so tell me if queue is maintained in drivers (smsc_smpp.c) then why above mentioned functions are used in bearerbox.c and smsbox.c





From: Nikos Balkanas <nbalka...@gmail.com>
To: adil nazir <adil_nazi...@yahoo.com>; Alejandro Guerrieri <alejandro.guerri...@gmail.com>
Cc: users@kannel.org
Sent: Tue, August 17, 2010 1:52:26 AM
Subject: Re: Need kind help in Implementation of priority queue

It is in bearerbox. All gw/* files form gwlib which is statically linked to bearebox.c at compilation. They are in a library, so that they can be used in other components as well.

BR,
Nikos
----- Original Message ----- From: adil nazir
To: Alejandro Guerrieri
Cc: users@kannel.org
Sent: Monday, August 16, 2010 9:24 PM
Subject: Re: Need kind help in Implementation of priority queue


Thanks for your help but in doxygen cross-reference i could not found any function in gw/smsc/smsc_smpp.c from gw-prioqueue.c file but in download version of kannel named gateway-1.4.3 i found functions name gw_prioqueue_create() in file gw/smsc/smsc_smpp.c. I don't know why its not mentioned in cross-reference.

Any ways it means that kannel is maintain priority queue. but if its a bearerbox thing then why its not in bearerbox.c i mean how bearerbox is maintaining the sms comming from smsbox with priority 3so please tell me if i send an push message with priority=3 in URL then how kannel works how it deal this message tell me the process from smsbox to the delivery of this sms on mobile with priority maintenance.




From: Alejandro Guerrieri <alejandro.guerri...@gmail.com>
To: adil nazir <adil_nazi...@yahoo.com>
Cc: users@kannel.org
Sent: Mon, August 16, 2010 4:34:29 PM
Subject: Re: Need kind help in Implementation of priority queue


You won't find any references on smsbox. It's a bearerbox thing (the queueing is implemented on the SMSC drivers themselves).


Check gwlib/gw-prioqueue.* for the queue implementation.


You'll see it's used on each driver supporting it:


gw/smsc/smsc_at.c
gw/smsc/smsc_emi.c

gw/smsc/smsc_smpp.c


You can check the doxygen cross-reference for further information about how all those components are related to each other:


http://doxygen.kannel.org/


Hope it helps,


Alex


On Mon, Aug 16, 2010 at 8:43 AM, adil nazir <adil_nazi...@yahoo.com> wrote:

Can anyone help me in finding the implementation of sendsms in SMSBOX i mean if i have following URL:

   
"http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&text=hello&priority=3&to=+123456789";;

then i want to know how kannel deal with priority=3 in kannel. Its handling it in smsbox.c file or in bearerbox.c file. This URL will tell tell smsbox about the priority or its telling bearerbox about this priority. In both cases how kannel handles it in code.

Adil Nazir

Reply via email to