Hi Daniel, Many thanks - local firewall it is my bad - I thought the fact packet sniffer can see the packet - there is no network firewall blocking the packet - but there was an IP-Tables on the host - I shutdown the ip-tables & now the registration is going through & I am also able to send calls between subscribers . The log_stderror=yes is working now I can get the error messages on the console (but for that I have to start kamailio by typing kamailio - when I start using service kamailio start I dont get any log messages).
Thanks its a step forward - I will review the config again for syslog configuration as for troubleshooting its better to have the logs dumped to a file rather then on std_error. BTW: If you can point me to some good tutorials regarding load-balancer(dispatcher module) it will be great - Regards, Faisal On Tue, May 29, 2012 at 5:32 PM, Daniel-Constantin Mierla <mico...@gmail.com > wrote: > Hello, > > I could not spot if you checked for presence of a firewall. If you don't > get any log message from kamailio, it is very likely the sip traffic is > blocked -- be aware that packet sniffers grab them from the network before > local firewall rules. > > You can also set log_stderror=yes and the log messages should be printed > to the terminal, in this way you don't care if syslog is configured or not > properly, just o be sure there are log messages. Then you can get back to > syslog. > > Cheers, > Daniel > > > On 5/29/12 12:55 PM, SamyGo wrote: > > Change the L_WARN to L_NOTICE that makes a difference when you've > different debug=x value. > and yes you are right about the "-" in -/var/log/kamailio , it is really > required to prevent kamailio from waiting on syslog to print lines and then > continue. > > > On Tue, May 29, 2012 at 3:52 PM, Faisal Yousuf <faisal.you...@gmail.com>wrote: > >> While I didnt restarted my syslog (as the config were there from before) >> - but I did check after restarting syslog >> regarding using xlog - I have 3 xlog messages in my route logic around >> Registration >> >> # handle registrations >> xlog("L_WARN","Code before Registrar"); >> route(REGISTRAR); >> xlog("L_WARN","Code after Registrar"); >> >> I also have a log message at the start of the route >> xlog("L_WARN","Begin Routing"); >> >> regarding the hyphen I checked removing the hyphen but based on my >> understanding from the link regarding enabling logging the hyphen enables >> asynchronous logging >> >> Anyhow even after all these I still dont see any logs. >> >> Regards, >> Faisal >> >> >> On Tue, May 29, 2012 at 3:33 PM, Charles Chance < >> charles.cha...@sipcentric.com> wrote: >> >>> Hi Faisal, >>> >>> You say you added to syslog.conf: local1.* -/var/log/kamailio >>> >>> Is that exactly how it appears? If so, I think you need to remove the >>> hyphen so it becomes: local1.* /var/log/kamailio >>> >>> As Sammy said, don't forget to restart syslog. >>> >>> Regards, >>> >>> Charles >>> >>> >>> >>> -----Original Message----- >>> *From*: SamyGo <govoi...@gmail.com <samygo%20%3cgovoi...@gmail.com%3e>> >>> *Reply-To*: SIP Router - Kamailio (OpenSER) and SIP Express Router >>> (SER) - Users Mailing List >>> <sr-users@lists.sip-router.org<sip%20router%20-%20%22kamailio%20%28openser%29%20and%20sip%20express%20router%20%28ser%29%20-%20users%20mailing%20list%22%20%3csr-us...@lists.sip-router.org%3e> >>> > >>> *To*: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - >>> Users Mailing List >>> <sr-users@lists.sip-router.org<sip%20router%20-%20%22kamailio%20%28openser%29%20and%20sip%20express%20router%20%28ser%29%20-%20users%20mailing%20list%22%20%3csr-us...@lists.sip-router.org%3e> >>> > >>> *Subject*: Re: [SR-Users] Using Sip-Router Logging & Register Problem >>> Problem >>> *Date*: Tue, 29 May 2012 15:27:06 +0500 >>> >>> Did you restart your syslog ? Add xlog lines in yur config when you >>> receive a REGISTER request so that it actually prints something out. >>> >>> On Tue, May 29, 2012 at 3:23 PM, Faisal Yousuf <faisal.you...@gmail.com> >>> wrote: >>> >>> Hi Daniel/ Sammy , >>> >>> 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) >>> >>> 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.# >>> >>> >>> >>> For the log facility in the kamailio.cfg I have set the >>> option log_facility=LOG_LOCAL1 >>> >>> >>> >>> & in my syslog.cfg (attached again) I have set the following >>> >>> local1.* -/var/log/kamailio >>> >>> >>> >>> but still I dont see any logs in this location when I start kamailio >>> >>> >>> >>> 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) >>> >>> 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 >>> >>> >>> >>> I can also see kamailio starting to listen on port 5060 port on the >>> local machine on both UDP & TCP interfaces >>> >>> >>> >>> 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. >>> >>> >>> >>> Also as there are no logs I dont know what is going wrong. >>> >>> Regards, >>> >>> Faisal >>> >>> >>> >>> >>> >>> >>> >>> On Tue, May 29, 2012 at 2:37 PM, SamyGo <govoi...@gmail.com> wrote: >>> >>> Hi Faisal, >>> >>> >>> >>> You say you've seen packets on kamailio but kamailio isn't replying >>> !! >>> >>> >>> >>> 1- Please verify that yuor kamailio is indeed started *[ps -ef | >>> grep kamailio]* >>> >>> 2- Verify if kamailio is actuallay listening on the same port as you >>> are sending pcakets to ! *[netstat -pln|grep kamailio]* >>> >>> 3- Verify if your kamailio is using the same protocol as of your >>> client i.e TCP or UDP or TLS etc. >>> >>> 4- instead of viewing the file* /var/log/kamailio* see*/var/log/messages >>> *because you haven't mentioned local7 as Log facility in your config. >>> >>> I don't see your syslog*.conf * file in this mail! check that file >>> and follow the referenced >>> link<http://www.kamailio.org/dokuwiki/doku.php/utils:basic-syslog-configuration> >>> completely. >>> >>> >>> >>> >>> Also see your configurations kamailio.cfg file and use define tags >>> from second line from top onward i.e just after #!KAMAILIO. >>> >>> Try getting rid of the comment line "*####### Defined Values >>> #########*" - in my experience such comment before define cause trouble >>> with configurations. >>> >>> >>> >>> >>> >>> See all these and then reply with updates. >>> >>> >>> >>> Regards, >>> >>> Sammy G. >>> >>> >>> On Tue, May 29, 2012 at 2:18 PM, Daniel-Constantin Mierla < >>> mico...@gmail.com> wrote: >>> >>> Hello, >>> >>> 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. >>> >>> Cheers, >>> Daniel >>> >>> >>> >>> On 5/29/12 8:02 AM, Faisal Yousuf wrote: >>> >>> Hi Experts, >>> >>> I am a newbee with SIP-Router/Kamailio - I installed Kamailio on a >>> CentOS 5.5 VM - following the instructions from the following link >>> >>> >>> >>> http://kb.asipto.com/kamailio:install:3.0.x-from-git-centos5x >>> >>> >>> >>> Kamailio is installed & I can start kamailio deamon from service >>> kamailio start >>> >>> >>> >>> 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. >>> >>> >>> >>> 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 >>> >>> >>> >>> >>> http://www.kamailio.org/dokuwiki/doku.php/utils:basic-syslog-configuration >>> >>> >>> >>> But I dont get any logs in the /var/log/kamailio log file. >>> >>> >>> >>> To assist in understanding the issue - I am attaching the syslog >>> config , kamailio config file & the kamailio service script in the init.d >>> folder. >>> >>> >>> >>> 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 ? >>> >>> 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 >>> >>> >>> >>> Regards, >>> >>> Faisal >>> >>> >>> >>> Regards, >>> >>> Faisal >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing >>> listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >>> >>> >>> -- Daniel-Constantin Mierla - >>> http://www.asipto.comhttp://twitter.com/#!/miconda - >>> http://www.linkedin.com/in/micondaKamailio Advanced Training, Seattle, USA, >>> Sep 23-26, 2012 - http://asipto.com/u/katu >>> >>> >>> >>> >>> >>> _______________________________________________ >>> 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 >>> >>> >>> >>> >>> _______________________________________________ >>> 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 >>> >>> >>> >>> >>> _______________________________________________ >>> 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 >>> >>> >>> >>> _______________________________________________ >>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing >>> listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >>> >>> >>> _______________________________________________ >>> 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 >>> >>> >> >> _______________________________________________ >> 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 >> >> > > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing > listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > > -- > Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda > - http://www.linkedin.com/in/miconda > Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - > http://asipto.com/u/katu > > > > > _______________________________________________ > 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 > >
_______________________________________________ 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