[SR-Users] checking source domain
Victor Seva
linuxmaniac at torreviejawireless.org
Mon Feb 1 21:26:19 CET 2016
On 01/31/2016 05:32 PM, Yuriy Gorlichenko wrote:
> I need to understand where from packets received. Now I use something like
>
> If $si == "1.2.3.4" {
> xlog("L_INFO","bla bla bla");
> }
>
> But I need to check source server not only by IP and PORT, but at Domain too
> For example
>
> if (some_pseudovariable=="pbx.server.com <http://pbx.server.com>"){
> xlog("L_INFO","bla bla bla");
> }
>
> I can use $fu for example because for some packets it includes domain
> name of kamailio (i think details not important but this situations can be)
> Does kamailio have some mechanisms to do that? I searched it at cookbook
> but not found anything.
Do you mean something like:
http://www.kamailio.org/docs/modules/4.3.x/modules/ipops.html#ipops.f.dns_query
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160201/ff4cb11d/attachment.sig>
More information about the sr-users
mailing list