Asterisk Using Path: And Chan_sip

Home » Asterisk Users » Asterisk Using Path: And Chan_sip
Asterisk Users 1 Comment

Hello,

We have a couple asterisk11 servers behind a Kamailio4 proxy. We are in the process of upgrading to asterisk16 and Kamailio5 and I’m testing out Path:
support with chan_sip (migration to PJSIP is not possible right now due to integrations with other systems).

Functionality-wise things are working. If I do a `sip show peer XXX` I can see the Path header, I can also receive/send calls to/from that peer.

I could swear that in earlier tests I managed to actually see the real-device IP instead of the proxy-IP in `sip show peers`… but now I
have my doubts as I’m not able to reproduce it.

So, the question is: when a device registers with Asterisk via a Proxy
(using Path:) is there a way to show the original-IP instead of the proxy-IP in sip show peers? Is the IP shown in `sip show peers` strictly the IP from where the packet was received, or is the IP obtained from data contained in any of the headers?

I’m almost sure this worked and now I’m missing something to get it working again, or, I just dreamed about this and in reality it never worked 🙁

Thanks!

One thought on - Asterisk Using Path: And Chan_sip

  • Hi,

    I found this:
    https://lists.kamailio.org/pipermail/sr-users/2019-January/104312.html

    It turns out my issue was caused by a wrong *nat=* setting for the device…

    After changing:

    nat=force_rport,comedia

    to:

    nat=comedia

    I can now see correct IP and RTT in asterisk `sip show peers` for devices registering via an intermediate proxy 🙂

    Just wanted to update this in case it helps anyone else.

    Cheers, Joel.

    My problem was caused by the *nat=* setting for the device.

    I found