Picking esme in round robin or randomly for dlr in Opensmppbox

Manas Mohanty <[email protected]> Tue, 6 Oct 2015 20:48:37 +0530
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <CAGrq9ahQ9xgHi-u2UK-UYZcYrw+2jjs8vq=nQL93XcuwGYEuyQ@mail.gmail.com>
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