<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>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><blockquote
style="border: 0px none;" cite="mid:517148E3.4050001@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.03070707.02080708@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="dgrotti@sipwise.com" photoname="Daniel Grotti"
src="cid:part1.03070707.02080708@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><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.03070707.02080708@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
1:02 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>The call
fails to select a proper PSTN gateway for:<br><br>caller:
<a class="moz-txt-link-freetext" href="sip:44839999989@192.168.0.250">sip:44839999989@192.168.0.250</a><br><br>callee:
<a class="moz-txt-link-freetext" href="sip:0044113001417@192.168.0.250;transport=udp">sip:0044113001417@192.168.0.250;transport=udp</a><br><br><br>It looks like
you don't have any eligible peering rule for this<br>callee/caller.<br>How
your Peering rules looks like ?<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:part4.00010301.00060700@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
12:51 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><span><span><span style="font-family:
Calibri;">I think I might have resolved the issue to run media-proxy on
multiple
interfaces on the same machine.<br>Once I can confirm this is working
will
I elaborate on how I achieved this.</span> </span></span></span><br><br><span><span>I'm
facing a problem though and it is as follows:<br><br>I'm registered via
SIP Client on my Internal Network <a moz-do-not-send="true"
href="mailto:0839999989@41.218.72.25" class="moz-txt-link-abbreviated">0839999989@192.168.0.250</a>.<br><br>One
of the Carriers is registered to fake subscriber <a
moz-do-not-send="true" href="mailto:0839999999@41.218.72.69"
class="moz-txt-link-abbreviated">0839999999@10.222.0.250</a>
with Alias 44113001417.<br><br>I've made 100% sure that my re-write
rule is set on both the subscribers.<br><br>I make call to 00</span></span><span><span><span>44113001417</span></span>
</span><span><span></span><span><span></span>,
but call fail with " No PSTN gateways available</span> " in the proxy
log.<br><br>I'm also not 100% sure why it is not calling to the local
hosted domain 10.222.0.250</span><span>?<br><br>The LB is listening on
10.222.0.250:6090</span>.<br><span><br>Attached the output of the call
within the proxy log.<br><br><br>Thanks
again for any assistance.<br> </span><br>Kind Regards<br>Deon<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="jbonilla@sipwise.com" photoname="Jon Bonilla (Manwe)"
src="cid:part5.05080903.07010301@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:jbonilla@sipwise.com"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Jon Bonilla (Manwe)</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">April 18, 2013
11:14 PM</span></font></div></div></div><div
style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><div>El Thu, 18 Apr 2013
14:04:56 +0200<br><br></div><div><!----><br>I have found this
requirement, where the peer requires a vpn or any other<br>tunnel
scenario to be established to send the traffic and they will only accept<br>traffic
from the tunnel. Most common carrier asking for this is British Telecom<br>(BT)<br><br>The
extra_socket option does not work here because the rtp will still be
sent<br>and received in the default ip address, which is not the one
used for the<br>tunnel.<br><br>2 ways of dealing with it:<br><br>*
Create the tunnel in your router. This is the "righ way" (imho). I've
also<br> seen operator purchasing a small cisco router just for this
function. It's<br> easy and cheap.<br><br>* Use an aditional spce to
route the calls between the tunnel and the main<br> spce. This is the
same Thilo achieves with his kamailio-sems combo. This<br> additional
spce will listen in the tunnel address and that ip will be<br>
routeable from/to the main spce's default ip address.<br><br></div><div>_______________________________________________<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>