<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi,<br>
<br>
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).<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 06.08.2015 15:07, Rodrigo Pimenta
Carvalho wrote:<br>
</div>
<blockquote cite="mid:1438862862720.51970@inatel.br" type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
<p>Thank you very much!<br>
</p>
<p>I´m starting to learn about this script language.<br>
</p>
<p>Regards.<br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper"
style="font-family:Calibri,Arial,Helvetica,sans-serif;
font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: +55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
color="#000000" face="Calibri, sans-serif"><b>De:</b>
<a class="moz-txt-link-abbreviated" href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>
<a class="moz-txt-link-rfc2396E" href="mailto:users-bounces@lists.opensips.org"><users-bounces@lists.opensips.org></a> em nome de Max
Mühlbronner <a class="moz-txt-link-rfc2396E" href="mailto:mm@42com.com"><mm@42com.com></a><br>
<b>Enviado:</b> quinta-feira, 6 de agosto de 2015 04:39<br>
<b>Para:</b> <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
<b>Assunto:</b> Re: [OpenSIPS-Users] Is it possible to avoid
calls to a determined UA, by means of the opensips.cfg file?</font>
<div> </div>
</div>
<div>
<div class="moz-cite-prefix">Hi,<br>
<br>
<br>
without any additional modules, something like this works
out of the box:<br>
<br>
<br>
if ($rU=="username_of_forbidden_phone") {<br>
t_reply("486", "Busy Here");<br>
exit;<br>
}<br>
<br>
<br>
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.<br>
<br>
Best Regards<br>
<br>
Max M.<br>
<br>
On 05.08.2015 21:51, Rodrigo Pimenta Carvalho wrote:<br>
</div>
<blockquote type="cite">
<style type="text/css" style="">
<!--
p
        {margin-top:0px;
        margin-bottom:0px}
-->
</style>
<p>Hi. <br>
</p>
<p><br>
</p>
<p>In a network there are OpenSIPS (acting as SIP server)
and several softphones registered on it.<br>
</p>
<p><br>
</p>
<p>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.<br>
</p>
<p>Can OpenSIPS provide such kind of automatic answer, can´t
it?<br>
</p>
<p><br>
</p>
<p>What OpenSIPS module does help me to implement this idea?
Is the module about dialogs ?<br>
</p>
<p><br>
</p>
<p>Thanks!<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper"
style="font-family:Calibri,Arial,Helvetica,sans-serif;
font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: +55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>