[OpenSIPS-Users] Is it possible to avoid calls to a determined UA, by means of the opensips.cfg file?

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Aug 6 16:25:29 CEST 2015


Hi,

If you want that test to be more scalable and more dynamic, use dialplan 
module to recognize the usernames you need to block (provisioning is via 
DB and data is cached at runtime).

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.08.2015 15:07, Rodrigo Pimenta Carvalho wrote:
>
> ​Thank you very much!
>
> I´m starting to learn about this script language.
>
> Regards.
>
>
> RODRIGO PIMENTA CARVALHO
> Inatel Competence Center
> Software
> Ph: +55 35 3471 9200 RAMAL 979
> ------------------------------------------------------------------------
> *De:* users-bounces at lists.opensips.org 
> <users-bounces at lists.opensips.org> em nome de Max Mühlbronner 
> <mm at 42com.com>
> *Enviado:* quinta-feira, 6 de agosto de 2015 04:39
> *Para:* users at lists.opensips.org
> *Assunto:* Re: [OpenSIPS-Users] Is it possible to avoid calls to a 
> determined UA, by means of the opensips.cfg file?
> Hi,
>
>
> without any additional modules, something like this works out of the box:
>
>
> if ($rU=="username_of_forbidden_phone") {
>         t_reply("486", "Busy Here");
>         exit;
> }
>
>
> Just add this in the correct route block in your config, where the 
> call is going to user location / registered clients and it will block 
> all calls before they are sent to the client.
>
> Best Regards
>
> Max M.
>
> On 05.08.2015 21:51, Rodrigo Pimenta Carvalho wrote:
>>
>> Hi.
>>
>>
>> In a network there are OpenSIPS (acting as SIP server) and several 
>> softphones registered on it.
>>
>>
>> One of the softphones is forbidden to receive calls. So, if one tries 
>> to call such softphone, the call will not be completed and a (busy 
>> here) answer should be sent to the caller.
>>
>> Can OpenSIPS provide such kind of automatic answer, can´t it?
>>
>>
>> What OpenSIPS module does help me to implement this idea? Is the 
>> module about dialogs ?
>>
>>
>> Thanks!
>>
>>
>>
>> RODRIGO PIMENTA CARVALHO
>> Inatel Competence Center
>> Software
>> Ph: +55 35 3471 9200 RAMAL 979
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150806/d0d687da/attachment.htm>


More information about the Users mailing list