So,
It would be something like this (not quite sure...):
route {
> if (check_address("0","192.168.2.135","0","ANY","", "")) {
> t_relay();
> else if (sl_send_reply("403", "Forbidden"));
> exit;
> }
.
> .
In this small script at the very begining of route script, i will only
permit calls from ip "192.168.2.135", any other ip, will receive a 403. Am
i right?
Thanks
2013/8/30 Víctor Fernández Martínez <[email protected]>
> Hi Danny,
>
> You can check the source IP address using $si and send a forbidden
> response if
> it doesn't match your needs.
>
> Best regards.
>
>
>
> On Friday 30 August 2013 03:48:25 Danny Días wrote:
> > Hi,
> >
> > I need to configure OpenSIPS to only accept calls from 1 IP address and
> > without any kind of authentication (no password required for clients); i
> > wonder if there's a function in OpenSIPS to accomplish this?
> >
> > Thanks so much
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
*SIP:* [email protected] <http://www.danntel.net/?page_id=189>
*Web: *http://www.danntel.net
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users