Hello!
Today i set up some check code into smsc_emi2.c:
--- smsc_emi2.orig Wed Sep 4 21:08:52 2002
+++ smsc_emi2.c Sun Nov 10 10:00:12 2002
@@ -976,7 +976,11 @@ static int emi2_handle_smscreq (SMSCConn
* Recode the msg structure with the given msgdata.
* Note: the DLR URL is delivered in msg->sms.dlr_url
already.
*/
- dlrmsg->sms.msgdata =
octstr_duplicate(emimsg->fields[E50_AMSG]);
+ dlrmsg->sms.msgdata =
octstr_duplicate(emimsg->fields[E50_AMSG]);
+ if (dlrmsg->sms.msgdata == NULL) {
+ dlrmsg->sms.msgdata = octstr_create("");
+ info(0, "EMI2[%s]: msgdata is NULL",
octstr_get_cstr(privdata->name));
+ }
octstr_hex_to_binary(dlrmsg->sms.msgdata);
dlrmsg->sms.sms_type = report;
and now kannel works fine and in log i see lines like
2002-11-10 10:09:57 [12] DEBUG: boxc_receiver: sms received
2002-11-10 10:09:57 [10] DEBUG: EMI2[MTS]: emi2 sending packet:
<01/00192/O/51/0079021733068/79165904505//1//7/////////////3//436220627962656B2031302E31312E323030322031303A30393A3435203536342E3133207374617475733A204E4F524D20696E666F3A204F////////1139/////7F>
2002-11-10 10:09:57 [10] DEBUG: Adding DLR smsc=MTS, ts=MTS-1, src
=+79165904505, dst=0079021733068, mask=31
2002-11-10 10:09:58 [10] DEBUG: EMI2[MTS]: Got packet from the main socket
2002-11-10 10:09:58 [10] DEBUG: EMI2[MTS]: emi2 parsing packet:
<01/00046/R/51/A//0079021733068:101102100956/CF>
2002-11-10 10:09:58 [10] DEBUG: Looking for DLR smsc=MTS, ts=MTS-1, dst
=+79021733068, type=8
2002-11-10 10:09:58 [10] DEBUG: created DLR message for URL
<http://127.0.0.1/cgi-bin/smsbdlr?id=20021110100944000K371&mqueue=LIVE.DLR.SMS.IMB&dlr
=%d>
2002-11-10 10:09:58 [10] INFO: EMI2[MTS]: msgdata is NULL
2002-11-10 10:09:58 [13] DEBUG: boxc_sender: sent message to <127.0.0.1>
2002-11-10 10:09:58 [12] DEBUG: boxc_receiver: got ack
2002-11-10 10:09:58 [10] DEBUG: Adding DLR smsc=MTS, ts=101102100956, src
=+79165904505, dst=0079021733068, mask=31
2002-11-10 10:10:05 [10] DEBUG: EMI2[MTS]: Got packet from the main socket
2002-11-10 10:10:05 [10] DEBUG: EMI2[MTS]: emi2 parsing packet:
<01/00298/O/53/462/89021733068/////////////101102100956/0/000/101102101004/3//4D65737361676520666F722038393032313733333036382C2077697468206964656E74696669636174696F6E2030323131313031303039353620686173206265656E2064656C697665726564206F6E20323030322D31312D31302061742031303A31303A30342E/////////////FC>
2002-11-10 10:10:05 [10] DEBUG: Looking for DLR smsc=MTS, ts=101102100956,
dst=89021733068, type=1
2002-11-10 10:10:05 [10] DEBUG: created DLR message for URL
<http://127.0.0.1/cgi-bin/smsbdlr?id=20021110100944000K371&mqueue=LIVE.DLR.SMS.IMB&dlr
=%d>
2002-11-10 10:10:05 [13] DEBUG: boxc_sender: sent message to <127.0.0.1>
2002-11-10 10:10:05 [12] DEBUG: boxc_receiver: got ack
2002-11-10 10:10:05 [10] DEBUG: EMI2[MTS]: emi2 sending packet:
<01/00020/R/53/A///97>
with best wishes
German Aksenov
phone: (095)258-7258 ext. 7836
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.