[Spce-user] Rewrite rules

Daniel Grotti dgrotti at sipwise.com
Wed Apr 17 10:16:52 EDT 2013

Hello Theo,

Under peering rules you can use 'Callee Pattern' and 'Caller Pattern'

Under Caller Pattern you can set:
"A POSIX regex matching against the full Request-URI (e.g.
'^sip:.+ at example\.org$' or '^sip:431')"

Under Caller Pattern you can set:
"A POSIX regex matching against 'sip:user at domain' (e.g.
'^sip:.+ at example\.org$' matching the whole URI, or '999' matching if the
URI contains '999')"

In this way you can route your calls to a specific peer based - for
example - on caller domain.


On 04/16/2013 02:02 PM, Theo wrote:
> Hi
> Couple questions about peering rules. My understanding is that you set
> peering rules for numbers. Is it possible to also specify a peer for a
> specific subscriber or domain? I know you can specify a domain in a
> peering rule, but what I would like to see is to simply state somewhere
> for a domain "use this peer irrespective of number dialled"?
> Still on peering rules - we'd need millions of rules. Because of number
> porting across providers, the prefix is no longer a sure way to indicate
> to which carrier we must send the call. We have a base with prefixes and
> an ever growing list of individual numbers that need to be routed to
> various carriers. How would we deal with this?
> Cheers
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user

More information about the Spce-user mailing list