[OpenSIPS-Users] Accepting calls only form Some IP Address
Danny Dias
ing.diasdanny at gmail.com
Fri Aug 30 12:13:08 CEST 2013
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 <vfernandez at barracuda.com>
> 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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
*SIP:* danny at voice.danntel.net <http://www.danntel.net/?page_id=189>
*Web: *http://www.danntel.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130830/d01acad0/attachment.htm>
More information about the Users
mailing list