<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.3">
</HEAD>
<BODY>
Hi Faisal,<BR>
<BR>
You say you added to syslog.conf: local1.* -/var/log/kamailio<BR>
<BR>
Is that exactly how it appears? If so, I think you need to remove the hyphen so it becomes: local1.* /var/log/kamailio<BR>
<BR>
As Sammy said, don't forget to restart syslog.<BR>
<BR>
Regards,<BR>
<BR>
Charles<BR>
<BR>
<BR>
-----Original Message-----<BR>
<B>From</B>: SamyGo <<A HREF="mailto:SamyGo%20%3cgovoiper@gmail.com%3e">govoiper@gmail.com</A>><BR>
<B>Reply-To</B>: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List <<A HREF="mailto:SIP%20Router%20-%20%22Kamailio%20%28OpenSER%29%20and%20SIP%20Express%20Router%20%28SER%29%20-%20Users%20Mailing%20List%22%20%3csr-users@lists.sip-router.org%3e">sr-users@lists.sip-router.org</A>><BR>
<B>To</B>: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List <<A HREF="mailto:SIP%20Router%20-%20%22Kamailio%20%28OpenSER%29%20and%20SIP%20Express%20Router%20%28SER%29%20-%20Users%20Mailing%20List%22%20%3csr-users@lists.sip-router.org%3e">sr-users@lists.sip-router.org</A>><BR>
<B>Subject</B>: Re: [SR-Users] Using Sip-Router Logging & Register Problem Problem<BR>
<B>Date</B>: Tue, 29 May 2012 15:27:06 +0500<BR>
<BR>
Did you restart your syslog ? Add xlog lines in yur config when you receive a REGISTER request so that it actually prints something out.
<BR>
<BR>
On Tue, May 29, 2012 at 3:23 PM, Faisal Yousuf <<A HREF="mailto:faisal.yousuf@gmail.com">faisal.yousuf@gmail.com</A>> wrote:<BR>
<BLOCKQUOTE>
Hi Daniel/ Sammy ,
</BLOCKQUOTE>
<BLOCKQUOTE>
I made the changes in config as suggested (i.e. move the define variables at the top of the file rather then in the middle)
</BLOCKQUOTE>
<BLOCKQUOTE>
Regarding setting debug=3 => I am setting WITH_DEBUG in the config file so based on processing of this symbol I believe debug=4 is set.#
</BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE>
For the log facility in the kamailio.cfg I have set the option log_facility=LOG_LOCAL1
</BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE>
& in my syslog.cfg (attached again) I have set the following
</BLOCKQUOTE>
<BLOCKQUOTE>
local1.* -/var/log/kamailio
</BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE>
but still I dont see any logs in this location when I start kamailio
</BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE>
I can see the kamailio process - (in total there are 19 processes here is the root process all other are child processes of this process)
</BLOCKQUOTE>
<BLOCKQUOTE>
kamailio 3375 1 0 08:06 ? 00:00:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 32 -M 4 -u kamailio -g kamailio
</BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE>
I can also see kamailio starting to listen on port 5060 port on the local machine on both UDP & TCP interfaces
</BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE>
I am using an xlite phone on windows to attempt to register - on my Kamailio VM (using UDP) I started a tcpdump to see if I am receiving the Register messages - I can see the register packets coming to the Kamailio hosts from the phone - but I dont see any responses from Kamailio.
</BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE>
Also as there are no logs I dont know what is going wrong.
</BLOCKQUOTE>
<BLOCKQUOTE>
Regards,
</BLOCKQUOTE>
<BLOCKQUOTE>
Faisal
</BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE>
On Tue, May 29, 2012 at 2:37 PM, SamyGo <<A HREF="mailto:govoiper@gmail.com">govoiper@gmail.com</A>> wrote:<BR>
<BLOCKQUOTE>
Hi Faisal,
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
You say you've seen packets on kamailio but kamailio isn't replying !!
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
1- Please verify that yuor kamailio is indeed started <B>[ps -ef | grep kamailio]</B>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
2- Verify if kamailio is actuallay listening on the same port as you are sending pcakets to ! <B>[netstat -pln|grep kamailio]</B>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
3- Verify if your kamailio is using the same protocol as of your client i.e TCP or UDP or TLS etc.
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
4- instead of viewing the file<I> /var/log/kamailio</I> see<I> /var/log/messages </I>because you haven't mentioned local7 as Log facility in your config.
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
I don't see your syslog<B>.conf </B> file in this mail! check that file and follow <A HREF="http://www.kamailio.org/dokuwiki/doku.php/utils:basic-syslog-configuration">the referenced link</A> completely.
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
Also see your configurations kamailio.cfg file and use define tags from second line from top onward i.e just after #!KAMAILIO.
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
Try getting rid of the comment line "<I>####### Defined Values #########</I>" - in my experience such comment before define cause trouble with configurations.
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
See all these and then reply with updates.
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
Regards,
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
Sammy G.
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
On Tue, May 29, 2012 at 2:18 PM, Daniel-Constantin Mierla <<A HREF="mailto:miconda@gmail.com">miconda@gmail.com</A>> wrote:
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
Hello,<BR>
<BR>
you can set debug=3 in kamailio config to see very verbose debug messages. If you don't get any, means the request does not reach the application layer, meaning you have a firewall in place that drops the packets from the network.<BR>
<BR>
Cheers,<BR>
Daniel
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
On 5/29/12 8:02 AM, Faisal Yousuf wrote:<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Hi Experts,
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
I am a newbee with SIP-Router/Kamailio - I installed Kamailio on a CentOS 5.5 VM - following the instructions from the following link
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<A HREF="http://kb.asipto.com/kamailio:install:3.0.x-from-git-centos5x">http://kb.asipto.com/kamailio:install:3.0.x-from-git-centos5x</A>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Kamailio is installed & I can start kamailio deamon from service kamailio start
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
However I also created two subscribers - but when I try to register my SIP Phone (by setting Kamailio as the domain to register to) - I can see my sip-phone sending the Register request to Kamailio (I put a tcpdump on the kamailio machine to see sip-messages reaching the host) but I dont get any response from Kamailio - so my sip phone reaches the 408 Registeration Timeout state.
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Now, I dont get any logs from Kamailio to know what is happening while my phone is sending the register request - I tried to configure logging following instructions from the following link
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<A HREF="http://www.kamailio.org/dokuwiki/doku.php/utils:basic-syslog-configuration">http://www.kamailio.org/dokuwiki/doku.php/utils:basic-syslog-configuration</A>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
But I dont get any logs in the /var/log/kamailio log file.
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
To assist in understanding the issue - I am attaching the syslog config , kamailio config file & the kamailio service script in the init.d folder.
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
My first objective will be to enable logging for kamailio & the next objective is to get the basic registration & routing between endpoints - my ultimate objective is to configure SER/Kamailio as a load-balancer for our B2BUA & Media Servers (I found the dispatcher module can help in accomplishing this) - Can anybody help me in identifying why I am not getting any logs ?
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
I have already seen the wiki & have developed some understanding regarding how Kamailio is configured but am I seeking more information regarding the route language - (the state-model + reference of the functions that can be used in the route script etc.) - in this regards if I can get any documentation pointers from the user community that can help me gain a better understanding the use of Kamailio for above it will be great
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCK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BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<A HREF="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A>
<A HREF="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</A>
</PRE>
</BLOCKQUOTE>
<BR>
<PRE>
<FONT COLOR="#888888">-- </FONT>
<FONT COLOR="#888888">Daniel-Constantin Mierla - <A HREF="http://www.asipto.com">http://www.asipto.com</A></FONT>
<FONT COLOR="#888888"><A HREF="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</A> - <A HREF="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</A></FONT>
<FONT COLOR="#888888">Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - <A HREF="http://asipto.com/u/katu">http://asipto.com/u/katu</A></FONT>
</PRE>
<BR>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
_______________________________________________<BR>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<BR>
<A HREF="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A><BR>
<A HREF="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</A><BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
_______________________________________________<BR>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<BR>
<A HREF="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A><BR>
<A HREF="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</A><BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE>
<BR>
_______________________________________________<BR>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<BR>
<A HREF="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A><BR>
<A HREF="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</A><BR>
<BR>
</BLOCKQUOTE>
<BR>
<BR>
<PRE>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<A HREF="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A>
<A HREF="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</A>
</PRE>
</BODY>
</HTML>