Is it possible to avoid calls to a determined UA, by means of the opensips.cfg file?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Is it possible to avoid calls to a determined UA, by means of the opensips.cfg file?

Rodrigo Pimenta Carvalho

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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to avoid calls to a determined UA, by means of the opensips.cfg file?

Max Mühlbronner
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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to avoid calls to a determined UA, by means of the opensips.cfg file?

Rodrigo Pimenta Carvalho

​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: [hidden email] <[hidden email]> em nome de Max Mühlbronner <[hidden email]>
Enviado: quinta-feira, 6 de agosto de 2015 04:39
Para: [hidden email]
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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to avoid calls to a determined UA, by means of the opensips.cfg file?

Bogdan-Andrei Iancu-2
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: [hidden email] [hidden email] em nome de Max Mühlbronner [hidden email]
Enviado: quinta-feira, 6 de agosto de 2015 04:39
Para: [hidden email]
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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users