How To Find RTP Address Of Ongoing Call?

Home » Asterisk Users » How To Find RTP Address Of Ongoing Call?
Asterisk Users 1 Comment

Hi list,

probably this is a FAQ but I can’t seem to find it. How to find the RTP
IP address of an ongoing SIP call?

“sip show channels” seems to list the RTP address under the very left column called “Peer”. And it also lists the associated “Call ID” which I
could associate with a call by executing sip show channel and before figuring out the Channel by running core show channels concise, but the issue is that the Call ID output from sip show channels is cut off and limited to 16 characters.

Thanks!
Markus

One thought on - How To Find RTP Address Of Ongoing Call?

  • Not sure if this helps but I’ve used the following in my dialplan in the past:

    ;Get MTA IP from SIP header
    ;same => n,Verbose(2,rtpdest = ${CHANNEL(rtpdest)})

    you’ll see something like the following in the logs:

    [Nov 8 13:29:05] == rtpdest = 192.168.1.75:7078

    not sure how to do it via CLI though.

    Bryan Burroughs