Re: Picking esme in round robin or randomly for dlr in Opensmppbox

Manas Mohanty <[email protected]> Wed, 7 Oct 2015 17:01:03 +0530
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <CAGrq9ah6WRjcNPivGPJEBhykHL5SkTgtDeqGxH6Nn4faXg9krw@mail.gmail.com>
Any suggestion for the problem ??
I am not sure this question should go in devel list or users list.

Regards,
Manas


On Tue, Oct 6, 2015 at 8:48 PM, Manas Mohanty <[email protected]>
wrote:

> Hi,
>
> I am using opensmppbox.
> I have noticed certain thing that in the case of multiple Rx or TRx
> session while submitting dlr opensmppbox is sending dlr to particularly one
> (first) session in all_boxes queue in find_receiver_box function
>
> for (cnt = 0; cnt < gwlist_len(all_boxes); cnt++) {
>                 thisbox = (Boxc *)gwlist_get(all_boxes, cnt);
>                 if ((thisbox->login_type == SMPP_LOGIN_RECEIVER ||
> thisbox->login_type == SMPP_LOGIN_TRANSCEIVER) &&
> (octstr_compare(thisbox->boxc_id, box->boxc_id) == 0) && thisbox->alive) {
>                         return thisbox;
>                 }
>         }
>
> Is there any way and is anyone tried to make round robin manner or
> something like random pick of esme, so that all esmes will distribute the
> load ??
>
>
> Regards,
> Manas
>