<html><head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head><body style="font-family: Calibri; font-size: 11pt;"
text="#000000" bgcolor="#FFFFFF"><div style="font-size:
11pt;font-family: Calibri;"><span style="font-family: Calibri;">Hi
Daniel<br><br>Thank you for the detailed explanation.<br><br>The rewrite
rules are currently set on both subscribers and on the domain.<br>I've
tested on the domain only and both subscriber only, but all have the
exact same results as the current set on Domain AND both subscribers.<br><br>If
I understand this correctly then the Rewrites should be as follows:<br><br>###################<br></span><span>This
is how the rewrite rules works:<br><br>1. Let's suppose you make a call
between 2 internal subscribers<br><br>2. You have assigned the rewrite
rules set 'DEFAULT' to both of these<br>subscribers<br><br>3. A call B<br><br>4.
spce take the caller and apply the INBOUND REWRITE RULES SET<br>'DEFAULT'
to caller number and callee number .<br><br></span><span><span>###<br>
</span><span><span> - In this case the Inbound Caller is
0839999999<br>
* The current rewrite should match accordingly:<br>
ˆ0([1-9][0-9]+)$ ${caller_cc}\1<br>
<br>
- Inbound Calle is 0044113001417<br>
* The current rewrite should match accordingly:<br>
ˆ(00|\+)([1-9][0-9]+)$ \2</span> </span><span><br>###</span></span><span><br><br>5.
spce make some other test and lookup the callee from database (call<br>is
local).<br><br>6. spce apply OUTBOUND REWRITE RULES SET 'DEFAULT' to
caller number and<br>callee number .<br><br>###<br></span><span><span>
- In this case the Inbound Caller is 44839999999 after the Initial
Inbound "translated" it from 083 to 4483<br>
* The current rewrite should match accordingly:<br>
ˆ([1-9][0-9]+)$ +\ (I have to
append the "+" and assume this is the correct way to do so)<br>
<br>
- Inbound Calle is 44113001417 after the initial Inbound
"translated" it from 0044 to 44<br>
* The current rewrite should match accordingly:<br>
^([1-9][0-9]+)$ +\</span></span><span><br>###<br><br>7.
scpe forward the call to the callee.<br><br><br>Now outbound calls:<br><br>2.
You have assigned the rewrite rules set 'DEFAULT' to local caller and<br>rewrite
rules set 'MY_PEER' to your sip peer<br><br>3. A call B<br><br>4. spce
take the caller and apply the INBOUND REWRITE RULES SET<br>'DEFAULT' to
caller number and callee number .<br><br></span><span><span><span>###<br>
</span><span><span> - In this case the Inbound Caller is
0839999999<br>
* The current rewrite should match accordingly:<br>
ˆ0([1-9][0-9]+)$ ${caller_cc}\1<br>
<br>
- Inbound Calle is 0044113001417<br>
* The current rewrite should match accordingly:<br>
ˆ(00|\+)([1-9][0-9]+)$ \2</span> </span><span><br>###</span></span><span></span></span><span><br><br>5.
spce make some other test and lookup the callee from database (call<br>is
NOT local -> outbound call).<br><br>6. spce apply OUTBOUND REWRITE
RULES SET 'MY_PEER' to caller number and<br>callee number .<br><br></span><span><span>###<br>
</span><span><span> - In this case the Inbound Caller is </span></span></span><span><span><span>44839999999
after the Initial Inbound "translated" it from 083 to 4483</span></span></span><br><span><span><span>
* The current rewrite should match accordingly:<br>
ˆ([1-9][0-9]+)$ +\ (I have to
append the "+" and assume this is the correct way to do so)<br>
<br>
- Inbound Callee is </span></span></span><span><span><span>44113001417
after the initial Inbound "translated" it from 0044 to 44</span></span>
</span><br><span><span><span>
* The current rewrite should match accordingly:<br>
^([1-9][0-9]+)$ +\</span></span><span><br>###</span></span><br><span><br>7.
scpe forward the call to the callee. </span><br><span
style="font-family: Calibri;"><br><br>If the above rewrites are correct,
then I don't understand why I keep getting " No matching rewrite rules
".<br><br><br>In my specific scenario my Carrier is set as a fake local
subscriber on another local domain with a couple of Aliases as I have to
Bill the Carrier for calls to our network. I don't have any SIP
Peerings configured.<br>I'm not sure how the outbound will work in this
specific scenario if the fake subscriber to the Carrier is within
another domain on the SPCE.<br><br>What I have is as follows:<br><br><a class="moz-txt-link-abbreviated" href="mailto:08399999989@192.168.0.250">08399999989@192.168.0.250</a>
as my local Subscriber I'm currently calling from.<br><a class="moz-txt-link-abbreviated" href="mailto:08399999999@10.222.0.250">08399999999@10.222.0.250</a>
as the fake Subscriber for calls to our International Carrier. This is
where I've setup the Alias 44113001417.<br><br>I'm dialing from </span><span><span
style="font-family: Calibri;"><a class="moz-txt-link-abbreviated" href="mailto:08399999989@192.168.0.250">08399999989@192.168.0.250</a></span> to
44113001417 which is not part of the 192.168.0.250 domain, but part of
the 10.222.0.250 domain.<br><br>Does this play any role in how the SPCE
selects if the call from one local domain to another local domain is
seen as local or foreign?<br><br><br>Thanks again for your assistance.<br>I
really appreciate it.<br><br>Kind Regards<br>Deon<br></span><br><blockquote
style="border: 0px none;" cite="mid:51714DEC.9060900@mail.sipwise.com"
type="cite"><div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
photoaddress="dgrotti@sipwise.com" photoname="Daniel Grotti"
src="cid:part1.01050302.02010308@gmail.com" name="postbox-contact.jpg"
width="25px" height="25px"></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true" href="mailto:dgrotti@sipwise.com"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Daniel Grotti</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">April 19, 2013
3:00 PM</span></font></div></div></div><div
style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><div>Hi Deon,<br>sorry for the
stupid question, have you assigned the rewrite rules set<br>to your
subscribers or to your domain ?<br><br>This is how the rewrite rules
works:<br><br>1. Let's suppose you make a call between 2 internal
subscribers<br><br>2. You have assigned the rewrite rules set 'DEFAULT'
to both of these<br>subscribers<br><br>3. A call B<br><br>4. spce take
the caller and apply the INBOUND REWRITE RULES SET<br>'DEFAULT' to
caller number and callee number .<br><br>5. spce make some other test
and lookup the callee from database (call<br>is local).<br><br>6. spce
apply OUTBOUND REWRITE RULES SET 'DEFAULT' to caller number and<br>callee
number .<br><br>7. scpe forward the call to the callee.<br><br><br>Now
outbound calls:<br><br>2. You have assigned the rewrite rules set
'DEFAULT' to local caller and<br>rewrite rules set 'MY_PEER' to your sip
peer<br><br>3. A call B<br><br>4. spce take the caller and apply the
INBOUND REWRITE RULES SET<br>'DEFAULT' to caller number and callee
number .<br><br>5. spce make some other test and lookup the callee from
database (call<br>is NOT local -> outbound call).<br><br>6. spce
apply OUTBOUND REWRITE RULES SET 'MY_PEER' to caller number and<br>callee
number .<br><br>7. scpe forward the call to the callee.<br><br><br><br>br,<br>Daniel<br><br><br></div><div><!----><br>_______________________________________________<br>Spce-user
mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br><a class="moz-txt-link-freetext" href="http://lists.sipwise.com/listinfo/spce-user">http://lists.sipwise.com/listinfo/spce-user</a><br></div></div><div
style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
photoaddress="vermeulen.deon@gmail.com" photoname="Deon Vermeulen"
src="cid:part2.07010801.05080307@gmail.com" name="postbox-contact.jpg"
width="25px" height="25px"></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true" href="mailto:vermeulen.deon@gmail.com"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Deon Vermeulen</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">April 19, 2013
2:48 PM</span></font></div></div></div><div
style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div style="font-size:
11pt;font-family: Calibri;"><span style="font-family: Calibri;">Hi
Daniel<br><br>I was confused with the previous mail and did not give you
the complete rule set.<br><br>Here with my complete Rewrite Rules for
completeness.<br><br>Inbound Rewrite for Caller:<br>ˆ(00|\+)([1-9][0-9]+)$
\2<br>ˆ0([1-9][0-9]+)$ ${caller_cc}\1<br>ˆ([1-9][0-9]+)$
${caller_cc}${caller_ac}\1<br><br>Inbound Rewrite for
Callee:<br></span><span><span style="font-family: Calibri;">ˆ(00|\+)([1-9][0-9]+)$
\2<br>
ˆ0([1-9][0-9]+)$ ${caller_cc}\1<br>
ˆ([1-9][0-9]+)$ ${caller_cc}${caller_ac}\1</span> </span><br><span
style="font-family: Calibri;"><br>Outbound Rewrite for Caller:<br></span><span><span
style="font-family: Calibri;">ˆ0([1-9][0-9]+)$</span> </span><span
style="font-family: Calibri;"> +44\1 (I see I made
a typo here as I have to strip "0" from CLI and append +44 for
International CLI)<br><br>Outbound for Callee:<br></span><span><span
style="font-family: Calibri;">ˆ(00|\+)([1-9][0-9]+)$</span>
\2</span><br><br><br>Looking at the above I guessing I don't properly
understand the Rewrites working order?<br><br><br>Thanks again for the
assistance.<br><br><br>Kind Regards<br>Deon<br><br><br></div></div><div
style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
photoaddress="dgrotti@sipwise.com" photoname="Daniel Grotti"
src="cid:part1.01050302.02010308@gmail.com" name="postbox-contact.jpg"
width="25px" height="25px"></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true" href="mailto:dgrotti@sipwise.com"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Daniel Grotti</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">April 19, 2013
2:38 PM</span></font></div></div></div><div
style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><div>Hi Deon,<br><br>Your call
come from user F=<a class="moz-txt-link-freetext" href="sip:0839999989@192.168.0.250">sip:0839999989@192.168.0.250</a>, so his Inbound<br>rewrite
rules will be applied<br><br>INBOUND REWRITE RULES CALLER<br>INBOUND
REWRITE RULES CALLEE<br><br><br>after that the system will apply the
OUTBOUND REWRITE RULES set of the<br>callee (or the peer if the call is
an outbound call).<br><br>In your case the problem is with inbound
rewrite rules for callee for<br>the user 0839999989, because his rewrite
rules doesn't rewrite the<br>callee 0044113001417 into 44113001417.<br><br>So
you should have a rewrite rules like:<br><br>^(00|\+)([1-9][0-9]+)$
\2<br><br>to strip 00 from callee, and you don't have a rules like this
afaics.<br><br><br>br,<br>Daniel<br><br><br><br></div><div><!----><br>_______________________________________________<br>Spce-user
mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br><a class="moz-txt-link-freetext" href="http://lists.sipwise.com/listinfo/spce-user">http://lists.sipwise.com/listinfo/spce-user</a><br></div></div><div
style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
photoaddress="vermeulen.deon@gmail.com" photoname="Deon Vermeulen"
src="cid:part2.07010801.05080307@gmail.com" name="postbox-contact.jpg"
width="25px" height="25px"></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true" href="mailto:vermeulen.deon@gmail.com"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Deon Vermeulen</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">April 19, 2013
2:30 PM</span></font></div></div></div><div
style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div style="font-size:
11pt;font-family: Calibri;"><span style="font-family: Calibri;">What I
don't understand is that I have the Outbound Rewrite Rules set for
Callee as well as Caller on the fake subscriber as well as on the
registered subscriber I'm calling from:<br><br></span><span><span
style="font-family: Calibri;">Default Rewrite Rule (This is set on the
Subscriber for Local/National Calls)<br>
Outbound Rewrite for Caller:<br>
ˆ0([1-9][0-9]+)$ | 44\1 | CLI to E.164<br><br>
Outbound Rewrite for Callee:<br>
ˆ0([1-9][0-9]+)$ | ${caller_cc}\1 | National
to E.164</span> </span><br><span style="font-family: Calibri;"><br><br>International
Rewrite Rule (This is set on the fake Subscriber for International
Calls to and from this Carrier)<br>Outbound Rewrite for Caller:<br>^([1-9][0-9]+)$
| +\ | E.164 to International<br><br>Outbound
Rewrite for Callee:<br>ˆ(00|\+)([1-9][0-9]+)$ | \2
| International to E.164<br><br><br>I just did a random test to
call 44113001417 on a fake subscriber on the same domain, but I still
get the exact same errors:<br><br>- No matching rewrite rules for
'0839999989' found<br>- No matching rewrite rules for '44113001417'
found<br>- No PSTN gateways available<br></span><br>Please correct me if
I'm wrong but it's not supposed to look for a gateway if the
destination is local? In this case an Alias.<br>I also don't understand
why any of the Rewrite Rules are not hit at any stage of the call setup?<br><br><br>Kind
Regards<br>Deon<br><br></div></div><div style="margin:30px 25px 10px
25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
photoaddress="dgrotti@sipwise.com" photoname="Daniel Grotti"
src="cid:part1.01050302.02010308@gmail.com" name="postbox-contact.jpg"
width="25px" height="25px"></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true" href="mailto:dgrotti@sipwise.com"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Daniel Grotti</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">April 19, 2013
2:03 PM</span></font></div></div></div><div
style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><div>So, in this case you need
to check you Inbound Rewrite Rules for Calee<br>as the callee is
0044113001417 instead of 44113001417, as your alias:<br><br>No matching
rewrite rules for '0044113001417' found<br><br><br>br,<br>Daniel<br><br><br></div><div><!----><br>_______________________________________________<br>Spce-user
mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br><a class="moz-txt-link-freetext" href="http://lists.sipwise.com/listinfo/spce-user">http://lists.sipwise.com/listinfo/spce-user</a><br></div></div></blockquote></div></body></html>