<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
HI Rodrigo, <br>
<br>
You can do this with dialog module using set_profile_size and
get_profile_size<br>
<br>
get_profile_size("SomeProfile","Calls_From_CX","$var(size)");<br>
if ( $(var(size){s.int}) >= 1) ) {<br>
send_reply("486","Busy Here");<br>
exit;<br>
}<br>
<br>
Regards<br>
Trevor Steyn<br>
<br>
<div class="moz-cite-prefix">On 22/10/2015 15:59, Rodrigo Pimenta
Carvalho wrote:<br>
</div>
<blockquote
cite="mid:BLUPR02MB168326166F5DB417392F53D5B5270@BLUPR02MB1683.namprd02.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><br>
</p>
<p>Hi.</p>
<p><br>
</p>
<p>In a test case with OpenSIPS, I have:</p>
<p><br>
</p>
<p>C1 = caller 1.</p>
<p>C2 = caller 2.</p>
<p>D1 = callee 1.</p>
<p>D2 = callee 2.</p>
<p><br>
</p>
<p>C1, C2, D1, D2 are all SIP UAs and they are registered in my
OpenSIPS.<br>
</p>
<p><br>
</p>
<p>C1 wants to call D1.</p>
<p>C2 wants to call D2.</p>
<p><br>
</p>
<p>According to special requirements in my current project, C2
must receive SIP 'busy here' from OpenSIPS, whenever C1 is
already talking to D1 or when D1 has already received SIP
INVITE from C1 but not answered it yet.</p>
<p><br>
</p>
<p>Is it possible, by means of OpenSIPS configuration file,
create an solution to return 'busy here' to C2, for such test
case?</p>
<p><br>
</p>
<p>How could be a kind of example of code for that?</p>
<p><br>
</p>
<p>Any hint will be very helpful!</p>
<p><br>
</p>
<p>Best regards.<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>
</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>