working api scheduled + working daemons for phone and sender + working adapters

This commit is contained in:
osaajani 2021-03-19 21:59:49 +01:00
parent ff6b3e79df
commit 136b3f76ce
2 changed files with 3 additions and 1 deletions

View File

@ -253,7 +253,7 @@ namespace controllers\internals;
/**
* Get all messages to send and the number to use to send theme.
*
* @return array : [['id_scheduled', 'text', 'id_phone', 'destination', 'flash'], ...]
* @return array : [['id_scheduled', 'text', 'id_phone', 'destination', 'flash', 'mms', 'medias'], ...]
*/
public function get_smss_to_send()
{

View File

@ -76,6 +76,8 @@ class Sender extends AbstractDaemon
'id_phone' => $sms['id_phone'],
'destination' => $sms['destination'],
'flash' => $sms['flash'],
'mms' => $sms['mms'],
'medias' => $sms['medias'] ?? [],
];
msg_send($this->queues[$queue_id], QUEUE_TYPE_SEND_MSG, $msg);