[SR-Users] It does not log any route. Clean installation

2017-10-05 Thread Bruno Henrique Gomes Gouvêa
Hello,

 I am doing some tests with version 4.2.3 (installed of RPM centos 7
packages) in a clean installation, I have a kamailio running in production
already configured and working, but I would like to start a totally clean
configuration to learn more about kamailio.
I am using the configuration file that comes in the default installation
(kamailio-basic.cfg) just by adding a log on the main route.

I kept the log in messages file and increased the verbosity as below, and
when i send any package (INVITE or REGISTER) I assume that the log or xlog
lines should be displayed in file, but no. I see the packets arriving via
tcpdump, and netstat shows that port 5060 is being listened by kamailio,
but I have nothing else besides the initialization information (and the
debug of MYSQL querys when activated unrelated to INVITE or REGISTRY
packets).

Am I doing something wrong?

*Configs **Log :*

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

memdbg = 5
memlog = 5

log_facility = LOG_LOCAL0

*Main route log test:*

request_route {
log ("Log main request TEST");
xlog ("Log main request TEST 2");
# not displayed
route (REQINIT);



*/var/log/messages:*

Oct  5 23:39:12 pabxmodelo kamailio: Stopping kamailio: [  OK  ]
Oct  5 23:39:12 pabxmodelo systemd: Starting SYSV: Kamailio is a fast,
reliable and flexible SIP Server
Oct  5 23:39:13 pabxmodelo kamailio: INFO:  [tcp_main.c:4745]:
init_tcp(): using epoll_lt as the io watch method (auto detected)
Oct  5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: rr
[../outbound/api.h:54]: ob_load_api(): Failed to import bind_ob
Oct  5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: rr
[rr_mod.c:160]: mod_init(): outbound module not available
Oct  5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: usrloc
[hslot.c:53]: ul_init_locks(): locks array size 1024
Oct  5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: 
[udp_server.c:175]: probe_max_receive_buffer(): SO_RCVBUF is initially
212992
Oct  5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: 
[udp_server.c:225]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
Oct  5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: 
[udp_server.c:175]: probe_max_receive_buffer(): SO_RCVBUF is initially
212992
Oct  5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: 
[udp_server.c:225]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
Oct  5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: 
[udp_server.c:175]: probe_max_receive_buffer(): SO_RCVBUF is initially
212992
Oct  5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: 
[udp_server.c:225]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
Oct  5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: 
[udp_server.c:175]: probe_max_receive_buffer(): SO_RCVBUF is initially
212992
Oct  5 23:39:13 pabxmodelo /usr/sbin/kamailio[30050]: INFO: 
[udp_server.c:225]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
Oct  5 23:39:13 pabxmodelo kamailio: Starting kamailio:
Oct  5 23:39:13 pabxmodelo /usr/sbin/kamailio[30070]: INFO: ctl
[io_listener.c:225]: io_listen_loop(): io_listen_loop:  using epoll_lt io
watch method (config)
Oct  5 23:39:13 pabxmodelo systemd: Started SYSV: Kamailio is a fast,
reliable and flexible SIP Server..
Oct  5 23:39:13 pabxmodelo kamailio: [  OK  ]




Bruno H. G. Gouvêa





---


kamailio.cfg
Description: Binary data
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Route Not accessable

2017-10-05 Thread anil kumar k
Dear Kamailio Uers,

IN my [SIPOUT] by default not getting the Route from header . Any bode can
help on this

-- 






Regards,
K.Anil Kumar
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] [4.2.8] SUBSCRIBE message was not handled

2017-10-05 Thread Jack Wang
Hello everyone,

According to the routing flow set in kamailio.cfg

 # handle retransmissions
 if(t_precheck_trans()) {
 t_check_trans();
 exit;
 }
t_check_trans();

After I traced the flow it seems that SUBSCRIBE message failed on
t_check_trans()
and stopped there.
I add some logs to keep tracing this function and found that:

int t_check_trans(struct sip_msg* msg) { struct cell* t; int branch; int
ret; /* already processing a T */ if(is_route_type(FAILURE_ROUTE) ||
is_route_type(BRANCH_ROUTE) || is_route_type(BRANCH_FAILURE_ROUTE) ||
is_route_type(TM_ONREPLY_ROUTE)) { return 1; } if
(msg->first_line.type==SIP_REPLY) { branch = 0; ret = (t_check_msg( msg ,
)==1) ? 1 : -1; tm_ctx_set_branch_index(branch); return ret; } else
if (msg->REQ_METHOD==METHOD_CANCEL) { return w_t_lookup_cancel(msg, 0, 0);
} else { switch(t_check_msg(msg, 0)){ case -2: /* possible e2e ack */
return 1; case 1: /* found */ t=get_t(); if (msg->REQ_METHOD==METHOD_ACK){
/* ack to neg. reply or ack to local trans. => process it and end the
script */ /* FIXME: there's no way to distinguish here between acks to
local trans. and neg. acks */ if (unlikely(has_tran_tmcbs(t,
TMCB_ACK_NEG_IN))) run_trans_callbacks(TMCB_ACK_NEG_IN, t, msg, 0,
msg->REQ_METHOD); t_release_transaction(t); } else { /* is a retransmission
*/ if (unlikely(has_tran_tmcbs(t, TMCB_REQ_RETR_IN)))
run_trans_callbacks(TMCB_REQ_RETR_IN, t, msg, 0, msg->REQ_METHOD);
t_retransmit_reply(t); } /* no need for UNREF(t); set_t(0) - the
end-of-script t_unref callback will take care of them */ return 0; /* exit
from the script */ < THE POINT !! } /* not
found or error */ } return -1; }

If the line "return 0; /* exit from the script */" was changed to "return
1; /* exit from the script */" , it works  means that the configuration
script can keep being proceeded now.

Any suggestions?
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] call disconnects after 32 seconds

2017-10-05 Thread Adesh Pandey
Hi Vladyslav,
 I have fixed my issue with listen statement in the kamailio config, It is
working fine now all I needed to do that list on local ip and advertise on
prublic ip.

Thank You


On Thu, Oct 5, 2017 at 1:40 PM, Vladyslav Zakhozhai 
wrote:

> Hi Adesh
>
> Nobody can help you but you :)
>
> It seems that you have issues with NATed endpoints. Is it correct? Is
> there NAT?
> In this case nathelper module may help you.
>
> Resolution of this configuration issue depends on your infrastructure (how
> thins are connected to each other).
>
> On Wed, Sep 27, 2017 at 8:10 AM, Adesh Pandey 
> wrote:
>
>> Hi Alex,
>> Could you please help me to fix that or inspect that?
>>
>> On Wed, Sep 27, 2017 at 10:20 AM Alex Balashov 
>> wrote:
>>
>>> That sounds a lot like an end-to-end ACK that isn't making it from
>>> caller to callee.
>>>
>>> On Wed, Sep 27, 2017 at 04:46:45AM +, Adesh Pandey wrote:
>>>
>>> > Hi,
>>> > I have set up the Kamailio as load balancer using dispatcher module
>>> but all
>>> > the calls get disconnected after 30 seconds (call is forwarded to
>>> Asterisk
>>> > Box and answered as well). I have used example configuration from the
>>> below
>>> > URL:
>>> >
>>> > http://kamailio.org/docs/modules/4.3.x/modules/dispatcher.
>>> html#idp51014772
>>> >
>>> > Please help me to understand what is wrong and what shall I do it to
>>> fix.
>>> >
>>> > Thank You!!
>>> > Adesh P.
>>> > --
>>> >
>>> > Adesh Pandey
>>> >
>>> > Sr. Software Developer
>>> > [image: phone]
>>> >
>>> > +91 92129 92129 Ext: 56 <+91%2092129%2092129>
>>> > [image: moible]
>>> >
>>> > +91 8527384897 <+91%2085273%2084897>
>>> > [image: Profile Pic]
>>> >
>>> > [image: Facebook] [image:
>>> Twitter]
>>> > [image: Twitter]
>>> > [image: Linkedin]
>>> > [image:
>>> Google+]
>>> > 
>>> > [image: Logo] 
>>>
>>> > ___
>>> > Kamailio (SER) - Users Mailing List
>>> > sr-users@lists.kamailio.org
>>> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>> --
>>> Alex Balashov | Principal | Evariste Systems LLC
>>>
>>> Tel: +1-706-510-6800 <(706)%20510-6800> / +1-800-250-5920
>>> <(800)%20250-5920> (toll-free)
>>> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>>>
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> --
>>
>> Adesh Pandey
>>
>> Sr. Software Developer
>> [image: phone]
>>
>> +91 92129 92129 Ext: 56 <+91%2092129%2092129>
>> [image: moible]
>>
>> +91 8527384897 <+91%2085273%2084897>
>> [image: Profile Pic]
>>
>> [image: Facebook] [image:
>> Twitter] [image: Twitter]
>> [image: Linkedin]
>> [image: Google+]
>> 
>> [image: Logo] 
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
>
> --
> С уважением,
> Владислав Захожай
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] call disconnects after 32 seconds

2017-10-05 Thread Vladyslav Zakhozhai
Hi Adesh

Nobody can help you but you :)

It seems that you have issues with NATed endpoints. Is it correct? Is there
NAT?
In this case nathelper module may help you.

Resolution of this configuration issue depends on your infrastructure (how
thins are connected to each other).

On Wed, Sep 27, 2017 at 8:10 AM, Adesh Pandey 
wrote:

> Hi Alex,
> Could you please help me to fix that or inspect that?
>
> On Wed, Sep 27, 2017 at 10:20 AM Alex Balashov 
> wrote:
>
>> That sounds a lot like an end-to-end ACK that isn't making it from
>> caller to callee.
>>
>> On Wed, Sep 27, 2017 at 04:46:45AM +, Adesh Pandey wrote:
>>
>> > Hi,
>> > I have set up the Kamailio as load balancer using dispatcher module but
>> all
>> > the calls get disconnected after 30 seconds (call is forwarded to
>> Asterisk
>> > Box and answered as well). I have used example configuration from the
>> below
>> > URL:
>> >
>> > http://kamailio.org/docs/modules/4.3.x/modules/
>> dispatcher.html#idp51014772
>> >
>> > Please help me to understand what is wrong and what shall I do it to
>> fix.
>> >
>> > Thank You!!
>> > Adesh P.
>> > --
>> >
>> > Adesh Pandey
>> >
>> > Sr. Software Developer
>> > [image: phone]
>> >
>> > +91 92129 92129 Ext: 56 <+91%2092129%2092129>
>> > [image: moible]
>> >
>> > +91 8527384897 <+91%2085273%2084897>
>> > [image: Profile Pic]
>> >
>> > [image: Facebook] [image:
>> Twitter]
>> > [image: Twitter]
>> > [image: Linkedin]
>> > [image:
>> Google+]
>> > 
>> > [image: Logo] 
>>
>> > ___
>> > Kamailio (SER) - Users Mailing List
>> > sr-users@lists.kamailio.org
>> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> --
>> Alex Balashov | Principal | Evariste Systems LLC
>>
>> Tel: +1-706-510-6800 <(706)%20510-6800> / +1-800-250-5920
>> <(800)%20250-5920> (toll-free)
>> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> --
>
> Adesh Pandey
>
> Sr. Software Developer
> [image: phone]
>
> +91 92129 92129 Ext: 56 <+91%2092129%2092129>
> [image: moible]
>
> +91 8527384897 <+91%2085273%2084897>
> [image: Profile Pic]
>
> [image: Facebook] [image:
> Twitter] [image: Twitter]
> [image: Linkedin]
> [image: Google+]
> 
> [image: Logo] 
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
С уважением,
Владислав Захожай
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users