[asterisk-commits] may: branch may/smpp r404529 - /team/may/smpp/branches/10/addons/res_smpp.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Dec 20 16:50:36 CST 2013
Author: may
Date: Fri Dec 20 16:50:33 2013
New Revision: 404529
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=404529
Log:
fix sentenq place bug
Modified:
team/may/smpp/branches/10/addons/res_smpp.c
Modified: team/may/smpp/branches/10/addons/res_smpp.c
URL: http://svnview.digium.com/svn/asterisk/team/may/smpp/branches/10/addons/res_smpp.c?view=diff&rev=404529&r1=404528&r2=404529
==============================================================================
--- team/may/smpp/branches/10/addons/res_smpp.c (original)
+++ team/may/smpp/branches/10/addons/res_smpp.c Fri Dec 20 16:50:33 2013
@@ -464,7 +464,6 @@
enq_resp.command_status = ESME_ROK;
enq_resp.sequence_number = sequence_number;
queue_pdu(smsc, ENQUIRE_LINK_RESP, (void *)&enq_resp);
- smsc->sentenq = time(NULL);
} else if ((uint32_t)enq_resp->command_id == (uint32_t) ENQUIRE_LINK_RESP && enq_resp->command_status == ESME_ROK) {
smsc->lastenq = time(NULL);
} else {
@@ -644,6 +643,7 @@
enq.command_id = ENQUIRE_LINK;
enq.command_status = ESME_ROK;
enq.sequence_number = smsc->seq++;
+ smsc->sentenq = time(NULL);
return queue_pdu(smsc, ENQUIRE_LINK, (void *)&enq);
}
@@ -961,7 +961,7 @@
pthread_testcancel();
sleep(12);
continue;
- }
+ }
}
}
More information about the asterisk-commits
mailing list