[resolved] SIP IP Address Connecting Channel Variable?

I’ve been looking around and no luck.

I’m trying to find how I can read the IP Address of the incoming SIP Connection in my Dialplan. I can not use SIP_HEADER because VIA Often contain the private IP address of the device.

I need a way to read the IP as displayed when you enable SIP DEBUGGING.

Exampel:

<— SIP read from 5.5.5.5:5060 —>
INVITE …

Is there a variable where 5.5.5.5 is stored that can be read?

Thanks

found the function… SIPCHANINFO

thanks