Hi,
I'm using log_custom module and I have it configured with **log_stderror=no** and **log_engine_type="udp"**. As far as I understand this module should send all log messages using udp, right?
For instance:
``` request_route { log_udp("R-URI is $ru\n"); xlog("L_INFO", "This is a test message\n");
... }
``` The UDP listener should receive:
``` R-URI is sip:test201@10.22.22.201:5060 This is a test message ```
But in my case the UDP listener only receives:
``` R-URI is sip:test201@10.22.22.201:5060 ```
This is, the messages sent using the method exported by the module (i.e **log_udp**). Am I doing something wrong?
Thanks,
Laura
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/680
Do you see the test message in syslog?
What is the value for **debug** global parameter? It has to be at least 2 to get the L_INFO level printed.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/680#issuecomment-227806041
Yes, the debug parameter is 2 and I can see the message in syslog but the message is not sent to the UDP listener.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/680#issuecomment-227963218
Can you test with git master branch setting debug=3 in kamailio.cfg? The make all log messages printed at startup available somewhere for read (e.g., patebin).
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/680#issuecomment-228128443
I found the error, it wasn't a module error. I run the kamailio using supervisor and the command used to start kamailio had the parameter -E which uses the staderr instead of syslog.
I'm sorry.
Thanks
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/680#issuecomment-228715675
Closed #680.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/680#event-704790844
No worries, good that it was sorted out!
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/680#issuecomment-228716712