Re: INFO: NOTE: sender and receiver same number <41313131313>, ignoring!
Nisan Bloch <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi
This is a bug in the cvs. It must have come in with the "new" dlr mechanism.
We are a bit off/ahead of the current CVS tree, and I dont have time to do
a proper patch
So here it is
CVS in gw/smsc/smsc_smpp.c line 918
does this
dlrmsg = dlr_find(octstr_get_cstr(smpp->conn->id),
octstr_get_cstr(tmp), /* smsc
message id */
octstr_get_cstr(pdu->u.deliver_sm.destination_addr),
/* destination */
dlrstat);
IT Should be
dlrmsg = dlr_find(octstr_get_cstr(smpp->conn->id),
octstr_get_cstr(tmp), /* smsc
message id */
octstr_get_cstr(pdu->u.deliver_sm.source_addr),
/* destination */
dlrstat);
And then are you using mysql or mem based DLR storage?
In the cvs code
dlr_find_mem does
msg->sms.sender = octstr_duplicate(dlr->destination);
msg->sms.receiver = octstr_duplicate(dlr->source);
where as
dlr_find_mysql and dlr_find_sdb
msg->sms.sender = octstr_duplicate(source_addr);
msg->sms.receiver = octstr_create(dst);
Nisan
At 03:34 PM 4/14/03 +1000, [email protected] wrote:
>Hi,
>
>I have tried to work out how this might come up, by looking at the code,
>but to no avail...
>Let me explain how this error occurs in my testing.
>
>I set headers of
> X-Kannel-From: 3123131321
> X-Kannel-To: 41313131313
>
>The smsbox log, confirms this:
>
>2003-04-14 15:28:39 [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms>
>from <128.184.134.190>
>2003-04-14 15:28:39 [3] INFO: sendsms used by <tester>
>2003-04-14 15:28:39 [3] INFO: sendsms sender:<tester:3123131321>
>(128.184.134.190) to:<41313131313> msg:<Testing message>
>2003-04-14 15:28:39 [3] DEBUG: message length 15, sending 1 messages
>2003-04-14 15:28:39 [3] DEBUG: Status: 202 Answer: <Sent.>
>
>Notice that the <tester:3123131321> corresponds to the X-Kannel-From
>header, and the to:<41313131313> corresponds to the
>X-Kannel-To header.
>
>But then after the DLR report goes out, I get the log line:
>
>2003-04-14 15:28:42 [4] INFO: NOTE: sender and receiver same number
><41313131313>, ignoring!
>
>
>Even the Logical SMSC Simulator reports
>
>Source Address Dest Address
>--------------------------------------------------------
>3123131321 41313131313
>
>
>I am using Kannel 1.3.1 on Solaris. Is this a bug?
>
>Thanks
>Jason