Is there a simple way to log SIP messages generated by OpenSIP into syslog? It is fairly simple to log all the inbound messages, but I can't find a way to access all the OpenSIPS generated messages from the configuration file script.
Maybe you want to try the parameter log_stderror=no in opensips.cfg (no console output). Messages are then send to syslog service.
I was actually asking about SIP messages, not general log messages. As far as I can see there is no way to log or access SIP messages generated by OpenSIPS except using sip trace module. What I wanted was to log SIP messages into syslog.
Hi Roman, you can use the siptrace module to trace all the sip messages related to a specific transaction, but the dumping is done via the DB interface (so to mysql, to dbtext, to flatstore , which can be files).
Thank you for your reply Bogdan.
We are already using siptrace, but even in this case we have a problem. siptrace does not log outbound sip replies outside of a transaction. So, if we forward the request in a stateless fashion, get the reply back, and forward it based on via, then siptrace can log the incoming request, forwarded request, incoming response, but not the forwarded response. At least not without starting a transaction (everything is logged for relayed requests). This might be a bug.
We are running openSIPS as a stateless proxy and because of this do not log any of the outbound responses. So, we are still looking for a solution.
I am using opensips as registrar and stateless proxy.
I can see messages like INVITE and REGISTER in the table but not there replies which are generated.
Please tell me what is the way for it?
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.