<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>That works great for Asterisk &#8211; but I'm working with a PortaOne PortaSIP commercial soft switch.</div><div><br></div><div>Any suggestions?</div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> SamyGo &lt;<a href="mailto:govoiper@gmail.com">govoiper@gmail.com</a>&gt;<br><span style="font-weight:bold">Reply-To: </span> "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List" &lt;<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>&gt;<br><span style="font-weight:bold">Date: </span> Wed, 21 Mar 2012 09:23:47 +0500<br><span style="font-weight:bold">To: </span> &lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;, "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List" &lt;<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>&gt;<br><span style="font-weight:bold">Subject: </span> Re: [SR-Users] Proxy Registrations offset port<br></div><div><br></div>Hi Robert,<div><br><div>There can't be any simpler start then using the configurations(kamailio.cfg file) mentioned in this blog-post by Daniel.</div><div><br></div><div><a href="http://kb.asipto.com/asterisk:realtime:kamailio-3.1.x-asterisk-1.6.2-astdb">http://kb.asipto.com/asterisk:realtime:kamailio-3.1.x-asterisk-1.6.2-astdb</a>&nbsp;</div><div><br></div><div>You can see a <b>route[REGFWD]</b> and in that route you can relay the REGISTRATIONS to your desired SIP-Server!!&nbsp;</div><div><br></div><div>This is by far the easiest and simplest start I've found without any headache of going deeper into the SIP packets and techniques.</div><div><br></div><div>See this is the concerned route.Make sure you do DB tables and Variables adjustments accordingly.</div><div><div class="gmail_quote"><br></div><div class="gmail_quote">Regards,</div><div class="gmail_quote">Sammy.</div><div class="gmail_quote"><br></div><div class="gmail_quote">NOTE: Thanks Sir Daniel for these wonderful and very helpful blogposts.</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">On Wed, Mar 21, 2012 at 3:41 AM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hello,<div class="im"><br>
    <br>
    On 3/20/12 10:36 PM, Robert wrote:
    <blockquote type="cite">
      <div>I've spent a significant amount of time now jacking with
        configurations&#8230;</div>
      <div><br>
      </div>
      <div>Maybe I should re-state what I'm trying to do&#8230;</div>
      <div><br>
      </div>
      <div>I'm trying to establish an SBC / UpperRegistration SBC&#8230;</div>
      <div><br>
      </div>
      <div>The goal &#8211; is to listen on a port other than 5060 and relay
        the registration to the actual proxy.</div>
      <div><br>
      </div>
      <div>I.e. IP Phone ---&gt; Kamailio (port 8080) ----&gt; Sip proxy
        (port 5060)</div>
      <div><br>
      </div>
      <div>I've tried all combinations of rewritehostport / t_replicate
        etc&#8230;</div>
    </blockquote></div>
    perhaps t_relay_to(...) is enough, depending on what the r-uri
    address contain (should be registrar server address, if K on port
    8080 is used as outbound proxy).<br>
    <br>
    You have to use path module and the sip proxy on 5060 has to
    understand the path headers (it is not clear that proxy on 5060 is
    Kamailio, if it is, then it support path).<div class="im"><br>
    <br>
    <blockquote type="cite">
      <div><br>
      </div>
      <div>The best I get is an attempt to register followed by an
        unauthorized with request for digest auth..</div>
      <div><br>
      </div>
      <div>I don't want to store any credentials in Kamailio &#8211; I just        want to act as an offset port for users who cannot reach 5060&#8230;</div>
    </blockquote>
    <br></div>
    Forwarding registrations is fine, no need to authenticate them on K
    port 8080. Perhaps providing the relevant part of your config along
    with a ngrep SIP trace on K port 8080 will help to give you the
    right&nbsp; directions to get it work.<br>
    <br>
    Cheers,<br>
    Daniel<div><div class="h5"><br>
    <br>
    <blockquote type="cite">
      <div><br>
      </div>
      <div>OpenSBC was working for this &#8211; however the registrations were
        timing out and not renewing</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <span>
        <div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none"><span style="font-weight:bold">From: </span> Reda Aouad &lt;<a href="mailto:reda.aouad@gmail.com" target="_blank">reda.aouad@gmail.com</a>&gt;<br>
          <span style="font-weight:bold">Reply-To: </span> "SIP Router
          - Kamailio (OpenSER) and SIP Express Router (SER) - Users
          Mailing List" &lt;<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>&gt;<br>
          <span style="font-weight:bold">Date: </span> Fri, 9 Mar 2012
          17:16:14 +0100<br>
          <span style="font-weight:bold">To: </span> "SIP Router -
          Kamailio (OpenSER) and SIP Express Router (SER) -Users Mailing
          List" &lt;<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>&gt;<br>
          <span style="font-weight:bold">Subject: </span> Re:
          [SR-Users] Proxy Registrations offset port<br>
        </div>
        <div><br>
        </div>
        <div>
          <div bgcolor="#FFFFFF">
            <div>No wonder your signallin is not reaching the final
              client.</div>
            <div><br>
            </div>
            <div>I didnt't suggest to throw OpenSips. NAT handling is
              delicate woth proxies.</div>
            <div><br>
            </div>
            <div>Start by looking at some wireshark dump to see what's
              wrong.<br>
              <br>
              <div><br>
              </div>
              Reda</div>
            <div><br>
              On 9 mars 2012, at 16:57, Robert &lt;<a href="mailto:robert@inteli-core.com" target="_blank">robert@inteli-core.com</a>&gt;
              wrote:<br>
              <br>
            </div>
            <blockquote type="cite">
              <div>
                <div>Two different tests I completed:</div>
                <div><br>
                </div>
                <div>Test #1 &#8211; it showed the opensips server</div>
                <div>Test #2 &#8211; it showed the client's public ip address</div>
                <div><br>
                </div>
                <div>The issue is not as much RTP &#8211; but I'm not getting
                  SIP signaling back to the client.. Which leads me to
                  believe the NAT problem. I'm not even getting ringing&#8230;</div>
                <div><br>
                </div>
                <div>Maybe I should go ahead and install Kamailio and
                  throw out the OpenSIPs stuff&#8230;</div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
                <span>
                  <div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none"><span style="font-weight:bold">From: </span> Reda Aouad
                    &lt;<a href="mailto:reda.aouad@gmail.com" target="_blank">reda.aouad@gmail.com</a>&gt;<br>
                    <span style="font-weight:bold">Reply-To: </span>
                    "SIP Router - Kamailio (OpenSER) and SIP Express
                    Router (SER) - Users Mailing List" &lt;<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>&gt;<br>
                    <span style="font-weight:bold">Date: </span> Fri, 9
                    Mar 2012 16:41:57 +0100<br>
                    <span style="font-weight:bold">To: </span> "SIP
                    Router - Kamailio (OpenSER) and SIP Express Router
                    (SER) -Users Mailing List" &lt;<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>&gt;<br>
                    <span style="font-weight:bold">Subject: </span> Re:
                    [SR-Users] Proxy Registrations offset port<br>
                  </div>
                  <div><br>
                  </div>
                  <div>
                    <div bgcolor="#FFFFFF">
                      <div>Kamailio's default conf is really a good
                        place to start, you just have to disable the
                        authentication, by commenting the corresponding
                        route.<br>
                        <br>
                        You can start by looking at a wireshark/tcpdump
                        dump on your PortaOne server to know where the
                        rtp stream is going, and then troubleshoot
                        accordingly..</div>
                      <div><br>
                      </div>
                      <div>On your PortaOne server, what is the location
                        of registered users? Is it their IP@, or that of
                        OpenSips server?<br>
                        <div><br>
                        </div>
                        Reda</div>
                      <div><br>
                        On 9 mars 2012, at 16:28, Robert &lt;<a href="mailto:robert@inteli-core.com" target="_blank">robert@inteli-core.com</a>&gt;
                        wrote:<br>
                        <br>
                      </div>
                      <blockquote type="cite">
                        <div>
                          <div>Thank you so much for answering.. The
                            folks at the other place don't want to help.</div>
                          <div><br>
                          </div>
                          <div>We have a PortaOne SIP platform&#8230; It does
                            everything&#8230; It's listening on port 5060 &#8211;
                            public ip..</div>
                          <div><br>
                          </div>
                          <div>We want to deploy Kamailio or some
                            derivative of SER to listen on PUBLIC port &#8211;
                            other than 5060 &#8211; for our customers who
                            cannot reach 5060.</div>
                          <div><br>
                          </div>
                          <div>Using a very simple rewritehostport
                            statement &#8211; I was successful in getting the
                            registration to pass through. I.e.
                            Registered my Aastra and X-Lite to port 8080
                            and saw registration in PortaOne.</div>
                          <div><br>
                          </div>
                          <div>I do not want K/SER to do actual auth /
                            registration &#8211; I.e. I do not care who tries
                            to use it &#8211; I want final registration to be
                            PortaOne&#8230; That's why I think the simple
                            rewritehostport worked well. OpenSIPS was
                            not doing any auth &#8211; just simply passing it
                            on.</div>
                          <div><br>
                          </div>
                          <div>Our PortaOne was handling RTP Proxy &#8211; so
                            during an outbound call I was getting 2 way
                            audio &#8211; no problem.</div>
                          <div>However when an inbound call would come
                            in from PortaOne &#8211; it was being delivered to
                            OpenSIPS and looks like Opensips was
                            reporting 401 Unauthorized.</div>
                          <div><br>
                          </div>
                          <div>The Aastra / X-Lite are NAT&#8230; It's
                            possible that either I need to look at
                            nathlper closer &#8211; or that I misconfigured                            something somewhere.</div>
                          <div><br>
                          </div>
                          <div>I guess I'm not fluent enough in the
                            configs and options to get a good config.</div>                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <span>
                            <div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none"><span style="font-weight:bold">From: </span>
                              Reda Aouad &lt;<a href="mailto:reda.aouad@gmail.com" target="_blank">reda.aouad@gmail.com</a>&gt;<br>
                              <span style="font-weight:bold">Reply-To: </span>
                              "SIP Router - Kamailio (OpenSER) and SIP
                              Express Router (SER) - Users Mailing List"
                              &lt;<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>&gt;<br>
                              <span style="font-weight:bold">Date: </span>
                              Fri, 9 Mar 2012 15:45:14 +0100<br>
                              <span style="font-weight:bold">To: </span>
                              "SIP Router - Kamailio (OpenSER) and SIP
                              Express Router (SER) - Users Mailing List"
                              &lt;<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>&gt;<br>
                              <span style="font-weight:bold">Subject: </span>
                              Re: [SR-Users] Proxy Registrations offset
                              port<br>
                            </div>
                            <div><br>
                            </div>
                            <div dir="ltr"><font color="#3366ff"><font><font face="tahoma,sans-serif">Hi Robert,</font></font></font>
                              <div><font color="#3366ff"><font><font face="tahoma,sans-serif"><br>
                                    </font></font></font></div>
                              <div><font color="#3366ff"><font><font face="tahoma,sans-serif">I had the
                                      same feeling about O***sips
                                      community.....</font></font></font></div>
                              <div><font color="#3366ff"><font><font face="tahoma,sans-serif"><br>
                                    </font></font></font></div>
                              <div><font color="#3366ff"><font><font face="tahoma,sans-serif">I have a
                                      similar setup. A proxy that
                                      listens on port other than 5060,
                                      forwarding to other servers on
                                      5060.</font></font></font></div>
                              <div><font color="#3366ff"><font><font face="tahoma,sans-serif">If you
                                      can better define better your
                                      problem with your setup, maybe we
                                      can help you better.</font></font></font></div>
                              <div><font color="#3366ff"><font><font face="tahoma,sans-serif"><br>
                                    </font></font></font></div>
                              <div><font color="#3366ff"><font><font face="tahoma,sans-serif">Is your
                                      server listening only on one port
                                      8080? Is your server behind NAT or
                                      does it have a public IP @ on the
                                      interface it's listening on? What
                                      is the exact problem with inbound
                                      calls? Are you doing record-route?
                                      Do you forward only registrations,
                                      or are your handling invites as
                                      well? What server listens on port
                                      5060? Another Kamailio server?
                                      Does it handle clients behind NAT?</font></font></font></div>
                              <div><font color="#3366ff"><font><font face="tahoma,sans-serif"><br>
                                    </font></font></font></div>
                              <div><font color="#3366ff"><font><font face="tahoma,sans-serif">You
                                      should know that Kamailio is a SIP
                                      server, not a PBX/sofswitch/SBC as
                                      Asterisk or Freeswitch.</font></font></font></div>
                              <div><font color="#3366ff" face="tahoma,sans-serif">If you define
                                  better your problem, and send me your
                                  config file (by private email if you
                                  like), I may look at it.</font></div>
                              <div><font color="#3366ff" face="tahoma,sans-serif"><br>
                                </font></div>
                              <div>
                                <div dir="ltr">
                                  <div><font color="#3366ff" face="tahoma,sans-serif">Reda</font></div>
                                </div>
                                <br>
                                <br>
                                <br>
                                <div class="gmail_quote">On Fri, Mar 9,
                                  2012 at 15:32, Robert <span dir="ltr">&lt;<a href="mailto:robert@inteli-core.com" target="_blank">robert@inteli-core.com</a>&gt;</span>
                                  wrote:<br>
                                  <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                    <div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
                                      <div>I've been playing with
                                        OpenSIPS and am willing to
                                        change over if it means I'll get
                                        a more informed answer from this
                                        community..</div>
                                      <div><br>
                                      </div>
                                      <div>I need to set up a proxy
                                        forwarding server that can
                                        listen on a port other than 5060
                                        &#8211; I.e. 8080 and forward the
                                        registration requests to another
                                        Voip platform we have that is
                                        running on 5060.</div>
                                      <div><br>
                                      </div>
                                      <div>I've been able to this under
                                        OpenSIPS but I'm having issues
                                        with inbound calls. It could be
                                        a NAT issue.</div>
                                      <div><br>
                                      </div>
                                      <div>Basically listen on 8080 &#8211;                                        forward any and all
                                        registrations to x:5060 &#8212; which
                                        I've done using rewritehostport</div>
                                      <div><br>
                                      </div>
                                      <div>Anyone have any good example
                                        configs for this? I'm a n00b at
                                        this OpenSER stuff &#8211; but have                                        been around asterisk /
                                        freeswitch / portaone for a
                                        while.</div>
                                      <div><br>
                                      </div>
                                      <div>Thanks in advance</div>
                                    </div>
                                    <br>
_______________________________________________<br>
                                    SIP Express Router (SER) and
                                    Kamailio (OpenSER) - sr-users
                                    mailing list<br>
                                    <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
                                    <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                                    <br>
                                  </blockquote>
                                </div>
                                <br>
                              </div>
                            </div>
                            _______________________________________________SIP
                            Express Router (SER) and Kamailio (OpenSER)
                            - sr-users mailing list
                            <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></span></div>

                      </blockquote>
                      <blockquote type="cite">
                        <div><span>_______________________________________________</span><br>
                          <span>SIP Express Router (SER) and Kamailio
                            (OpenSER) - sr-users mailing list</span><br>
                          <span><a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a></span><br>
                          <span><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></span><br>
                        </div>
                      </blockquote>
                    </div>
                  </div>
                  _______________________________________________
                  SIP Express Router (SER) and Kamailio (OpenSER) -
                  sr-users mailing list
                  <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></span></div>

            </blockquote>
            <blockquote type="cite">
              <div><span>_______________________________________________</span><br>
                <span>SIP Express Router (SER) and Kamailio (OpenSER) -
                  sr-users mailing list</span><br>
                <span><a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a></span><br>
                <span><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></span><br>
              </div>
            </blockquote>
          </div>
        </div>
        _______________________________________________
        SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
        mailing list
        <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
        <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
      </span>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></pre>
    </blockquote>
    <br>
    </div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">-- 
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
<a href="http://www.asipto.com/index.php/kamailio-advanced-training/" target="_blank">http://www.asipto.com/index.php/kamailio-advanced-training/</a></pre>
  </font></span></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br><br></blockquote></div><br></div></div>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</span></body></html>