[SR-Users] Help Asterisk with Kamailio unable to register with remote VOIP providers

Manoj Gupta mk at tellusys.in
Mon Jan 2 16:13:09 CET 2017


Hi Daniel,

Thanks for the quick revert!

Yes we have configured the same in /etc/rsyslog.conf as we do not have /etc/syslog.conf

Once we restart the rsyslog service we can see /var/log/kamailio file is getting created as below:

[root at mt log]# pwd
/var/log
[root at mt log]# ls -l kamai*
-rw------- 1 root root 0 Jan  2 10:10 kamailio
[root at mt log]#


But nothing is getting logged in the log file. In kamailio.cfg logging levels are set as below:

### LOG Levels: 3=DBG, 2=INFO, 1=NOTICE, 0=WARN, -1=ERR
#!ifdef WITH_DEBUG
debug=3
log_stderror=yes
#!else
debug=2
log_stderror=yes
#!endif

memdbg=5
memlog=5

#log_facility=LOG_LOCAL0
log_facility=LOG_LOCAL6





Manoj K. Gupta

-----Original Message-----
From: sr-users [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Daniel Grotti
Sent: 02 January 2017 08:10
To: sr-users at lists.sip-router.org
Subject: Re: [SR-Users] Help Asterisk with Kamailio unable to register with remote VOIP providers

Hi,
have you configured kamailio in order to log to /var/log/kamailio 
instead of syslog ?

https://www.kamailio.org/dokuwiki/doku.php/utils:basic-syslog-configuration

--
Daniel Grotti



On 01/02/2017 03:36 PM, Manoj Gupta wrote:
> Request to all – Please help we are BADLY stuck in this asterisk 11.13
> and Kamailio 4.1 integration provided with Elastix MT
>
>
>
> Our Configuration is like this:
>
>
>
> Asterisk IP – 10x.3x.6x.236 port 5080
>
> Kamailio IP - 10x.3x.6x.236 port 5060
>
>
>
> Please see our kamailio.cfg attached.
>
>
>
> Issue 1:
>
> Issue is REGISTER messages sent by asterisk are not responded by
> kamailio asterisk is constantly doing a re-transmit on REGISTER messages.
>
>
>
> Retransmitting #1 (NAT) to 10x.3x.6x.236:5060:
>
> REGISTER sip:ims.airtel.in SIP/2.0
>
> Via: SIP/2.0/UDP 10x.3x.6x.236:5080;branch=z9hG4bK40ac1ed8;rport
>
> Max-Forwards: 70
>
> From: <sip:+91224400 at ims.airtel.in>;tag=as565ef860
>
> To: <sip:+91224400 at ims.airtel.in>
>
> Call-ID: 7dd361ec25cb07344ea9df526e89ca8a at 10x.3x.6x.236
>
> CSeq: 182 REGISTER
>
> User-Agent: Asterisk PBX 11.13.0
>
> Expires: 120
>
> Contact: <sip:+91224400 at 10x.3x.6x.236:5080>
>
> Content-Length: 0
>
>
>
> Issue 2:
>
> We are not able to see any log messages in /var/log/kamailio.log. We
> have done all kind of changes suggested on online blogs
>
>
>
> Why does kamailio not have a pre-set configuration as it is mostly used
> as sip proxy?
>
>
>
>
>
> Manoj K. Gupta
>
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at 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 at lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




More information about the sr-users mailing list