[OpenSER-Users] remote IP address
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Mon Aug 6 14:24:48 CEST 2007
Klaus Darilion wrote:
>
>
> Victor Gamov schrieb:
>> Dan-Cristian Bogos wrote:
>>> Hi Victor,
>>>
>>> It all depends on the way u forward the request.
>>> If u will use rewritehost() then u have the value stored into $rd.
>>> If u will use the direct forward capability of t_relay() eg.
>>> t_relay("ip.add.res.s") then u should store the value into an avp
>>> before passing the request to t_relay() function.
>>> If u will use LCR to send out the call, then the value of the next
>>> host should be available in gw_uri_avp.
>>>
>>> Hope this info helps.
>>
>> Thanks Dan!
>>
>> But I'm looking for general way to know remote IP. I think that
>> t_relay() (if I use it) actually know this IP but I can not find the
>> way to get this info.
>
> If the destination is addressed by a domain name, then the remote IP
> is not known in advance - thus there is no chance to get the remote IP
> in config script.
You can just filter based on the remote IP via the blacklist.
Regards,
bogdan
More information about the Users
mailing list