Hi list, I'm a newbie with opensmpp, i found this thread, I think I have the same problem.
I'm woking with http-based smsc and opensmpp, and when i send a dlr, dst and src doesn't INVETED. I send the opensmppbox logs in the attachment Do you have any ideas? Thanks a lot! ----- Original Message ----- From: Rene Kluwen To: 'Didac Royo' Cc: users at kannel.org <http://www.kannel.org/mailman/listinfo/users> Sent: Wednesday, March 02, 2011 4:56 PM Subject: RE: OpenSMPP+Kannel: DLR: (dst & src) are expected INVETED in the deliver_sm (but remains as in submit_sm) Viewing this log, it seems that your sms gateway is doing things right. Somewhere along the line, bearerbox OR opensmppbox reverses the addresses. Looking at the code, I cannot see which one is doing things wrong. Both seem to be doing things allrighty… Judging from your bearerbox log: Ψ 2011-03-01 16:50:04 Receive DLR [SMSC:GMS] [SVC:ismsad] [ACT:sit2] [BINF:] [FID:110301S00d1a44c] [META:?smpp?dlr_err=000&] [from:Info] [to:+34695839615] [flags:-1:-1:-1:-1:1] [msg:111:id:110301S00d1a44c sub:000 dlvrd:000 submit date:1103011650 done date:1103011650 stat:DELIVRD err:000 text: ] [udh:0:] It seems that smsc smpp is doing things wrong. On line 1487 and line 1545 of smsc_smpp.c, where the function handle_dlr() is called, this function replaces source_addr with destination_address. Or maybe otherwise: dlr_find is called and returns the msg structure with the original source_addr and dest_addr still in place. Maybe somebody with some more knowledge of the smpp driver can shed a light on this? == Rene *Mario Noboa C.* | IT Development Specialist Teamsourcing www.teamsourcing.com.ec | mno...@teamsourcing.com.ec
opensmpp.log
Description: Binary data