[SR-Users] kamailio doesn't reply on internal interface
Sergiu Pojoga
pojogas at gmail.com
Mon Aug 19 20:14:19 CEST 2019
Asterisk uses OPTIONS messages to qualify a peer's availability.
Make sure Kamailio handles these properly, like for e.g.:
if(is_method("OPTIONS") && uri==myself && $rU==$null)
options_reply();
There could be many other reasons, so dump SIP traffic, search for these
OPTIONS and see if they are replied properly.
Cheers.
On Mon, Aug 19, 2019 at 1:32 PM Zhan Bazarov <chiefkeeft at gmail.com> wrote:
> Hello, we have interesting issue...
> Some time kamailio comes unreachable on private interface for asterisk,
> but port checked via telnet and everything is ok...
> ps. connection via public ip works good
>
> root at kamailio:/usr/local/etc/kamailio# lsof -i :5068 | grep LISTEN
> kamailio 6014 root 13u IPv4 8341589 0t0 TCP
> kamailio.local.ip:5068 (LISTEN)
> kamailio 6014 root 14u IPv4 8341590 0t0 TCP
> kamailio.public.ip:5068 (LISTEN)
> root at kamailio:/usr/local/etc/kamailio#
>
> telnet from asterisk machine:
>
> root at asterisk:/etc/asterisk# telnet kamailio.local.ip 5068
>
> Trying kamailio.local.ip...
>
> Connected to kamailio.local.ip.
>
> Escape character is '^]'.
>
>
> But peer is unreachable in asterisk... More than, kamailio comes reachable
> when I change transport from TCP to UDP, or when I restart kamailio
> daemon(but it situation repeats every day)..
>
> Any ideas how I can fix it?
> thanks!
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190819/c6f4e53f/attachment.html>
More information about the sr-users
mailing list