<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On 10 August 2017 at 13:13, Christo Snyman <span dir="ltr"><<a href="mailto:christo@safricloud.com" target="_blank">christo@safricloud.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="EN-ZA"><div class="m_-2824691537027711449WordSection1"><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’ve just started playing with SipWise and can make outbound calls via SipWise subscriber and take inbound calls.  My problem is when I try to dial outbound using a different PBX with SipWise configured as a sip trunk and SipWise peering with a 3<sup>rd</sup> party SBC to send the call to the PSTN.  My SipWise config is as follows:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Sip Peering Grp 1:<u></u><u></u></p><p class="m_-2824691537027711449MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">         </span></span></span><u></u>172.x.x.x (Caller PBX sending call to SipWise)<u></u><u></u></p><p class="m_-2824691537027711449MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">         </span></span></span><u></u>10.x.x.x (Upstream SBC accepting outbound calls and sending to PSTN)<u></u><u></u></p><p class="MsoNormal"><u></u></p></div></div></blockquote><div><br></div><div>Hi<br><br></div><div>The PBXs should be set up as Subscribers, not as Peer.<br><br></div><div>By default peer-to-peer routing is disabled, and that is probably not what you want anyway.<br><br></div><div><br></div><div>Hope this helps.<br><br></div><div>-Barry Flanagan<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="EN-ZA"><div class="m_-2824691537027711449WordSection1"><p class="MsoNormal"> <u></u></p><p class="MsoNormal">Outbound Rule:<u></u><u></u></p><p class="m_-2824691537027711449MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">         </span></span></span><u></u>Default rule, any caller pattern, any callee pattern, any prefix<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Inbound rule:<u></u><u></u></p><p class="m_-2824691537027711449MsoListParagraph"><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">         </span></span></span><u></u>From_user = \w<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I think my config breaks when between accepting the call and then knowing to route it back out via the 3<sup>rd</sup> party SBC.  The logs shows that it’s accepting the call, following the inbound route and that the callee is not local but instead of showing “Call to SIP Peering” like successful outbound it shows “Call to unknown user” which gives the impression it wants to keep the call local.  I tried the same setup with multiple external PBXes and they produce the same result.    Any idea what I’m doing wrong?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Here’s the log:<u></u><u></u></p><p class="MsoNormal">Aug 10 14:02:47 spce proxy[19916]: NOTICE: <script>: New request on proxy - M=SUBSCRIBE R=sip:<a href="http://127.0.0.1:5062" target="_blank">127.0.0.1:5062</a> F=<a href="mailto:sip%3Acharl@172.30.170.252" target="_blank">sip:charl@172.30.170.252</a> T=<a href="mailto:sip%3Acharl@172.30.170.252" target="_blank">sip:charl@172.30.170.252</a> IP=<a href="http://172.30.196.252:51115" target="_blank">172.30.196.252:51115</a> (<a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a>) ID=<wbr>83372NDM5MWJmODE0MDY4MDZiNzA4Z<wbr>Tc4NDAzOWRjMzQ1NGM UA='X-Lite release 4.9.7.1 stamp 83372'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:02:47 spce proxy[19916]: NOTICE: <script>: Handling subscribe request for event 'message-summary' - R=sip:<a href="http://127.0.0.1:5062" target="_blank">127.0.0.1:5062</a> ID=<wbr>83372NDM5MWJmODE0MDY4MDZiNzA4Z<wbr>Tc4NDAzOWRjMzQ1NGM UA='X-Lite release 4.9.7.1 stamp 83372'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:17 spce proxy[19916]: NOTICE: <script>: New request on proxy - M=SUBSCRIBE R=sip:<a href="http://127.0.0.1:5062" target="_blank">127.0.0.1:5062</a> F=<a href="mailto:sip%3Acharl@172.30.170.252" target="_blank">sip:charl@172.30.170.252</a> T=<a href="mailto:sip%3Acharl@172.30.170.252" target="_blank">sip:charl@172.30.170.252</a> IP=<a href="http://172.30.196.252:51115" target="_blank">172.30.196.252:51115</a> (<a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a>) ID=<wbr>83372NDM5MWJmODE0MDY4MDZiNzA4Z<wbr>Tc4NDAzOWRjMzQ1NGM UA='X-Lite release 4.9.7.1 stamp 83372'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:17 spce proxy[19916]: NOTICE: <script>: Handling subscribe request for event 'message-summary' - R=sip:<a href="http://127.0.0.1:5062" target="_blank">127.0.0.1:5062</a> ID=<wbr>83372NDM5MWJmODE0MDY4MDZiNzA4Z<wbr>Tc4NDAzOWRjMzQ1NGM UA='X-Lite release 4.9.7.1 stamp 83372'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: New request on proxy - M=INVITE R=<a href="mailto:sip%3A0739589884@172.30.170.">sip:0739589884@172.30.170.</a><wbr>252:5060;transport=udp;user=<wbr>phone F=<a href="mailto:sip%3A27315381625@172.30.180.31" target="_blank">sip:27315381625@172.30.180.<wbr>31</a>;user=phone T=<a href="mailto:sip%3A0739589884@172.30.170.252" target="_blank">sip:0739589884@172.30.170.<wbr>252</a>;user=phone IP=<a href="http://172.30.180.31:5060" target="_blank">172.30.180.31:5060</a> (<a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a>) ID=5b9f377d-e2c1-4fdd-bb0d-<wbr>6f181fdaafab UA='ININ-EDGE/1.0.0.5886'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: Call from PSTN - R=<a href="mailto:sip%3A0739589884@172.30.170.">sip:0739589884@172.30.170.</a><wbr>252:5060;transport=udp;user=<wbr>phone ID=5b9f377d-e2c1-4fdd-bb0d-<wbr>6f181fdaafab UA='ININ-EDGE/1.0.0.5886'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: Inbound peering group '4' matched, looking up peer host - R=<a href="mailto:sip%3A0739589884@172.30.170.">sip:0739589884@172.30.170.</a><wbr>252:5060;transport=udp;user=<wbr>phone ID=5b9f377d-e2c1-4fdd-bb0d-<wbr>6f181fdaafab UA='ININ-EDGE/1.0.0.5886'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: Selected peering host id '7' as inbound peer - R=<a href="mailto:sip%3A0739589884@172.30.170.">sip:0739589884@172.30.170.</a><wbr>252:5060;transport=udp;user=<wbr>phone ID=5b9f377d-e2c1-4fdd-bb0d-<wbr>6f181fdaafab UA='ININ-EDGE/1.0.0.5886'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: Dialog managed, lua_dlg_callid:[5b9f377d-e2c1-<wbr>4fdd-bb0d-6f181fdaafab] - R=<a href="mailto:sip%3A0739589884@172.30.170.">sip:0739589884@172.30.170.</a><wbr>252:5060;transport=udp;user=<wbr>phone ID=5b9f377d-e2c1-4fdd-bb0d-<wbr>6f181fdaafab UA='ININ-EDGE/1.0.0.5886'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: IMS marker, s:ims_role='<null>', s:caller_uuid='0', s:callee_uuid='<null>', s:acc_caller_user='<wbr>27315381625', s:acc_caller_domain='172.30.<wbr>180.31'  - R=<a href="mailto:sip%3A0739589884@172.30.170.">sip:0739589884@172.30.170.</a><wbr>252:5060;transport=udp;user=<wbr>phone ID=5b9f377d-e2c1-4fdd-bb0d-<wbr>6f181fdaafab UA='ININ-EDGE/1.0.0.5886'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: User-Provided CLI '27315381625' taken from From-User - R=<a href="mailto:sip%3A0739589884@172.30.170.">sip:0739589884@172.30.170.</a><wbr>252:5060;transport=udp;user=<wbr>phone ID=5b9f377d-e2c1-4fdd-bb0d-<wbr>6f181fdaafab UA='ININ-EDGE/1.0.0.5886'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: Network-Provided CLI '27315381625' taken from From-User - R=<a href="mailto:sip%3A0739589884@172.30.170.">sip:0739589884@172.30.170.</a><wbr>252:5060;transport=udp;user=<wbr>phone ID=5b9f377d-e2c1-4fdd-bb0d-<wbr>6f181fdaafab UA='ININ-EDGE/1.0.0.5886'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: Setting '<a href="mailto:27315381625@172.30.180.31" target="_blank">27315381625@172.30.180.31</a>' as initiating user-provided CLI - R=<a href="mailto:sip%3A0739589884@172.30.170.">sip:0739589884@172.30.170.</a><wbr>252:5060;transport=udp;user=<wbr>phone ID=5b9f377d-e2c1-4fdd-bb0d-<wbr>6f181fdaafab UA='ININ-EDGE/1.0.0.5886'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: Setting '<a href="mailto:27315381625@172.30.180.31" target="_blank">27315381625@172.30.180.31</a>' as initiating network-provided CLI - R=<a href="mailto:sip%3A0739589884@172.30.170.">sip:0739589884@172.30.170.</a><wbr>252:5060;transport=udp;user=<wbr>phone ID=5b9f377d-e2c1-4fdd-bb0d-<wbr>6f181fdaafab UA='ININ-EDGE/1.0.0.5886'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: Callee is not local - R=<a href="mailto:sip%3A0739589884@172.30.170.">sip:0739589884@172.30.170.</a><wbr>252:5060;transport=udp;user=<wbr>phone ID=5b9f377d-e2c1-4fdd-bb0d-<wbr>6f181fdaafab UA='ININ-EDGE/1.0.0.5886'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: Call to unknown user - R=<a href="mailto:sip%3A0739589884@172.30.170.">sip:0739589884@172.30.170.</a><wbr>252:5060;transport=udp;user=<wbr>phone ID=5b9f377d-e2c1-4fdd-bb0d-<wbr>6f181fdaafab UA='ININ-EDGE/1.0.0.5886'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: Setting acc source-leg for uuid '0': '0|27315381625|172.30.180.31|<wbr>27315381625|||0|||0|call|172.<wbr>30.180.31|1502366845.782452|||<wbr>|||||||||27315381625|' - R=<a href="mailto:sip%3A0739589884@172.30.170.">sip:0739589884@172.30.170.</a><wbr>252:5060;transport=udp;user=<wbr>phone ID=5b9f377d-e2c1-4fdd-bb0d-<wbr>6f181fdaafab UA='ININ-EDGE/1.0.0.5886'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: Setting acc destination-leg for uuid '0': '0|||0|0739589884|0|<wbr>0739589884|172.30.170.252|<wbr>0739589884|172.30.170.252|0|||<wbr>|||||||||0739589884|' - R=<a href="mailto:sip%3A0739589884@172.30.170.">sip:0739589884@172.30.170.</a><wbr>252:5060;transport=udp;user=<wbr>phone ID=5b9f377d-e2c1-4fdd-bb0d-<wbr>6f181fdaafab UA='ININ-EDGE/1.0.0.5886'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: [dialog:failed] decreased redis counters lua_dlg_callid:[5b9f377d-e2c1-<wbr>4fdd-bb0d-6f181fdaafab] - R=<a href="mailto:sip%3Ayou@kamailio.org" target="_blank">sip:you@kamailio.org</a> ID=123 UA='<null>'<u></u><u></u></p><p class="MsoNormal">Aug 10 14:07:25 spce proxy[19916]: NOTICE: <script>: New request on proxy - M=ACK R=<a href="mailto:sip%3A0739589884@172.30.170.">sip:0739589884@172.30.170.</a><wbr>252:5060;transport=udp;user=<wbr>phone F=<a href="mailto:sip%3A27315381625@172.30.180.31" target="_blank">sip:27315381625@172.30.180.<wbr>31</a>;user=phone T=<a href="mailto:sip%3A0739589884@172.30.170.252" target="_blank">sip:0739589884@172.30.170.<wbr>252</a>;user=phone IP=<a href="http://172.30.180.31:5060" target="_blank">172.30.180.31:5060</a> (<a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a>) ID=5b9f377d-e2c1-4fdd-bb0d-<wbr>6f181fdaafab UA='ININ-EDGE/1.0.0.5886'<u></u><u></u></p><p class="MsoNormal">root@spce:~#<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><table class="m_-2824691537027711449MsoNormalTable" style="width:342.0pt" width="0" cellpadding="0" border="0"><tbody><tr><td style="padding:.75pt .75pt .75pt .75pt"><p class="MsoNormal" style="line-height:105%"><b><span style="font-size:13.5pt;line-height:105%;font-family:"Arial",sans-serif;color:#444444">Christo Snyman</span></b><span style="font-size:10.5pt;line-height:105%;font-family:"Arial",sans-serif;color:#228bac"><u></u><u></u></span></p></td></tr><tr><td style="padding:.75pt .75pt .75pt .75pt"><p class="MsoNormal" style="line-height:105%"><span style="font-size:10.5pt;line-height:105%;font-family:"Arial",sans-serif;color:#228bac">CTO<u></u><u></u></span></p></td></tr><tr><td style="padding:.75pt .75pt .75pt .75pt"><p class="MsoNormal" style="line-height:105%"><span style="font-size:10.5pt;line-height:105%;font-family:"Arial",sans-serif;color:#228bac"><u></u> <u></u></span></p></td></tr><tr><td style="padding:.75pt .75pt .75pt .75pt"><p class="MsoNormal" style="line-height:105%"><span style="font-size:13.5pt;line-height:105%;font-family:"Times New Roman",serif;color:black;display:none"><u></u> <u></u></span></p><table class="m_-2824691537027711449MsoNormalTable" style="width:337.5pt" width="0" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="width:22.5pt;padding:0cm 0cm 0cm 0cm" width="25"><p class="MsoNormal" style="line-height:105%"><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"><img style="width:.2291in;height:.2291in" id="m_-2824691537027711449Picture_x0020_1" src="cid:image001.jpg@01D311E0.60EBA9C0" alt="cid:image006.jpg@01D282BF.80112F60" width="22" height="22"></span><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"><u></u><u></u></span></p></td><td style="width:223.5pt;padding:0cm 0cm 0cm 0cm" width="206"><p class="MsoNormal" style="line-height:105%"><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"> </span><span style="font-size:10.5pt;line-height:105%;font-family:"Arial",sans-serif;color:#848484">072 444 8000</span><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"><u></u><u></u></span></p></td><td style="width:22.5pt;padding:0cm 0cm 0cm 0cm" width="25"><p class="MsoNormal" style="line-height:105%"><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"><img style="width:.2291in;height:.2291in" id="m_-2824691537027711449Picture_x0020_2" src="cid:image002.jpg@01D311E0.60EBA9C0" alt="cid:image007.jpg@01D282BF.80112F60" width="22" height="22"></span><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"><u></u><u></u></span></p></td><td style="width:223.5pt;padding:0cm 0cm 0cm 0cm" width="193"><p class="MsoNormal" style="line-height:105%"><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"> </span><span style="font-size:10.5pt;line-height:105%;font-family:"Arial",sans-serif;color:#848484">031 538 1625</span><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"><u></u><u></u></span></p></td></tr><tr><td style="width:22.5pt;padding:0cm 0cm 0cm 0cm" width="25"><p class="MsoNormal" style="line-height:105%"><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"><img style="width:.2291in;height:.2291in" id="m_-2824691537027711449Picture_x0020_3" src="cid:image003.jpg@01D311E0.60EBA9C0" alt="cid:image008.jpg@01D282BF.80112F60" width="22" height="22"></span><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"><u></u><u></u></span></p></td><td style="width:223.5pt;padding:0cm 0cm 0cm 0cm" width="206"><p class="MsoNormal" style="line-height:105%"><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"> </span><span style="color:#1f497d"><a href="mailto:christo@safricloud.com" target="_blank"><span style="font-size:10.5pt;line-height:105%;font-family:"Arial",sans-serif;color:#0563c1">christo@safricloud.com</span></a></span><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"><u></u><u></u></span></p></td><td style="width:22.5pt;padding:0cm 0cm 0cm 0cm" width="25"><p class="MsoNormal" style="line-height:105%"><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"><img style="width:.2291in;height:.2291in" id="m_-2824691537027711449Picture_x0020_4" src="cid:image004.jpg@01D311E0.60EBA9C0" alt="cid:image009.jpg@01D282BF.80112F60" width="22" height="22" border="0"></span><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"><u></u><u></u></span></p></td><td style="width:223.5pt;padding:0cm 0cm 0cm 0cm" width="193"><p class="MsoNormal" style="line-height:105%"><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"> </span><span style="color:#1f497d"><a href="http://www.safricloud.com" target="_blank"><span style="font-size:10.5pt;line-height:105%;font-family:"Arial",sans-serif;color:#0563c1">www.safricloud.com</span></a></span><span style="font-size:12.0pt;line-height:105%;font-family:"Times New Roman",serif;color:#1f497d"><u></u><u></u></span></p></td></tr><tr><td style="padding:0cm 0cm 0cm 0cm"></td><td style="padding:0cm 0cm 0cm 0cm"></td><td style="padding:0cm 0cm 0cm 0cm"></td><td style="padding:0cm 0cm 0cm 0cm"></td></tr></tbody></table><p class="MsoNormal" style="line-height:105%"><span style="font-size:13.5pt;line-height:105%;font-family:"Times New Roman",serif;color:black"><img style="width:3.0416in;height:.5625in" id="m_-2824691537027711449Picture_x0020_5" src="cid:image005.jpg@01D311E0.60EBA9C0" alt="cid:image010.jpg@01D282BF.80112F60" width="292" height="54" border="0"></span><b><span style="font-size:13.5pt;line-height:105%;font-family:"Arial",sans-serif;color:#444444"><u></u><u></u></span></b></p></td></tr><tr><td style="padding:.75pt .75pt .75pt .75pt" valign="top"><p class="MsoNormal" style="line-height:105%"><span style="font-size:7.5pt;line-height:105%;font-family:"Times New Roman",serif;color:black"><br>This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by email reply and delete it from your system; you may not copy this message or discuss its contents to anyone. Please send us by fax any message containing deadlines as incoming emails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the internet.</span><span style="font-size:13.5pt;line-height:105%;font-family:"Times New Roman",serif;color:black"><u></u><u></u></span></p></td></tr><tr><td style="padding:.75pt .75pt .75pt .75pt" valign="top"><p class="MsoNormal" style="text-align:justify;line-height:105%"><span style="font-size:7.5pt;line-height:105%;font-family:"Times New Roman",serif;color:black"><u></u> <u></u></span></p></td></tr></tbody></table><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>______________________________<wbr>_________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
<a href="https://lists.sipwise.com/listinfo/spce-user" rel="noreferrer" target="_blank">https://lists.sipwise.com/<wbr>listinfo/spce-user</a><br>
<br></blockquote></div><br></div></div>