[OpenSIPS-Users] How to detect current calls or previous INVITES and return 'busy here'?

Trevor Steyn trevor at webon.co.za
Thu Oct 22 16:49:30 CEST 2015


HI Rodrigo,

You can do this with dialog module using set_profile_size and
get_profile_size

get_profile_size("SomeProfile","Calls_From_CX","$var(size)");
if ( $(var(size){s.int}) >= 1) ) {
                        send_reply("486","Busy Here");
                        exit;
                }

Regards
Trevor Steyn

On 22/10/2015 15:59, Rodrigo Pimenta Carvalho wrote:
>
>
> Hi.
>
>
> In a test case with OpenSIPS, I have:
>
>
> C1 = caller 1.
>
> C2 = caller 2.
>
> D1 = callee 1.
>
> D2 = callee 2.
>
>
> C1, C2, D1, D2 are all SIP UAs and they are registered in my OpenSIPS.
>
>
> C1 wants to call D1.
>
> C2 wants to call D2.
>
>
> 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.
>
>
> Is it possible, by means of OpenSIPS configuration file, create an
> solution to return 'busy here' to C2, for such test case?
>
>
> How could be a kind of example of code for that?
>
>
> Any hint will be very helpful!
>
>
> Best regards.
>
>
>
> 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

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


More information about the Users mailing list