[Serusers] Routing unknown users to PSTN
Tor Setane
tor.setane at ella.no
Wed Mar 24 15:34:05 CET 2004
I use:
if (!does_uri_exist()) {
"route to gw"
...
};
Tor.
Andreas Granig wrote:
> Klaus Darilion wrote:
>
>> Does your cients have random phone numbers or are they all in the same
>> block? IF you have a numer block, e.g. 321XXXX, just use
>> if (uri=~"^sip:321[0-9][0-9][0-9][0-9]")
>> lookup(location)
>> ....
>
>
> I have a coherent number block, but numbers are prefixed by different
> area codes with different length, and they are also suffixed by numbers
> with different length, so no chance here for simple number matching.
>
>> If the internal numbers are random, you can use e.g. a second location
>> table (let's call it location2). It will have the same structure as
>> the location (or alias) table and you have to enter every client, and
>> using its local account as contact (so lookups will not change the
>> request-uri)
>
>
> Hmm, ok, this would be another possibility to think about, thanks.
>
> On the other hand, the approch with group membership would be more
> flexible, because I could restrict some users to internal calls only.
>
> Andy
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
More information about the sr-users
mailing list