I’m trying to defined the kannel as gateway but I’m getting “playsms Unable to access Kannel admin commands” I tried to echo the url in kannel.php it gave the correct URL with the password, I copied the URL and past into firefox it gave the result, so what is the possibility of playsms?? and why cannot get the result?
already opened the kannen.php and i echo the url concatenated with the kannel status… than i copied the full url and paste in url … the result is success as the url is correct and i got the kannel status
As you can see from the codes, the error message will be displayed when the $kannel_status is empty.
Since you said that you echoed the $url and test manually on browser and it shown, then it must be somehow the $kannel_status = @file_get_contents($url); wasn’t executed properly, or returning empty.
I don’t know why, yet, but you might want to try to remove the ‘@’ in file_get_contents see if it’ll popup some error message
The big problem is not compatible with the SQLBOX of kannel, they are always using the http post, but it make delay in sending for something like 1,000,000 SMS
Let’s the playsms shoot the SMS & insert as one single line into table, and the Kannel via SQLBOX will handle the delivery, it most probably I have 3 connection to the same gateway as transmit and one only to retrieve the delivery… so I think would be better if changed the behavior to get full or more benefit of Kannel
I know this post is a few years old but i recently also ran into the unable to access Kannel admin commands, after some debugging, some coffee and a few bangs of my head against the wall i realised that i had installed Kannel into my host and not the container, the localhost cannot be contacted unless you add the --network=host flag to the docker run command that is provided. So use this:
docker run --network=host -d -p 80:80 playsms/playsms
The way i worked this out was by connected to the docker container, running curl (which needs to be installed) and then running