< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [sipX-dev] [sipx-users] dial plan question


On Fri, 2008-08-15 at 18:25 +0400, Nikolay Kondratyev wrote:
> I also found, that if dialed number matches a rule, which requires a
> permission, and the user does not have that permission, the rule is matched
> anyway and call fails (my lg-nortel phone shows "temporary failure" in this
> case). 
> I think that this behavior is not friendly. I would prefer not to match a
> rule in this case. And let the administrator decide what to do with the
> call. For example, route the call to special AA and play an announcement. Or
> route the call to a different gateway.
> This idea, in particular, would allow to implement kind of "user sensitive"
> routing. 
> What do you think?

Things like that are very hard to do in the sipX architecture.  We are
starting to consider "caller sensitive" routing, but the current
architecture was designed with the explicit assumption that the caller
did not matter -- that the destination(s) were determined by the dialed
number alone, and then, relative to each destination, the caller would
then be checked to see if he had the proper permissions to contact that
destination.

In general, it is difficult to construct a clean, extensible
architecture that supports rules like "if condition XXX but not
condition YYY, then do ZZZ".  (In your case, "if the number is an
outside number, but the caller doesn't have permission to call outside
numbers, then redirect the call to the announcement".)  It becomes very
difficult to automatically determine how all the rules interact.  (And
in an ordinary sipX installation, there can be 20 rules in effect.)

Dale