add expressions for MMS Sent Status.
authorSooyoung Ha <yoosah.ha@samsung.com>
Tue, 12 Mar 2013 12:05:41 +0000 (21:05 +0900)
committerSooyoung Ha <yoosah.ha@samsung.com>
Tue, 12 Mar 2013 12:05:41 +0000 (21:05 +0900)
packaging/vmodemd-emul.spec
vmodem/server/client.c

index a90ddc0198fc73cca2b11115d43463a984747733..911c994a16287e4930b8c608b0e1212fed5afa35 100644 (file)
@@ -1,6 +1,6 @@
 #git:slp/pkgs/v/vmodem-daemon-emulator
 Name: vmodemd-emul
-Version: 0.2.39
+Version: 0.2.40
 Release: 1
 Summary: Modem Emulator
 Group: System/ModemEmulator
index a989cf02ab90fe4721b143b559e6a1bfc75b41c6..ea2c73d11e4c61a29f0c279eed6713e72b26b31b 100644 (file)
@@ -1045,6 +1045,7 @@ static void do_sms(PhoneServer * ps, TClientInfo * ci, LXT_MESSAGE * packet)
 {
        unsigned char *p;
     int action = packet->action;
+    char vconf_cmd[99];
 
     TRACE(MSGL_VGSM_INFO, "do_sms %x\n", action);
     switch (action)
@@ -1055,6 +1056,11 @@ static void do_sms(PhoneServer * ps, TClientInfo * ci, LXT_MESSAGE * packet)
        case GSM_SMS_SEND_ACK_REQ:
                p = (unsigned char *)packet->data;
                smsSentStatus = (int)p[0];
+               if(smsSentStatus == 10 || smsSentStatus == 11){
+                   sprintf(vconf_cmd, "vconftool set -t int memory/telephony/mms_sent_status %d -i -f", (smsSentStatus - 10));
+                   TRACE(MSGL_VGSM_INFO, "system : %s\n", vconf_cmd);
+                   system(vconf_cmd);
+               }
 
                server_tx_sms_ReceiveAckMsg(packet);
                break;