<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head><body style="background-color: rgb(255, 255, 255); color: rgb(0,
0, 0); font-family: Calibri; font-size: 11pt;" bgcolor="#FFFFFF"
text="#000000"><div style="font-size: 11pt;font-family: Calibri;"><span
style="font-family: Calibri;">I
managed to figure out the local routing problem.<br>
<br>
I have another challenge with the additional sockets does not apply when
I apply ngcpcfg.<br><br>This is what my config.yml looks like.<br><br>kamailio:<br>
lb:<br> extra_sockets:<br> port_6090: <a class="moz-txt-link-freetext" href="udp:192.168.0.250:6090">udp:192.168.0.250:6090</a><br>
port_6095: <a class="moz-txt-link-freetext" href="udp:10.222.0.250:6095">udp:10.222.0.250:6095</a><br> port_5060:
<a class="moz-txt-link-freetext" href="udp:172.16.0.250:5060">udp:172.16.0.250:5060</a><br><br>When the ngcpcfg apply comes to the stage
to restart kamailio these additional IPs:ports do not reflect there.<br>When
I do a netstat -utldp it also not reflected there.<br><br>I manually
entered them in vi
/etc/ngcp-config/templates/etc/kamailio/lb/kamailio.cfg.customtt.tt2<br><br>[%
FOREACH ip IN sip_ext_ips -%]<br>listen=udp:[% ip %]:[%
kamailio.lb.port %]<br>listen=tcp:[% ip %]:[% kamailio.lb.port %]<br>listen=<a class="moz-txt-link-freetext" href="udp:192.168.0.250:6090">udp:192.168.0.250:6090</a><br>listen=<a class="moz-txt-link-freetext" href="udp:10.222.0.250:6095">udp:10.222.0.250:6095</a><br>listen=<a class="moz-txt-link-freetext" href="udp:172.16.0.250:5060">udp:172.16.0.250:5060</a><br>
</span><br><br>Please correct me if I'm wrong, but if the later is
loaded via ngcpcfg apply then sems should also be updated with the
additional IPs?<br><br>I checked the ngcpcfg.log in realtime while
ngcpcfg apply is running, but it returns no errors or any information
why kamailio is not loaded with the additional IPs and Ports.<br><br><br>Thank
you for any assistance.<br><br>Kind Regards<br>Deon<br><br>
<blockquote style="border: 0px none;"
cite="mid:5171824A.4040905@gmail.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="vermeulen.deon@gmail.com" photoname="Deon Vermeulen"
src="cid:part1.07060100.02080909@gmail.com" name="postbox-contact.jpg"
height="25px" width="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
6:43 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=UTF-8">
<div style="font-size:
11pt;font-family: Calibri;"><span style="font-family: Calibri;">I fixed
the character and now the rewrite rules are called and the rewrites are
done.<br><br>Attached is the latest call trace.<br><br>What I still
don't understand is that why does spce call the SIP Peering when the
destination is +44113001417@10.222.0.250 which is hosted local on the
spce?<br><br>Again my scenario is as follows:<br><br>subscriber I'm
testing from is <a moz-do-not-send="true"
href="mailto:0839999989@192.168.10.200" class="moz-txt-link-abbreviated">0839999989@192.168.10.200</a><br>The
fake/dummy subscriber
to the carrier is <a moz-do-not-send="true"
href="mailto:0839999999@10.222.0.250" class="moz-txt-link-abbreviated">0839999999@10.222.0.250</a><br></span>The
Alias
+44113001417 is set on the fake/dummy subscriber <span><span
style="font-family: Calibri;"><a moz-do-not-send="true"
href="mailto:0839999999@10.222.0.250" class="moz-txt-link-abbreviated">0839999999@10.222.0.250</a></span>.<br><br>I
don't have any SIP Peerings configured as calls to International
Destinations should route via Aliases set on the fake/dummy subscriber.<br><br><br>Thanks
agin for the assistance.<br><br><br>Kind Regards<br>Deon<br></span><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="jbonilla@sipwise.com" photoname="Jon Bonilla (Manwe)"
src="cid:part2.04000005.08030803@gmail.com" name="postbox-contact.jpg"
height="25px" width="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 19, 2013
4:53 PM</span></font></div></div></div>
<div style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><div>El Fri, 19 Apr 2013
16:34:27 +0100<br></div><div><!----><br><br>It might be that you are not
using the right '^' character.<br><br>Look at this: <br><br>'^' vs 'ˆ'<br><br>The
second character (smaller) is a non-ascii character and it's copied
from<br>your mysql output. The first one is written by me and it's the
circumflex<br>character which is valid for regular expressions.<br><br>From
wikipedia:<br><br>For historical reasons, there is a similar but larger
character, U+005E ^<br>circumflex accent, which is also included in
ASCII but often referred to as<br>caret instead. It is, however,
unsuitable for use as a diacritic on modern<br>computer systems, as it
is a spacing character. Another spacing circumflex<br>character in
Unicode is the smaller U+02C6 ˆ modifier letter circumflex, mainly<br>used
in phonetic notations – or as a sample of the diacritic in isolation.<br><br><br>I
think you are using U+02C6 instead of U+005E character and that's why
your<br>regular expressions don't match.<br><br><a
class="moz-txt-link-freetext"
href="https://en.wikipedia.org/wiki/Circumflex">https://en.wikipedia.org/wiki/Circumflex</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:part1.07060100.02080909@gmail.com" name="postbox-contact.jpg"
height="25px" width="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
4:34 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=UTF-8">
<div style="font-size:
11pt;font-family: Calibri;"><span style="font-family: Calibri;">Hi Jon<br><br>NP.
Here you go.<br><br>mysql -e "select * from kamailio.dialplan where
dpid=9\G"<br>*************************** 1. row
***************************<br> id: 1<br> dpid: 9<br>
pr: 0<br> match_op: 1<br>match_exp: ˆ(00|\+)([1-9][0-9]+)$<br>match_len:
0<br>subst_exp: ˆ(00|\+)([1-9][0-9]+)$<br> repl_exp: \2<br> attrs:<br>***************************
2. row ***************************<br> id: 2<br> dpid: 9<br>
pr: 1<br> match_op: 1<br>match_exp: ˆ0([1-9][0-9]+)$<br>match_len: 0<br>subst_exp:
ˆ0([1-9][0-9]+)$<br> repl_exp: $avp(s:caller_cc)\1<br> attrs:<br>***************************
3. row ***************************<br> id: 3<br> dpid: 9<br>
pr: 2<br> match_op: 1<br>match_exp: ˆ([1-9][0-9]+)$<br>match_len: 0<br>subst_exp:
ˆ([1-9][0-9]+)$<br> repl_exp: $avp(s:caller_cc)$avp(s:caller_ac)\1<br>
attrs:<br><br><br>mysql -e "select * from kamailio.dialplan where
dpid=10\G"<br>*************************** 1. row
***************************<br> id: 4<br> dpid: 10<br>
pr: 1<br> match_op: 1<br>match_exp: ˆ(00|\+)([1-9][0-9]+)$<br>match_len:
0<br>subst_exp: ˆ(00|\+)([1-9][0-9]+)$<br> repl_exp: \2<br> attrs:<br>***************************
2. row ***************************<br> id: 5<br> dpid: 10<br>
pr: 2<br> match_op: 1<br>match_exp: ˆ0([1-9][0-9]+)$<br>match_len: 0<br>subst_exp:
ˆ0([1-9][0-9]+)$<br> repl_exp: $avp(s:caller_cc)\1<br> attrs:<br>***************************
3. row ***************************<br> id: 6<br> dpid: 10<br>
pr: 3<br> match_op: 1<br>match_exp: ˆ([1-9][0-9]+)$<br>match_len: 0<br>subst_exp:
ˆ([1-9][0-9]+)$<br> repl_exp: $avp(s:caller_cc)$avp(s:caller_ac)\1<br>
attrs:<br><br><br></span><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:part2.04000005.08030803@gmail.com" name="postbox-contact.jpg"
height="25px" width="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 19, 2013
4:24 PM</span></font></div></div></div>
<div style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><div>El Fri, 19 Apr 2013
17:08:36 +0200<br></div><div><!----><br><br>Sorry Deon I see that you
already did it:<br><br><br>Fetched dialplan IDs caller_in='9',
callee_in='10'<br>Applying caller-in domain rewrite rules on
user-provided CLI using dpid '9'<br>No matching rewrite rules for
'0839999989' found<br>Applying callee-in domain rewrite rules using dpid
'10'<br>No matching rewrite rules for '0044113001417' found<br><br><br>could
you please send the output of:<br><br>mysql -e "select * from
kamailio.dialplan where dpid=9\G"<br>mysql -e "select * from
kamailio.dialplan where dpid=10\G"<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>
<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:part2.04000005.08030803@gmail.com" name="postbox-contact.jpg"
height="25px" width="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 19, 2013
4:08 PM</span></font></div></div></div>
<div style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><div>El Fri, 19 Apr 2013
15:38:28 +0100<br></div><div><!----><br>Hi Deon<br><br>Please send the
proxy-log of that call (grep by ID and attach it as txt file)<br>and
then we'll check what your rewrite rules look like in the database.<br><br>Let's
see if the rewrite rules don't match or the rewrite_rule_set is not<br>binded
to the subscriber/peer<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>