[solved] Values of flags and statuses

From previous topics I know that the values for playsms_tblSMSOutgoing.p_status are as follows:

0 is pending
1 is sent
2 is failed
3 is delivered

What do the values in playsms_tblOutgoing_queue.flag mean?

Hi,

First time inserted the flag is 2, and then playSMS will insert destinations to tblSMSOutgoing_queue_dst for that queue.
Once all destination filled then the queue flagged with 0

playsmsd look for queue flagged 0 and then calculate chunks (for parallel SMS sending), once done calculating chunks the daemon will flag the queue with 3.

next, playsmsd will process the queue (send SMS to destinations in that queue) flagged 3, once done the queue flagged with 1 and the process for that queue stopped.

In summary:

flag 2 : newly inserted
flag 0: ready for playsmsd
flag 3: ready for actual SMS delivery process
flag 1: all SMS has been sent to destination

anton

Great, thank you Anton