[OpenSIPS-Users] dialog search incoming calls for user

Bogdan-Andrei Iancu bogdan at opensips.org
Sat Jan 10 12:11:29 CET 2015


Hi Edwin,

I would suggest to use dialog variables and get_dialog_info(). For each 
call you can remember (via dlg val) the FROM and TO user and you can 
look them up for the later calls, do detect the loops of abuses).

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 10.01.2015 11:25, Edwin wrote:
> I want to check that - if a call is forwarded by a user -  the outgoing From
> number is the same as an incoming From number for that user (to prevent
> number abuse).
>
> So I have to write a check to see if the from number presented by the new
> call is already in dialog for an incoming call for that user.
>
> I was reading the dialog docs and do not know how to start (with
> is_in_profile or get_dialog_info?)
>
> Any tips how to accomplish this?
>
> Gr.
>
> Edwin
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/dialog-search-incoming-calls-for-user-tp7594882.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>




More information about the Users mailing list