This should be a bit better :)

Kyriacos

On 12/04/2010 16:26, Kyriacos Sakkas wrote:
> What do you think of this? I will try it, but wondering if anyone things
> this will not work. I know this is not a proper solution, but it should
> be OK.
>
> Kyriacos
>
> On 12/04/2010 16:01, Kyriacos Sakkas wrote:
>   
>> Hi All,
>>
>> This question has been posted before, but I have not seen any solutions.
>> I need to receive CIMD2 field 062 in my DLR urls. None of the %* options
>> seems to return it, even embedded in other info.
>> As far as I understand the meta-data TLV system is SMPP only, and will
>> not provide a solution.
>> >From my system %A returns field 061 and %d the SMPP? mapping/equivalent
>> of field 061.
>> Could some small change alter this so that %A returns 062 which is to my
>> understanding closer to the extra error info returned in SMPP DLRs.
>>
>> Thanks in advance,
>>
>> Kyriacos Sakkas
>>
>>   
>>     
>
>   


-- 
Kyriacos Sakkas
Development Team
Netsmart
Tel: + 357 22 452565
Fax: + 357 22 452566
Email: [email protected]
http://www.netsmart.com.cy

Taking Business to a New Level!

** Confidentiality Notice: The information contained in this email
message may be privileged, confidential and protected from disclosure.
If you are not the intended recipient, any dissemination, distribution,
or copying of this  email message is strictly prohibited.
If you think that you have received this email message in error, please
email the sender at [email protected] **

--- smsc_cimd2.c.original       2010-04-12 16:32:53.000000000 +0300
+++ smsc_cimd2.c        2010-04-12 16:34:56.000000000 +0300
@@ -2088,12 +2088,14 @@
     Octstr *destination = NULL;
     Octstr *timestamp = NULL;
     Octstr *statuscode = NULL;
+    Octstr *statuserrorcode = NULL;
     int st_code;
     int code;

     destination = packet_get_parm(request, P_DESTINATION_ADDRESS);
     timestamp = packet_get_parm(request, P_MC_TIMESTAMP);
     statuscode = packet_get_parm(request, P_STATUS_CODE);
+    statuserrorcode = packet_get_parm(request, P_STATUS_ERROR_CODE);

     st_code = atoi(octstr_get_cstr(statuscode));

@@ -2122,12 +2124,13 @@
     if (msg) {
         msg->sms.msgdata = packet_get_parm(request, P_USER_DATA);
         if (!msg->sms.msgdata) {
-            msg->sms.msgdata = statuscode;
-            statuscode = NULL;
+            msg->sms.msgdata = statuserrorcode;
+            statuserrorcode = NULL;
         }
     }

     octstr_destroy(statuscode);
+    octstr_destroy(statuserrorcode);
     octstr_destroy(destination);
     octstr_destroy(timestamp);

Reply via email to