Indirectly: Bearerbox uses the SMSC drivers (smsc_smpp, smpp_at, etc) to
connect to the SMSC's and the drivers consume the priority queue themselves.
All gets linked together into the bearerbox binary:

strings bearerbox | grep gw_prioqueue
gw_prioqueue_create
gw_prioqueue_insert
gw_prioqueue_foreach
gw_prioqueue_remove
gw_prioqueue_get
gw_prioqueue_consume
gw_prioqueue_add_producer
gw_prioqueue_remove_producer
gw_prioqueue_producer_count

strings smsbox | grep gw_prioqueue
<empty>

I've tested the priority queue on SMPP and works as expected, being 3 the
higher priority, and 0 the lowest.

Regards,

Alex

On Mon, Aug 16, 2010 at 8:24 PM, adil nazir <[email protected]> wrote:

> 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 <[email protected]>
> *To:* adil nazir <[email protected]>
> *Cc:* [email protected]
> *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 <[email protected]>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