On Fri, 2012-02-10 at 22:43, Ashish Agarwal wrote: > Actually i am using opensmppbox for esme connection and using kannel to > create a http bridge between two bearerboxes so that it works like this > > Esme --- opensmppbox --- bearerbox --- http bridging where i can write > custom program ---.bearerbox > > I am able to manage the mt but is there a way to achieve dlr. > > I have not found or read about this anywhere just that since http allows > dlr's injection it should allow err value control as well, i assumed.
That string is set by SMPP service providers (telco) and although most of them follow example from SMPP specification document, some do not. In opensmppbox it is hardcoded (I think) and if you want to change you can try find it in opensmppbox.c file (and recompile, of course). And you can't control content of that string/text through Kannel sendsms HTTP/XML interface. Kannel just shows what it receives (keep in mind that the DLR is just SMS (ok, mostly)). > Regards, > > Ashish > On Feb 10, 2012 9:37 PM, "Milan P. Stanic" <[email protected]> wrote: > > > On Fri, 2012-02-10 at 20:23, Ashish Agarwal wrote: > > > I am trying to work on http dlr inject. I managed to send dlr on port > > 13015 > > > with SUCCESS(DELIVRD)/UNDELIV status but I am not able to change the > > > err:XXX and status:XXX value. > > > > Where did you read it can be done at all? > > > > > http smsc configuration > > > > > > group = smsc > > > smsc = http > > > smsc-id = http > > > system-type = generic > > > port = 13015 > > > connect-allow-ip = "*.*.*.*" > > > send-url = "http://172.16.1.130/smppbox/receive.php" > > > #send-url = "http://localhost/vm/receive.php?send=%P&msg=%b&dest=%p" > > > status-success-regex = "ok" > > > status-permfail-regex = "failure" > > > status-tempfail-regex = "retry later" > > > generic-foreign-id-regex = "<id>(.+)</id>" > > > generic-param-from = "senderID" > > > generic-param-to = "to" > > > generic-param-text = "text" > > > generic-param-dlr-mask = "DLRStatus" > > > generic-param-dlr-mid = "msgID" > > > generic-param-dlr-url = "DLRUrl" > > > generic-param-flash = "flash" > > > generic-param-mclass = "mclass" > > > generic-param-mwi = "mwi" > > > generic-param-coding = "coding" > > > generic-param-validity = "validity" > > > generic-param-deferred = "deferred" > > > generic-param-foreign-id = "foreignID" > > > #generic-message-sent = "Message sent with ID: %I" > > > generic-status-sent = 200 > > > generic-status-error = 404 > > > > > > wherein I am trying to inject dlr in the following format > > > > > > > > http://XXX.XXX.XXX.XXX:13015/?DLRStatus=2&msgID=e3989a62-e72d-cded-9b29-9ca98f820a11&to=919900000147&text=id%3Ae3989a62-e72d-cded-9b29-9ca98f820a11+sub%3A001+dlvrd%3A000+submit+date%3A1202101816+done+date%3A1202101821+stat%3AUNDELIV+err%3A051+text%3A > > > > > > Though I have mentioned the err value as 051 but the esme receives in the > > > following format > > > > > > 2012-02-10 18:29:01 Receive DLR [SMSC:XXX] [SVC:XXXX] [ACT:test] [BINF:] > > > [FID:0b3404f5] [META:?smpp?dlr_err=000&] [from:BULKSMS] [to:XXXXXXXXX] > > > [flags:-1:-1:-1:-1:2] [msg:112:id:0b3404f5 sub:001 dlvrd:000 submit > > > date:1202101827 done date:1202101829 stat:UNDELIV err:000 text: > > > ] [udh:0:] > > > > > > Please help me with this. > > > > > > -- > > > Regards, > > > > > > Ashish > > > > -- > > Kind regards, Milan > > -------------------------------------------------- > > Arvanta, IT Security http://www.arvanta.net > > Please do not send me e-mail containing HTML code or documents in > > proprietary format (word, excel, pps and so on) > > > > -- Kind regards, Milan -------------------------------------------------- Arvanta, IT Security http://www.arvanta.net Please do not send me e-mail containing HTML code or documents in proprietary format (word, excel, pps and so on)
