[Spce-user] Rewrite rules

Daniel Grotti dgrotti at sipwise.com
Thu Apr 18 03:47:10 EDT 2013


Hi Theo,
I understand your problem now.
What you can do, instead of assign a sip peer to a subscriber (that's
not possible), you can play with Rewrite Rules.

You can route calls based on callee or caller to a specific peer adding
a prefix for callee (or caller) using the Subscriber's Inbound Rewrite
rules.
Then use that prefix in Peering Rules to match that call (so the call
will follow that peer server) and then strip the prefix with Peer's
Outbound Rewrite Rules.

CALL --> SUBs REWIRTE RULES ---> FETCH GW ---> GW REWRITE RULES --->
OUTBOUND



br,
Daniel





On 04/17/2013 07:59 PM, Theo wrote:
> Hi Daniel
> 
> Either I am completely misunderstanding it (and I must admit that I find
> this part of your platform the most confusing), or I have not made clear
> what I am looking for.
> 
> The 2nd issue is not related to the first. We have interconnects with X
> carriers. While each of those carriers have their own prefix, clients
> can port their numbers. This effectively means that there is no longer a
> "group". Each telephone number can belong to any of those carriers. So
> while there is a prefix base for each carrier, there is a massive and
> growing database of numbers that initially belonged to a certain
> carrier, but don't anymore. As a result we need to specify around 4
> million numbers to be sent to peer X, y, or z. This 4 million will soon
> be 5 million, etc.
> 
> Hope that clarifies what I am trying to get to?
> 
> Cheers
> 
> Theo
> 
> 
> On Wed, Apr 17, 2013 at 5:31 PM, Daniel Grotti <dgrotti at sipwise.com
> <mailto:dgrotti at sipwise.com>> wrote:
> 
>     Hello Theo,
> 
>     again, why you don't use Callee Pattern instead of Callee Prefix ?
>     With Callee Pattern you can use regular expression to group up your
>     numbers.
> 
>     br,
>     Daniel
> 
> 
> 
> 
>     On 04/17/2013 05:21 PM, Theo wrote:
>     > we'd need millions of rules
> 
>     _______________________________________________
>     Spce-user mailing list
>     Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
>     http://lists.sipwise.com/listinfo/spce-user
> 
> 




More information about the Spce-user mailing list