when you run sqlbox with

echo exec('sqlbox -v 0 /etc/kannel/sqlbox.conf');

it actually starts and start sending messages, and as soon as the send_sms
table is empty, your command 'exec' is complete

to run sqlbox using php just add a & at the end of your command like

echo exec('sqlbox -v 0 /etc/kannel/sqlbox.conf &');

this will send sqlbox in background.

but spameden is absolutely right, i can not see any reason to start sqlbox
using php. use some startup script

Thanks
Ali


On Mon, Apr 6, 2015 at 5:29 PM, spameden <spame...@gmail.com> wrote:

>
>
> 2015-04-06 17:03 GMT+03:00 Salma BARKAOUI <salma.barka...@supcom.tn>:
>
>>  Hi users ,
>>
>>
>>  1) It is possible to execute sqlbox -v 0 sqlbox.conf on a php file like
>> this:
>>
>> echo exec('sqlbox -v 0 /etc/kannel/sqlbox.conf'); ?
>>
>
> No need to start sqlbox multiple times, you only need to start it once and
> it forks into background as a daemon.
>
> Look at contrib/init.d script for proper bearerbox/sqlbox startup script.
>
>> If not how we can make sqlbox do not stop because it stop each time the
>> database became empty.
>>
> Did you mean send_sms table ? Of course it will be emptied because this is
> how sqlbox is working. It gets record from send_sms, parses it, submits to
> bearerbox and after submission moves that record into sent_sms table.
>
>> 2) Can we have DLR message using SMPPsim ?​
>>
> If you meant testing with SMPPsimulator yes you can do it, also there is
> fakesmsc daemon which provides ability to send MTs with DLR as well.
>
>>  Thanks.
>>
>>
>>
>

Reply via email to