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

Rodrigo Pimenta Carvalho pimenta at inatel.br
Thu Oct 22 17:37:53 CEST 2015


Hi Trevor.

Thank you very much!

I will take a look in your solution and analyze it, because I still have to learn about profiles and the Dialog module.

Now I have a course to follow, thankful to your hint.


Best 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 Trevor Steyn <trevor at webon.co.za>
Enviado: quinta-feira, 22 de outubro de 2015 12:49
Para: users at lists.opensips.org
Assunto: Re: [OpenSIPS-Users] How to detect current calls or previous INVITES and return 'busy here'?

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<mailto: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/2c148c61/attachment-0001.htm>


More information about the Users mailing list