Thanks for the reply however it is not possible to get the public IP address
using the SIP_HEADER function (see my original post).
We have many devices connecting from hundreds of dynamic external IPs.
--
_
-- Bandwidth and
Thanks.
exten = s,n,Set(foo=${CHANNEL(peerip)}) ; Doesn't return anything
exten = s,n,Set(foo=${CHANNEL(recvip)}) ; Doesn't return anything
exten = s,n,Set(foo=${SIPCHANINFO(peerip)}) ; Returns public IP when
calling from a SIP device
Strange that CHANNEL doesn't return anything.
--
Hi,
How many Public IPs connect to you ? If they are less than 15 or 10 , I
suggest you make sip.conf peers for them with host=Publicip and then decide
if you want that to be blocked or rerouted to some other direction !
If that isn't doable then try extracting/parsing some IP using the
We are looking to further secure our Asterisk installation by inspecting the
IP address that a SIP INVITE comes from and performing some logic to
determine whether the call should proceed. The purpose of this is to prevent
calls to certain expensive destinations if the SIP message is coming from a