Hi Norman
Thank you for your (so fast) anwser !
T black and white liste does not fit for my need.
T black and white liste does not fit for my need.
I will look at your documentation with a closer eye tomorrow.
Looks good so far.
thank you
Bernard
To: [EMAIL PROTECTED]
From: Norman Brandinger <[EMAIL PROTECTED]>
Date: 08/20/2007 10:58PM
cc: [email protected]
Subject: Re: [OpenSER-Users] restriction on user (dialer map)
Hi Bernard,
I put together a couple of examples awhile ago and they are located at:
http://www.openser.org/docs/avp_db_query.html
If you extend some of the examples and think about perhaps a
"blacklist" table and/or a "whitelist" table it would be just a matter
of checking to see of the ($rU == $avp(s:blacklist_entry).
For example:
if (!(avp_db_query("SELECT phone_number FROM blacklist_table WHERE
(phone_number = '$rU')", "$avp(s:blacklist)")) {
# Entry NOT found in blacklist_table
} else {
# Entry FOUND in blacklist_table
}
There are probably a dozen different ways to solve your problem. Your
particular situation will determine the solution that best fits your need.
Regards,
Norm
[EMAIL PROTECTED] wrote:
> Hi
>
> Can someone tell me how it is possible to have a dialer map.
> I mean that I don't know everyone to call everyone.
> I want to restrict a user to call some specific user only.
>
> e.g. :
> A call B
> A call D
> B call C
> D call C
>
> If B call D or A call C, this is not allow
> Of course it looks easy with IF condition but I will have about more
> that 1000 users.
> I thought with mysql, but I can't find documentation or example.
>
> Can someone help me ???
>
> Bernard
> =
> ------------------------------------------------------------------------
>
> *********************************
> This message and any attachments (the "message") are confidential and intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> Messages are susceptible to alteration.
> France Telecom Group shall not be liable for the message if altered, changed or falsified.
> If you are not the intended addressee of this message, please cancel it immediately and inform the sender.
> ********************************
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://openser.org/cgi-bin/mailman/listinfo/users
>
********************************* This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. Messages are susceptible to alteration. France Telecom Group shall not be liable for the message if altered, changed or falsified. If you are not the intended addressee of this message, please cancel it immediately and inform the sender. ********************************
_______________________________________________ Users mailing list [email protected] http://openser.org/cgi-bin/mailman/listinfo/users
