Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need help to configure ksmppbox with pluginbox #20

Open
manojr2k opened this issue May 18, 2020 · 1 comment
Open

need help to configure ksmppbox with pluginbox #20

manojr2k opened this issue May 18, 2020 · 1 comment

Comments

@manojr2k
Copy link

Hi Donald

attached file are the configurations at my side .
and below are the logs of pluginbox, i m not able to catch the headers of smppbox in http api written in php.can u please tell me where i m going wrong for smppbox ?
#pluginbox.conf
group = pluginbox
bearerbox-host = localhost
bearerbox-port = 14001
smsbox-port = 13005
smsbox-port-ssl = false
log-file = "/tmp/kannel-pluginbox.log"
log-level = 0
#ssl-client-certkey-file = ""
#ssl-server-cert-file = ""
#ssl-server-key-file = ""
#ssl-trusted-ca-file = ""
admin-port=13050
admin-password=pluginpw

Example group for configuring an HTTP plugin

group=pluginbox-plugin
#path=/opt/kannel/kannel-pluginbox/plugins/pluginbox_http.so
path=/opt/pluginbox/kannel-pluginbox/plugins/pluginbox_http.so
init="pluginbox_http_init"
priority=1
args="/opt/pluginbox/kannel-pluginbox/pluginbox_http.conf"
id=http1

group=pluginbox-plugin
path=plugins/pluginbox_example.so
priority=1
id=example1
init="pluginbox_example_init"
~
######################
/opt/pluginbox/kannel-pluginbox/pluginbox_http.conf
group=pluginbox-http
id=http1
url=http://192.168.43.240/http-processor.php
max-pending-requests=200
~

###########################

2020-05-18 23:28:17 [2614] [0] DEBUG: Started thread 1 (fdset.c:poller)
2020-05-18 23:28:17 [2614] [0] DEBUG: Started thread 2 (http.c:server_thread)
2020-05-18 23:28:17 [2614] [0] DEBUG: Started thread 3 (pluginbox_http.c:httpadmin_run)
2020-05-18 23:28:17 [2614] [0] INFO: [HTTP-PLUGIN] Initializing HTTP plugin
2020-05-18 23:28:17 [2614] [0] INFO: [HTTP-PLUGIN] Loading configuration for http1
2020-05-18 23:28:17 [2614] [0] INFO: [HTTP-PLUGIN] Max pending requests set to 200
2020-05-18 23:28:17 [2614] [0] DEBUG: Started thread 4 (pluginbox_http.c:pluginbox_http_request_thread)
2020-05-18 23:28:17 [2614] [0] DEBUG: Started thread 5 (pluginbox_http.c:pluginbox_http_receive_thread)
2020-05-18 23:28:17 [2614] [0] INFO: Plugin /opt/pluginbox/kannel-pluginbox/plugins/pluginbox_http.so initialized priority 1
2020-05-18 23:28:17 [2614] [0] INFO: Initializing example plugin
2020-05-18 23:28:17 [2614] [0] INFO: Plugin plugins/pluginbox_example.so initialized priority 1
2020-05-18 23:28:17 [2614] [0] DEBUG: Adding plugin /opt/pluginbox/kannel-pluginbox/plugins/pluginbox_http.so to from smsbox process queue
2020-05-18 23:28:17 [2614] [0] DEBUG: Adding plugin /opt/pluginbox/kannel-pluginbox/plugins/pluginbox_http.so to from bearerbox process queue
2020-05-18 23:28:17 [2614] [0] DEBUG: Adding plugin plugins/pluginbox_example.so to from smsbox process queue
2020-05-18 23:28:17 [2614] [0] DEBUG: Adding plugin plugins/pluginbox_example.so to from bearerbox process queue
2020-05-18 23:28:17 [2614] [0] INFO: Waiting for connections on 13005
2020-05-18 23:28:17 [2614] [5] DEBUG: Thread 5 (pluginbox_http.c:pluginbox_http_receive_thread) maps to pid 2614.
2020-05-18 23:28:17 [2614] [5] INFO: [HTTP-PLUGIN] Starting receive thread
2020-05-18 23:28:17 [2614] [1] DEBUG: Thread 1 (fdset.c:poller) maps to pid 2614.
2020-05-18 23:28:17 [2614] [2] DEBUG: Thread 2 (http.c:server_thread) maps to pid 2614.
2020-05-18 23:28:17 [2614] [2] DEBUG: HTTP: Including port 13050, fd 9 for polling in server thread
2020-05-18 23:28:17 [2614] [3] DEBUG: Thread 3 (pluginbox_http.c:httpadmin_run) maps to pid 2614.
2020-05-18 23:28:17 [2614] [4] DEBUG: Thread 4 (pluginbox_http.c:pluginbox_http_request_thread) maps to pid 2614.
2020-05-18 23:28:17 [2614] [4] INFO: [HTTP-PLUGIN] Starting request thread
(END)

debug.txt

@manojr2k
Copy link
Author

i tried lot of things , but ksmppbox <> bearerbox , messages not getting to pluginbox.
dont know whats goinf wrong ,since no error message i can see is any log .
can somebody help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant