<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
</head><body style="font-family: Calibri; font-size: 11pt;"
bgcolor="#FFFFFF" text="#000000"><div style="font-size:
11pt;font-family: Calibri;"><span style="font-family: Calibri;">Hi
Anreas<br><br>Thank you for pointing that out.<br>It was indeed the
problem.<br><br>What is very odd is that ngcpcfg apply updated the
information, and show that it loaded the IPs:Ports, but netstat does not
reflect as such.<br><br><br>Executing action for
/etc/ngcp-config/templates/etc/kamailio/lb/ngcpcfg.services<br>Restarting
kamailio-lb:<br>loading modules under
/usr/lib/kamailio/modules_k:/usr/lib/kamailio/modules<br>Listening on<br>
udp: 192.168.10.250 [192.168.10.250]:6095<br> udp:
172.16.0.250 [172.16.0.250]:5060<br> udp: 10.222.0.250
[10.222.0.250]:6090<br></span><span><span style="font-family: Calibri;">
udp: 192.168.0.250 [192.168.0.250]:6090</span> </span><br><span
style="font-family: Calibri;"> tcp: </span><span><span
style="font-family: Calibri;">192.168.10.250 [192.168.10.250]</span></span><span
style="font-family: Calibri;">:6095<br>Aliases:<br><br>kamailio error,
failed to start.<br>insert new socket port_5060=udp:</span><span><span
style="font-family: Calibri;">172.16.0.250</span></span><span
style="font-family: Calibri;">:5060 from config into db<br>insert new
socket port_6090=udp:</span><span><span style="font-family: Calibri;">10.222.0.250</span></span><span
style="font-family: Calibri;">:6090 from config into db<br></span><span><span
style="font-family: Calibri;">insert new socket port_6090=udp:</span><span><span
style="font-family: Calibri;">192.168.0.250</span></span><span
style="font-family: Calibri;">:6090 from config into db</span> </span><br><span
style="font-family: Calibri;">OK<br>Synchronizing data from
/etc/ngcp-config/constants.yml<br>Checking state of /etc files<br>OK:
nothing to commit.<br>root@sbc01:/home/deon# netstat -utldp<br>Active
Internet connections (only servers)<br>Proto Recv-Q Send-Q Local
Address Foreign Address State PID/Program name<br>tcp
0 0 *:sunrpc *:* LISTEN
1450/portmap<br>tcp 0 0 *:59696
*:* LISTEN 1797/sshd<br>tcp 0 0
*:www *:* LISTEN 1674/apache2<br>tcp
0 0 localhost:smtp *:* LISTEN
2633/exim4<br>tcp 0 0 192.168.10.250:8090
*:* LISTEN 19829/sems<br>tcp 0 0
*:4443 *:* LISTEN 1674/apache2<br>tcp
0 0 *:https *:* LISTEN
1674/apache2<br>tcp 0 0 *:8000
*:* LISTEN 16748/kamailio<br>tcp 0 0
*:5443 *:* LISTEN
1674/apache2<br>tcp 0 0 </span><span><span
style="font-family: Calibri;">192.168.10.250</span> </span><span
style="font-family: Calibri;">:5062 *:* LISTEN
16753/kamailio<br>tcp 0 0 *:51335
*:* LISTEN 1464/rpc.statd<br>tcp6 0 0
[::]:59696 [::]:* LISTEN 1797/sshd<br>tcp6
0 0 ip6-localhost:smtp [::]:* LISTEN
2633/exim4<br>udp 0 0 localhost:5040
*:* 19829/sems<br>udp 0 0 </span><span><span
style="font-family: Calibri;">192.168.10.250</span></span><span
style="font-family: Calibri;">:5062 *:*
16734/kamailio<br>udp 0 0 </span><span><span
style="font-family: Calibri;">192.168.10.250</span></span><span
style="font-family: Calibri;">:5080 *:*
19829/sems<br>udp 0 0 *:25826
*:* 2151/collectd<br>udp 0 0
*:48101 *:*
1464/rpc.statd<br>udp 0 0 *:sunrpc
*:* 1450/portmap<br>udp 0 0
192.168.0.250:ntp *:* 1829/ntpd<br>udp
0 0 10.222.0.250:ntp *:* 1829/ntpd<br>udp
0 0 192.168.10.250:ntp *:*
1829/ntpd<br>udp 0 0 localhost:ntp
*:* 1829/ntpd<br>udp 0 0
*:ntp *:* 1829/ntpd<br>udp
0 0 *:792 *:*
1464/rpc.statd<br>udp6 0 0 192.168.10.250:2222
[::]:* 17146/mediaproxy-ng<br>udp6
0 0 192.168.0.250:2222 [::]:*
17043/mediaproxy-ng<br>udp6 0 0 10.222.0.250:2222
[::]:* 16959/mediaproxy-ng<br>udp6
0 0 192.168.10.250:2223 [::]:*
17146/mediaproxy-ng<br>udp6 0 0 192.168.0.250:2223
[::]:* 17043/mediaproxy-ng<br>udp6
0 0 10.222.0.250:2223 [::]:*
16959/mediaproxy-ng<br>udp6 0 0 fe80::6ab5:99ff:fe6:ntp
[::]:* 1829/ntpd<br>udp6 0 0
fe80::6ab5:99ff:fe6:ntp [::]:* 1829/ntpd<br>udp6
0 0 ip6-localhost:ntp [::]:*
1829/ntpd<br>udp6 0 0 fe80::6ab5:99ff:fe6:ntp
[::]:* 1829/ntpd<br>udp6 0 0
[::]:ntp [::]:* 1829/ntpd<br><br></span><br>Thanks
again<br><br>Kind Regards<br>Deon<br><br><blockquote style="border: 0px
none;" cite="mid:517504DA.3080903@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="agranig@sipwise.com" photoname="Andreas Granig"
src="cid:part1.09070001.00070107@gmail.com"
name="compose-unknown-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:agranig@sipwise.com"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Andreas Granig</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">April 22, 2013
10:37 AM</span></font></div></div></div><div
style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody">Hi,
<br>
<br>
<br>Do you properly indent them? From the snipped above, it looks like
your
extra sockets are on the same level as the "extra_sockets" tag. It must
look like this:
<br>
<br>kamailio:
<br> lb:
<br> extra_sockets:
<br> port_6090: something
<br> port_5060: something
<br>
<br>This is crucial, please double-check. If indented properly, it works
for
me (tm).
<br>
<br>Andreas
<br>
<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 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.04090000.02080704@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 22, 2013
10:27 AM</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=ISO-8859-1">
<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 moz-do-not-send="true"
href="udp:192.168.0.250:6090" class="moz-txt-link-freetext">udp:192.168.0.250:6090</a><br>
port_6095: <a moz-do-not-send="true" href="udp:10.222.0.250:6095"
class="moz-txt-link-freetext">udp:10.222.0.250:6095</a><br>
port_5060:
<a moz-do-not-send="true" href="udp:172.16.0.250:5060"
class="moz-txt-link-freetext">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
moz-do-not-send="true" href="udp:192.168.0.250:6090"
class="moz-txt-link-freetext">udp:192.168.0.250:6090</a><br>listen=<a
moz-do-not-send="true" href="udp:10.222.0.250:6095"
class="moz-txt-link-freetext">udp:10.222.0.250:6095</a><br>listen=<a
moz-do-not-send="true" href="udp:172.16.0.250:5060"
class="moz-txt-link-freetext">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>
</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.04090000.02080704@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=ISO-8859-1">
<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:part4.08020207.03000401@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:part2.04090000.02080704@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=ISO-8859-1">
<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></blockquote></div></body></html>