<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    From what they're saying, they want all traffic to go to
    nat.babytel.ca:5065, so proxy will need to be set to this as well or
    it will default to sip.babytel.ca.<br>
    <br>
    They also want the realm set, so this would also apply:<br>
    <br>
    &lt;param name="realm" value="sip.babytel.ca"/&gt;<br>
    <br>
    But since the gateway name is also set to this, it isn't needed,
    neither is from-domain. There is an inheritance path :<br>
    <br>
    gateway name --&gt; realm --&gt; from-domain<br>
    <br>
    So setting proxy and register-proxy to nat.babytel.ca:5065 and
    leaving the rest blank should be enough.<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 13/01/2014 3:34 AM, Jeff Leung
      wrote:<br>
    </div>
    <blockquote
cite="mid:A70AC0C1B7E7FD478A6BF19705461AA0014AE4@IMBER.smb.curriegrad2004.ca"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas","serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">What

            Babytel is trying to say is &#8220;Register your endpoints to
            nat.babytel.ca at port 5065, but register as domain
            sip.babytel.ca&#8221; if that&#8217;s what they&#8217;re trying to say.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">And

            if I can remember correctly, register-proxy only forces it
            to register to a specific SIP proxy/gateway box, so I&#8217;d put
            in a register-proxy value of nat.babytel.ca:5065 and leave
            proxy blank for now.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">If

            all else fails, perform a SIP trace to see what&#8217;s really
            going on.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <div style="border:none;border-left:solid blue 1.5pt;padding:0in
          0in 0in 4.0pt">
          <div>
            <div style="border:none;border-top:solid #B5C4DF
              1.0pt;padding:3.0pt 0in 0in 0in">
              <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
                  <a class="moz-txt-link-abbreviated"
                    href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>
                  [<a class="moz-txt-link-freetext"
                    href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]
                  <b>On Behalf Of </b>Ian McMaster<br>
                  <b>Sent:</b> Sunday, January 12, 2014 09:26<br>
                  <b>To:</b> <a class="moz-txt-link-abbreviated"
                    href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
                  <b>Subject:</b> [Freeswitch-users] Gateway Issues<o:p></o:p></span></p>
            </div>
          </div>
          <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
          <div>
            <p class="MsoNormal">My provider is Babytel, in Canada.<o:p></o:p></p>
            <div>
              <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            </div>
            <div>
              <p class="MsoNormal">I am switching from Asterisk to
                Freeswitch. &nbsp;In Asterisk, I have the registration
                working. &nbsp;Porting to Freeswitch it is not clear to
                achieve:<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Note from Babytel:<o:p></o:p></p>
            </div>
            <div>
              <div>
                <p class="MsoNormal">" Please note that babyTEL requires
                  the use of the Outbound-Proxy feature now available in
                  most new Asterisk versions. Also all SIP messages must
                  be sent to the outbound proxy server <a
                    moz-do-not-send="true" href="http://nat.babytel.ca">nat.babytel.ca</a>
                  to UDP port 5065, but the Domain/Realm must remain <a
                    moz-do-not-send="true" href="http://sip.babytel.ca">sip.babytel.ca</a>
                  in the SIP headers. "<o:p></o:p></p>
              </div>
            </div>
            <div>
              <p class="MsoNormal"><a moz-do-not-send="true"
href="http://ca.babytel.net/wp-content/manuals/Asterisk_babyTEL_Configuration_Guide_%28V1.2%29.pdf">http://ca.babytel.net/wp-content/manuals/Asterisk_babyTEL_Configuration_Guide_(V1.2).pdf</a><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            </div>
            <div>
              <p class="MsoNormal">I have tried to use "register-proxy",
                but the "proxy" seems to be used instead when
                registering<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">(sofia status shows data: &nbsp;<a
                  moz-do-not-send="true"
                  href="http://sip:16477240904@nat.babytel.ca:5065">sip:16477240904@nat.babytel.ca:5065</a>).<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Here is the profile I am using, but
                is not registering (not using <a moz-do-not-send="true"
                  href="http://sip.babytel.ca:5060">sip.babytel.ca:5060</a>):<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            </div>
            <div>
              <pre>&lt;include&gt;<o:p></o:p></pre>
              <pre>&nbsp;&nbsp; &lt;gateway name="<a moz-do-not-send="true" href="http://sip.babytel.ca">sip.babytel.ca</a>"&gt;<o:p></o:p></pre>
              <pre>&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="username" value="16477270904"/&gt;<o:p></o:p></pre>
              <pre>&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="auth-username" value="16477270904"/&gt;<o:p></o:p></pre>
              <pre>&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="from-user" value="16477270904"/<o:p></o:p></pre>
              <pre>&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="from-domain" value="<a moz-do-not-send="true" href="http://sip.babytel.ca">sip.babytel.ca</a>"/&gt;<o:p></o:p></pre>
              <pre>&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="password" value="xxxxxxx"/&gt;<o:p></o:p></pre>
              <pre>&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="extension" value="16477270904"/&gt;<o:p></o:p></pre>
              <pre>&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="proxy" value="<a moz-do-not-send="true" href="http://nat.babytel.ca:5065">nat.babytel.ca:5065</a>"/&gt;<o:p></o:p></pre>
              <pre>&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="register-proxy" value="<a moz-do-not-send="true" href="http://sip.babytel.ca">sip.babytel.ca</a>:<span style="color:red">5060</span>"/&gt;<o:p></o:p></pre>
              <pre>&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="register" value="true"/&gt;<o:p></o:p></pre>
              <pre>&nbsp;&nbsp; &lt;/gateway&gt;<o:p></o:p></pre>
              <pre>&lt;/include&gt;<o:p></o:p></pre>
            </div>
            <div>
              <p class="MsoNormal">Any help would be most appreciated.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Thank you,<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Ian.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>