<div dir="ltr">Thanks Daniel for your quick response.<div>I did follow this guide, but sipwise does not seem to be sending out REGISTER message to Peer. I captured with tcpdump for more than an hour and not a single REGISTER message was sent from sipwise to peer. This is how I have it setup at the moment:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>Peer configured via sipwise GUI with <i>peer_auth_user, peer_auth_pass </i>and <i>peer_auth_realm</i> all set and <i>peer_auth_register</i> checked. </div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>Also set only the <i>domain</i>, <i>user </i>and <i>pwd </i>in the <i>/etc/ngcp-config/templates/etc/ngcp-sems/etc/reg_agent.conf.tt2 </i>file </div></blockquote><div><br></div><div>I tested in lab with softswitch that sends a 407 Authentication Required when it receives an INVITE from sipwise and saw that sipwise successfully authenticates when SIP 407 is sent to it. The callflow for sipwise successful authentication is like this: <br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>sipwise sends INVITE ---->>  Provider</div></div><div><div>sipwise receives 407 Proxy Authentication Required <<-----  Provider  </div></div><div><div><div>sipwise sends INVITE (with credentials) ---->>  Provider</div></div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>sipwise receives 180 Ringing <<-----  Provider  </div></div></blockquote><div><br></div><div>So I see that indeed sipwise wants the SIP 407 sent to it, before it sends the credentials in an INVITE method. It never sends out the REGISTER method to the peer. Please how then can I achieve the callflow below:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>sipwise sends REGISTER ---->>  Provider</div></div><div><div>sipwise receives 401 Unauthorized <<-----  Provider  </div></div><div><div>sipwise sends REGISTER (w/credentials) ---->>  Provider  </div></div></blockquote><div><br>Will appreciate your feedback on this.</div><div><br clear="all"><div><div dir="ltr" class="m_-634657826060765868gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><div style="font-family:sans-serif;font-size:13px"><p class="MsoNormal" style="font-family:Arial,Helvetica,sans-serif;font-size:small">Best Regards<u></u><u></u></p><p class="MsoNormal" style="font-family:Arial,Helvetica,sans-serif;font-size:small"><u></u> <u></u></p><div style="font-family:Arial,Helvetica,sans-serif;font-size:small"><p class="MsoNormal"><b><span style="font-size:10pt;color:rgb(51,51,51)"><span>Emmanuel</span> Afang </span></b></p><p class="MsoNormal"><b><span style="font-size:10pt;color:rgb(51,51,51)"><br></span></b></p><p class="MsoNormal"><span style="font-size:10pt;color:rgb(51,51,51)">Mobile </span><span style="font-size:10pt;color:rgb(36,64,97)">+2347084280332<br>Email:  <u><a href="mailto:cuzomba@dial-mobile.com" style="color:rgb(17,85,204)" target="_blank">a</a><a href="mailto:fang.emmanuel@gmail.com" target="_blank">fang.emmanuel@gmail.com</a></u></span></p><p class="MsoNormal"><span style="color:rgb(36,64,97);font-size:13.3333px">Skype: </span><u style="color:rgb(36,64,97);font-size:13.3333px"><a href="mailto:cuzomba@dial-mobile.com" style="color:rgb(17,85,204)" target="_blank">a</a>fang.emmanuel</u><br></p></div></div></div><div><br></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 12, 2018 at 10:41 AM Daniel Grotti <<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <tt>Yes,<br>
      that's possible. How to do that is written in the handbook, under
      the peering section:
<a class="m_-634657826060765868m_-5328731140551696315moz-txt-link-freetext" href="https://www.sipwise.com/doc/mr6.5.1/sppro/?_href=ar01s05.html#_registering_at_a_peering_server" target="_blank">https://www.sipwise.com/doc/mr6.5.1/sppro/?_href=ar01s05.html#_registering_at_a_peering_server</a><br>
      <br>
      <br>
      <br>
      <br>
    </tt>
    <pre class="m_-634657826060765868m_-5328731140551696315moz-signature" cols="72">-- 
Daniel Grotti
Head of Customer Support
Sipwise GmbH, Campus 21/Europaring F15
AT-2345 Brunn am Gebirge

Office: +43(0)130120332
Email: <a class="m_-634657826060765868m_-5328731140551696315moz-txt-link-abbreviated" href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>
Website: <a class="m_-634657826060765868m_-5328731140551696315moz-txt-link-freetext" href="https://www.sipwise.com" target="_blank">https://www.sipwise.com</a>
</pre>
    <div class="m_-634657826060765868m_-5328731140551696315moz-cite-prefix">On 11/12/18 10:35 AM, EMMANUEL AFANG
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Thanks Walter for your response.<br>
        Please is it possible to set sipwise so it sends out REGISTER to
        peer first, like the callflow below:<br>
        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
          <div>sipwise sends REGISTER ---->>  Provider</div>
          <div>sipwise receives 401 Unauthorized <<----- 
            Provider  </div>
          <div>sipwise sends REGISTER (w/credentials) ---->> 
            Provider  <br>
          </div>
        </blockquote>
        <div><br>
        </div>
        <div>Will appreciate your feedback on this.</div>
        <div><br>
        </div>
        <div>
          <div dir="ltr" class="m_-634657826060765868m_-5328731140551696315gmail_signature" data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div dir="ltr">
                    <div>
                      <div style="font-family:sans-serif;font-size:13px">
                        <p class="MsoNormal" style="font-family:Arial,Helvetica,sans-serif;font-size:small">Best
                          Regards</p>
                        <p class="MsoNormal" style="font-family:Arial,Helvetica,sans-serif;font-size:small"> </p>
                        <div style="font-family:Arial,Helvetica,sans-serif;font-size:small">
                          <p class="MsoNormal"><b><span style="font-size:10pt;color:rgb(51,51,51)"><span>Emmanuel</span> Afang </span></b></p>
                          <p class="MsoNormal"><b><span style="font-size:10pt;color:rgb(51,51,51)"><br>
                              </span></b></p>
                          <p class="MsoNormal"><span style="font-size:10pt;color:rgb(51,51,51)">Mobile </span><span style="font-size:10pt;color:rgb(36,64,97)">+2347084280332<br>
                              Email:  <u><a href="mailto:cuzomba@dial-mobile.com" style="color:rgb(17,85,204)" target="_blank">a</a><a href="mailto:fang.emmanuel@gmail.com" target="_blank">fang.emmanuel@gmail.com</a></u></span></p>
                          <p class="MsoNormal"><span style="color:rgb(36,64,97);font-size:13.3333px">Skype: </span><u style="color:rgb(36,64,97);font-size:13.3333px"><a href="mailto:cuzomba@dial-mobile.com" style="color:rgb(17,85,204)" target="_blank">a</a>fang.emmanuel</u><br>
                          </p>
                        </div>
                      </div>
                    </div>
                    <div><br>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Sat, Nov 10, 2018 at 3:00 AM Walter Klomp <<a href="mailto:walter@myrepublic.net" target="_blank">walter@myrepublic.net</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="auto">Hi Emmanuel,
            <div><br>
            </div>
            <div>This sounds more a provider issue than Sipwise. Sipwise
              will always authenticate with the credentials given a 407
              comes back. </div>
            <div><br>
            </div>
            <div>Registration is usually only done to announce where
              inbound calls need to go to. (Having said that, sipwise
              should be sending registrations at least once an hour -
              did you check with sngrep or other sniffer that it’s
              indeed not sending anything, ever?)</div>
            <div><br>
              <div id="m_-634657826060765868m_-5328731140551696315m_-2416281065770717801AppleMailSignature" dir="ltr">Yours sincerely,
                <div>Walter</div>
              </div>
              <div dir="ltr"><br>
                On 9 Nov 2018, at 10:22 PM, EMMANUEL AFANG <<a href="mailto:afang.emmanuel@gmail.com" target="_blank">afang.emmanuel@gmail.com</a>>
                wrote:<br>
                <br>
              </div>
              <blockquote type="cite">
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr"><font size="1" color="#cc0000">(got a
                        response from your server that I am not a member
                        but posting to members, so I registered and
                        re-posted)</font></div>
                    <div dir="ltr">Hi<br>
                      I use the free edition of 3CX and I am able to do
                      Registrations with a Peering Partner with the
                      following settings (changed):</div>
                    <div><b>IN 3CX This Works:</b></div>
                    <blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
                      <div>
                        <div>Registrar/Server/Gateway Hostname or IP 
                           ==   <a href="http://sytypeer.com/" target="_blank">sytypeer.com</a> 
                           (port 5096)</div>
                      </div>
                      <div>
                        <div>Outbound Proxy                             
                                        ==   1.1.1.244     (port 5096)</div>
                      </div>
                      <div>
                        <div>Type of Authentication                     
                                      ==   Register</div>
                      </div>
                      <div>
                        <div>Authentication ID (aka SIP User ID)       
                               ==   11111uuuuu22222</div>
                      </div>
                      <div>
                        <div>Authentication Password                   
                                    ==   11111ppppp22222</div>
                      </div>
                    </blockquote>
                    <div dir="ltr">
                      <div><br>
                      </div>
                      <div>To configure the equivalence of this on
                        sipwise, I did this:</div>
                      <div><b>IN SIPWISE CE GUI Peering Servers:</b></div>
                    </div>
                    <blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
                      <div>
                        <div>IP Address   ==  1.1.1.244  (port 5096)</div>
                      </div>
                      <div>
                        <div>Probing      ==  (checked the box)</div>
                      </div>
                    </blockquote>
                    <div dir="ltr">
                      <div><b>IN </b><b>SIPWISE CE </b><b>GUI Peering
                          Server Preferences:</b></div>
                    </div>
                    <blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
                      <div>
                        <div>peer_auth_user      ==  11111uuuuu22222</div>
                      </div>
                      <div>
                        <div>peer_auth_pass      ==  11111ppppp22222</div>
                      </div>
                      <div>
                        <div>peer_auth_realm     ==  <a href="http://sytypeer.com/" target="_blank">sytypeer.com</a></div>
                      </div>
                      <div>
                        <div>peer_auth_register  ==  (checked the box)</div>
                      </div>
                    </blockquote>
                    <div dir="ltr">
                      <div><b>IN SIPWISE
                          CE /etc/ngcp-config/templates/etc/ngcp-sems/etc/reg_agent.conf.tt2</b></div>
                    </div>
                    <blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
                      <div>
                        <div>domain=<a href="http://sytypeer.com/" target="_blank">sytypeer.com</a></div>
                      </div>
                      <div>
                        <div>user=11111uuuuu22222</div>
                      </div>
                      <div>
                        <div>pwd=11111ppppp22222</div>
                        <div>(the description says: 'Only set "domain",
                          "user" and "pwd", and leave "proxy" and
                          "contact" EXACTLY')</div>
                      </div>
                    </blockquote>
                    <div dir="ltr">
                      <div><br>
                      </div>
                      <div>With the above SIPWISE settings, I still am
                        not able to REGISTER with partner. In fact,
                        SIPWISE is NOT sending REGISTRATIONS. The
                        callflow is like this:</div>
                      <div>sipwise sends INVITE ---->>  Provider</div>
                      <div>sipwise receives 100 Trying <<----- 
                        Provider  <br>
                      </div>
                      <div>sipwise receives 403 Forbidden <<----- 
                        Provider  </div>
                      <div>
                        <div>sipwise sends ACK ---->>  Provider</div>
                        <div><br>
                        </div>
                        <div>What I am thinking is whether sipwise was
                          expecting to get a <i>407 Proxy Authentication
                            Required</i> before it performs the
                          REGISTRATION, if so, how do I make sipwise
                          REGISTER with peer partner like 3CX does?</div>
                      </div>
                      <div><br>
                      </div>
                    </div>
                    <div>
                      <div dir="ltr" class="m_-634657826060765868m_-5328731140551696315m_-2416281065770717801gmail_signature" data-smartmail="gmail_signature">
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div dir="ltr">
                                <div>
                                  <div style="font-family:sans-serif;font-size:13px">
                                    <p class="MsoNormal" style="font-family:Arial,Helvetica,sans-serif;font-size:small">Best
                                      Regards</p>
                                    <p class="MsoNormal" style="font-family:Arial,Helvetica,sans-serif;font-size:small"> </p>
                                    <div style="font-family:Arial,Helvetica,sans-serif;font-size:small">
                                      <p class="MsoNormal"><b><span style="font-size:10pt;color:rgb(51,51,51)"><span>Emmanuel</span> Afang </span></b></p>
                                      <p class="MsoNormal"><b><span style="font-size:10pt;color:rgb(51,51,51)"><br>
                                          </span></b></p>
                                      <p class="MsoNormal"><span style="font-size:10pt;color:rgb(51,51,51)">Mobile </span><span style="font-size:10pt;color:rgb(36,64,97)">+2347084280332<br>
                                          Email:  <u><a href="mailto:cuzomba@dial-mobile.com" style="color:rgb(17,85,204)" target="_blank">a</a><a href="mailto:fang.emmanuel@gmail.com" target="_blank">fang.emmanuel@gmail.com</a></u></span></p>
                                      <p class="MsoNormal"><span style="color:rgb(36,64,97);font-size:13.3333px">Skype: </span><u style="color:rgb(36,64,97);font-size:13.3333px"><a href="mailto:cuzomba@dial-mobile.com" style="color:rgb(17,85,204)" target="_blank">a</a>fang.emmanuel</u><br>
                                      </p>
                                    </div>
                                  </div>
                                </div>
                                <div><br>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                  </div>
                  <br>
                  <div class="gmail_quote">
                    <div dir="ltr">On Fri, Nov 9, 2018 at 3:11 PM
                      EMMANUEL AFANG <<a href="mailto:afang.emmanuel@gmail.com" target="_blank">afang.emmanuel@gmail.com</a>>
                      wrote:<br>
                    </div>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">
                        <div dir="ltr">Hi<br>
                          I use the free edition of 3CX and I am able to
                          do Registrations with a Peering Partner with
                          the following settings (changed):</div>
                        <div><b>IN 3CX This Works:</b></div>
                        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
                          <div>
                            <div>Registrar/Server/Gateway Hostname or
                              IP   ==   <a href="http://sytypeer.com" target="_blank">sytypeer.com</a> 
                               (port 5096)</div>
                          </div>
                          <div>
                            <div>Outbound Proxy                         
                                                ==   1.1.1.244     (port
                              5096)</div>
                          </div>
                          <div>
                            <div>Type of Authentication                 
                                              ==   Register</div>
                          </div>
                          <div>
                            <div>Authentication ID (aka SIP User ID)   
                                       ==   11111uuuuu22222</div>
                          </div>
                          <div>
                            <div>Authentication Password               
                                            ==   11111ppppp22222</div>
                          </div>
                        </blockquote>
                        <div dir="ltr">
                          <div><br>
                          </div>
                          <div>To configure the equivalence of this on
                            sipwise, I did this:</div>
                          <div><b>IN SIPWISE CE GUI Peering Servers:</b></div>
                        </div>
                        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
                          <div>
                            <div>IP Address   ==  1.1.1.244  (port 5096)</div>
                          </div>
                          <div>
                            <div>Probing      ==  (checked the box)</div>
                          </div>
                        </blockquote>
                        <div dir="ltr">
                          <div><b>IN </b><b>SIPWISE CE </b><b>GUI
                              Peering Server Preferences:</b></div>
                        </div>
                        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
                          <div>
                            <div>peer_auth_user      ==  11111uuuuu22222</div>
                          </div>
                          <div>
                            <div>peer_auth_pass      ==  11111ppppp22222</div>
                          </div>
                          <div>
                            <div>peer_auth_realm     ==  <a href="http://sytypeer.com" target="_blank">sytypeer.com</a></div>
                          </div>
                          <div>
                            <div>peer_auth_register  ==  (checked the
                              box)</div>
                          </div>
                        </blockquote>
                        <div dir="ltr">
                          <div><b>IN SIPWISE
                              CE /etc/ngcp-config/templates/etc/ngcp-sems/etc/reg_agent.conf.tt2</b></div>
                        </div>
                        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
                          <div>
                            <div>domain=<a href="http://sytypeer.com" target="_blank">sytypeer.com</a></div>
                          </div>
                          <div>
                            <div>user=11111uuuuu22222</div>
                          </div>
                          <div>
                            <div>pwd=11111ppppp22222</div>
                            <div>(the description says: 'Only set
                              "domain", "user" and "pwd", and leave
                              "proxy" and "contact" EXACTLY')</div>
                          </div>
                        </blockquote>
                        <div dir="ltr">
                          <div><br>
                          </div>
                          <div>With the above SIPWISE settings, I still
                            am not able to REGISTER with partner. In
                            fact, SIPWISE is NOT sending REGISTRATIONS.
                            The callflow is like this:</div>
                          <div>sipwise sends INVITE ---->> 
                            Provider</div>
                          <div>sipwise receives 100 Trying
                            <<-----  Provider  <br>
                          </div>
                          <div>sipwise receives 403 Forbidden
                            <<-----  Provider  </div>
                          <div>
                            <div>sipwise sends ACK ---->> 
                              Provider</div>
                            <div><br>
                            </div>
                            <div>What I am thinking is whether sipwise
                              was expecting to get a <i>407 Proxy
                                Authentication Required</i> before it
                              performs the REGISTRATION, if so, how do I
                              make sipwise REGISTER with peer partner
                              like 3CX does?</div>
                            <br class="m_-634657826060765868m_-5328731140551696315m_-2416281065770717801m_7541390431507244687gmail-Apple-interchange-newline">
                          </div>
                          <div><br>
                          </div>
                          <div>
                            <div dir="ltr" class="m_-634657826060765868m_-5328731140551696315m_-2416281065770717801m_7541390431507244687gmail_signature">
                              <div dir="ltr">
                                <div>
                                  <div dir="ltr">
                                    <div dir="ltr">
                                      <div>
                                        <div style="font-family:sans-serif;font-size:13px">
                                          <p class="MsoNormal" style="font-family:Arial,Helvetica,sans-serif;font-size:small">Best
                                            Regards</p>
                                          <p class="MsoNormal" style="font-family:Arial,Helvetica,sans-serif;font-size:small"> </p>
                                          <div style="font-family:Arial,Helvetica,sans-serif;font-size:small">
                                            <p class="MsoNormal"><b><span style="font-size:10pt;color:rgb(51,51,51)"><span>Emmanuel</span> Afang </span></b></p>
                                            <p class="MsoNormal"><b><span style="font-size:10pt;color:rgb(51,51,51)"><br>
                                                </span></b></p>
                                            <p class="MsoNormal"><span style="font-size:10pt;color:rgb(51,51,51)">Mobile </span><span style="font-size:10pt;color:rgb(36,64,97)">+2347084280332<br>
                                                Email:  <u><a href="mailto:cuzomba@dial-mobile.com" style="color:rgb(17,85,204)" target="_blank">a</a><a href="mailto:fang.emmanuel@gmail.com" target="_blank">fang.emmanuel@gmail.com</a></u></span></p>
                                            <p class="MsoNormal"><span style="color:rgb(36,64,97);font-size:13.3333px">Skype: </span><u style="color:rgb(36,64,97);font-size:13.3333px"><a href="mailto:cuzomba@dial-mobile.com" style="color:rgb(17,85,204)" target="_blank">a</a>fang.emmanuel</u><br>
                                            </p>
                                          </div>
                                        </div>
                                      </div>
                                      <div><br>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                </div>
              </blockquote>
              <blockquote type="cite">
                <div dir="ltr"><span>_______________________________________________</span><br>
                  <span>Spce-user mailing list</span><br>
                  <span><a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a></span><br>
                  <span><a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a></span><br>
                </div>
              </blockquote>
            </div>
          </div>
          <br>
          <span style="color:rgb(34,34,34);font-family:sans-serif;background-color:rgb(255,255,255)"><font size="1"><span style="font-family:Arial;color:rgb(102,102,102);font-style:italic;vertical-align:baseline;white-space:pre-wrap">The contents of this email and any attachments are confidential and may also be privileged. You must not disseminate the contents of this email and any attachments without permission of the sender. If you have received this email by mistake, please delete all copies and inform the sender immediately. You may refer to our company's Privacy Policy </span><span style="color:rgb(102,102,102);font-family:Arial;font-style:italic;vertical-align:baseline;white-space:pre-wrap"><a href="https://myrepublic.net/sg/legal/terms-of-use-policies/privacy-policy/" target="_blank">here</a></span><span style="font-family:Arial;color:rgb(102,102,102);font-style:italic;vertical-align:baseline;white-space:pre-wrap">.</span></font></span></blockquote>
      </div>
      <br>
      <fieldset class="m_-634657826060765868m_-5328731140551696315mimeAttachmentHeader"></fieldset>
      <pre class="m_-634657826060765868m_-5328731140551696315moz-quote-pre">_______________________________________________
Spce-user mailing list
<a class="m_-634657826060765868m_-5328731140551696315moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a>
<a class="m_-634657826060765868m_-5328731140551696315moz-txt-link-freetext" href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a>
</pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
<a href="https://lists.sipwise.com/listinfo/spce-user" rel="noreferrer" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br>
</blockquote></div>