<div dir="ltr">HI Daniel<div><br></div><div style>Thanks for that. I have used that part already but I don't think it solves this?</div><div style><br></div><div style>domain xxx uses peer 1 and MUST try that peer first irrespective of number dialed. If it fails on peer 1, it needs to go to peer 2.</div>
<div style>domain yyy needs to go to peer 2, and MUST try that peer first irrespective of number dialed. If it fails on peer 2, it must go to peer 1.</div><div style><br></div><div style>My understanding is that it will try a peer in the priority order that peers have been given. But what happens when priorities are dependent on the subscriber/domain?</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 17, 2013 at 4:16 PM, Daniel Grotti <span dir="ltr"><<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Theo,<br>
<br>
Under peering rules you can use 'Callee Pattern' and 'Caller Pattern'<br>
fields.<br>
<br>
Under Caller Pattern you can set:<br>
"A POSIX regex matching against the full Request-URI (e.g.<br>
'^sip:.+@example\.org$' or '^sip:431')"<br>
<br>
<br>
Under Caller Pattern you can set:<br>
"A POSIX regex matching against 'sip:user@domain' (e.g.<br>
'^sip:.+@example\.org$' matching the whole URI, or '999' matching if the<br>
URI contains '999')"<br>
<br>
In this way you can route your calls to a specific peer based - for<br>
example - on caller domain.<br>
<br>
<br>
br,<br>
Daniel<br>
<div><div class="h5"><br>
<br>
<br>
<br>
On 04/16/2013 02:02 PM, Theo wrote:<br>
> Hi<br>
><br>
> Couple questions about peering rules. My understanding is that you set<br>
> peering rules for numbers. Is it possible to also specify a peer for a<br>
> specific subscriber or domain? I know you can specify a domain in a<br>
> peering rule, but what I would like to see is to simply state somewhere<br>
> for a domain "use this peer irrespective of number dialled"?<br>
><br>
> Still on peering rules - we'd need millions of rules. Because of number<br>
> porting across providers, the prefix is no longer a sure way to indicate<br>
> to which carrier we must send the call. We have a base with prefixes and<br>
> an ever growing list of individual numbers that need to be routed to<br>
> various carriers. How would we deal with this?<br>
><br>
> Cheers<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Spce-user mailing list<br>
> <a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
> <a href="http://lists.sipwise.com/listinfo/spce-user" target="_blank">http://lists.sipwise.com/listinfo/spce-user</a><br>
><br>
<br>
_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
<a href="http://lists.sipwise.com/listinfo/spce-user" target="_blank">http://lists.sipwise.com/listinfo/spce-user</a><br>
</blockquote></div><br></div>