Dne 6.12.2010 13:24, Jovan Kostovski napsal(a): > 2010/12/6 Miroslav Šulc <[email protected]>: >> hello, >> >> is it possible to route dlrs always to the box where the original >> message came from? i would like to run bearerbox with two sqlboxes, each >> running over different database. and to update status of the messages in >> the databases, i need to receive the dlrs at the same database from >> which the original message came. i read the documentation several times >> and googled too, but i did not find how to do this. >> >> thanks for any help. >> >> miroslav > Yes it's possible. > When setting the dlrs you configure on which url is located its handler. > So, when setting up the sms-service set the proper dlr-mask and dlr-url > paremeters. When the dlr is received it will be passed to the dlr-url hanlder. > In the hanlder parse the dlr parameters, connect to the database you want > and store the needed data. > > Don't get confused by the dlr database which is for kannel internal use. > That database is used when kannel is configured with external dlr storage > and it is used to store the message parameters for which kannel hasn't > received dlr status. > > BR, Jovan >
does it mean that i have to handle the dlrs via http service? i would prefer delivering the dlrs via bearerbox <-> sqlbox connection which has no overhead of setting up http connection, sending and parsing the data etc. at this moment, i have a test setup where i have bearerbox, one sqlbox and fakesmsc. i had to set routing group to get the dlrs back to my sqlbox, otherwise i got warnings from bearerbox that there is no smsbox in the list and dlrs were not delivered to sqlbox. but as i will have two sqlboxes sending via the same smsc, this solution will not work. i also noticed that bearerbox has in its dlr table column named boxc which seems to be exactly for what i need, for routing dlrs back to the originating box, but if that is true, i have no idea how to make bearerbox to store the originating box info in its storage and then use it for delivering dlrs to the originating box. miroslav
