Hello Henning,
I actually start "Wireshark" just while testing the connection as I didn't know any other way. It's been a whole test environment for my thesis anyway.
I'm sure the call is routed via the Kamailio as Wireshark shows me that the INVITE is sent from client_1 to Kamailio and from Kamailio to client_2 afterwards.
The Perl function is still not excecuted. :(
Coming back to the logs: No logs from Kamailio are found in in "/var/log/syslog".
I tried to change the logging target using this tutorial but didn't work:
http://www.kamailio.org/dokuwiki/doku.php/utils:basic-syslog-configuration
What can I do?
How to set up proper logging?
Regards, Nicolas
-------- Original-Nachricht --------
Datum: Wed, 14 Jul 2010 15:41:02 +0200 Von: Henning Westerholt henning.westerholt@1und1.de An: "Nicolas Rüger" NicolasRueger@gmx.de, "sr-users@lists.sip-router.org" sr-users@lists.sip-router.org Betreff: Re: [SR-Users] Perl Code Execution via kamailio.cfg fails
On Wednesday 14 July 2010, Nicolas Rüger wrote:
as I didn't know how to create logfiles I used "Wireshark" to log all data-packages.
Hello Nicolas,
so you capture the syslog packages on a network level? I see. :-) Then they should end up somewhere in /var/log/ - if i think it should be possible to specify a certain log target and match this in your logging configuration.
I use 2 local sip-clients (pjsip) calling each other for testing the behavior. Therefore I'm sure that the INVITE is sent by one client and replied by the other client. I even get an RTP session
running
between them.
Ok, fine. But the question is, if the call is routed over kamailio? :-)
For testing I uncommented the if-statement, so that the exec-command
will
be used in every case (see the following lines). Unfortunately it still won't work. Any other ideas?
Where can I find any logfiles logging information while kamailio is running, when I insert the following lines for example?
log("mylog before perl execution\n"); perl_exec("myprint"); log("mylog after perl execution\n");
On my system (ubuntu) they are located in /var/log/syslog.
Henning
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users