i inserted my answers to your questions below. for point #3), here&#39;s an example how i configured my FXO port of ht503.<br><br>included in  sip_profile/internal:<br>&lt;include&gt;<br>  &lt;gateway name=&quot;ht503-fxo&quot;&gt;<br>
  &lt;param name=&quot;username&quot; value=&quot;1019&quot;/&gt;   &lt;-- it&#39;s registered to receive incoming calls<br>  &lt;param name=&quot;realm&quot; value=&quot;192.168.0.9&quot;/&gt;<br>  &lt;param name=&quot;sip-port&quot; value=&quot;5062&quot;/&gt;   &lt;-- port 5060 is set to the FXS port<br>
  &lt;param name=&quot;password&quot; value=&quot;1234&quot;/&gt;<br>  &lt;param name=&quot;rtp_ip&quot; value=&quot;192.168.0.9&quot;/&gt;<br>  &lt;param name=&quot;dtmf-type&quot; value=&quot;rfc2833&quot;/&gt;<br>  &lt;param name=&quot;expire-seconds&quot; value=&quot;600&quot;/&gt;<br>
  &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;<br>  &lt;param name=&quot;caller-id-in-from&quot; value=&quot;false&quot;/&gt;<br>  &lt;/gateway&gt;<br>&lt;/include&gt;<br><br>included  in dialplan/default<br>
<br>&lt;include&gt;<br>  &lt;extension name=&quot;ht503-fxo-local&quot;&gt;<br>    &lt;condition field=&quot;${toll_allow}&quot; expression=&quot;local&quot;/&gt;<br>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^9([2-9]\d{6})$&quot;&gt;<br>
    &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_number=0321234567&quot;/&gt;<br>    &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_name=ThisIsMy Company&quot;/&gt;<br>    &lt;action application=&quot;set&quot; data=&quot;ignore_early_media=ring_ready&quot;/&gt;    <br>
    &lt;action application=&quot;set&quot; data=&quot;ringback=${us-ring}&quot;/&gt;<br>      &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/ht503-fxo/$<a href="http://1@192.168.0.9:5062">1@192.168.0.9:5062</a>&quot;/&gt;<br>
    &lt;/condition&gt;<br>  &lt;/extension&gt;<br>&lt;/include&gt;<br><br>it looks you can create 4 internal gateways for the every port, fxo-1 to fxo-4, w/ the same realm/rtp_ip values but setting different sip-port values. then  your bridge app would be:<br>
<br>      &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/fxo-1/$1|sofia/gateway/fxo-2/$1|sofia/gateway/fxo-3/$1sofia/gateway/fxo-4/$1&quot;/&gt;<br><br>if u want to dialout any free port.<br><br>i haven&#39;t tested the above. just try it. i hope it works.<br>

<br>-nandy<br>
<br><br><div class="gmail_quote">On Tue, Sep 13, 2011 at 6:10 PM, ocset <span dir="ltr">&lt;<a href="mailto:ocset@the800group.com">ocset@the800group.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

  
    
  
  <div>
    Hi Nandy<br>
    <br>
    Thanks for your reply. I assume 192.168.0.9 in your example is the
    IP address of the GXW4104? <br></div></blockquote><div>yes.  <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div> 
    <br></div></blockquote><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div bgcolor="#FFFFFF" text="#000000">
    Some more questions<br>
    <br>
    1. When you say port number, is this something I should be setting
    up on the GXW4104 so that it is listening on those 4 port numbers?
    If yes, what would be the setting I am looking for?<br></div></blockquote><div>not for every port. the gateway has a base port number e.g. 5060 for port#1. add 2 to the subsequent ports e.g. 5062 for port#2 and so on. this is pointed out by sergey. <br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>
    <br>
    2. Does that mean I don&#39;t define a new gateway in FreeSWITCH?<br></div></blockquote><div>it&#39;s an option. but defining a gateway is cleaner.<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div> 
    <br></div></blockquote><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div bgcolor="#FFFFFF" text="#000000">
    3. In your example, you said the bridge data would be
    <a href="mailto:7654321@192.168.0.9:5063" target="_blank">7654321@192.168.0.9:5063</a>. What would the whole line look like in the
    dialplan?<b><br>
      <br>
      &lt;action application=&quot;bridge&quot;
      data=&quot;<a href="mailto:sofia/gateway/7654321@192.168.0.9:5063" target="_blank">sofia/gateway/7654321@192.168.0.9:5063</a></b><a href="http://7654321@192.168.0.9:5063" target="_blank"></a><b>&quot;/&gt;</b><br>
    <br>
    Still very confused :-)<br>
    <br>
    Thanks<div><div></div><div class="h5"><br>
    <br>
    On 09/13/2011 03:45 PM, Nandy Dagondon wrote:
    <blockquote type="cite">hi,<br>
      <br>
      if GWX4104 is in your local network, use the internal profile for
      the gateway. register your FXO accounts to receive incoming calls
      (i think you did this already). <br>
      <br>
      to dialout the ports, specify the port number 5060~5063 assuming
      Port1 starts at 5060. to dialout via port4, the bridge data should
      look like:<br>
      <br>
      <a href="http://7654321@192.168.0.9:5063" target="_blank">7654321@192.168.0.9:5063</a><br>
      <br>
      hope it helps.<br>
      <br>
      -nandy<br>
      <br>
      <br>
      <div class="gmail_quote">On Tue, Sep 13, 2011 at 2:49 PM, ocset <span dir="ltr">&lt;<a href="mailto:ocset@the800group.com" target="_blank">ocset@the800group.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
          <div bgcolor="#FFFFFF" text="#000000"> Hi<br>
            <br>
            I have recently bought a Grandstream GXW4104 (4 FXO ports)
            and need some help setting up a gateway to call out using
            the GXW4104. I am really out of my depth here and may be
            looking at this the wrong way so please bear with me.<br>
            <br>
            I followed the advice on this website <a href="http://www.timhunt.net/wiki/FreeSwitch:GXW4104" target="_blank">&quot;http://www.timhunt.net/wiki/FreeSwitch:GXW4104&quot;</a>
            and incoming calls from a PSTN line are working great. Now I
            need to setup a dialplan so that outgoing calls are routed
            through the same PSTN line on the GXW4104. I will eventually
            have 4 PSTN lines with a dialplan to use the first available
            line (if that is possible).<br>
            <br>
            According to the FreeSWITCH 1.0.6 book (and many online
            posts) I need to create a gateway and a dialplan but all the
            gateway examples are for SIP accounts. <br>
            <br>
            So, the gateway definition seems to need a username and
            password but the GXW4104 does not have that capability. I
            found this gateway definition in the  freeswitch.xml.fsxml
            file but am not sure how many of these variables are
            required.<br>
            <br>
            &lt;gateways&gt;<br>
               &lt;gateway name=&quot;<a href="http://example.com" target="_blank">example.com</a>&quot;&gt;<br>
                  &lt;param name=&quot;username&quot; value=&quot;joeuser&quot;/&gt;<br>
                  &lt;param name=&quot;password&quot; value=&quot;password&quot;/&gt;<br>
                  &lt;param name=&quot;from-user&quot; value=&quot;joeuser&quot;/&gt;<br>
                  &lt;param name=&quot;from-domain&quot; value=&quot;<a href="http://example.com" target="_blank">example.com</a>&quot;/&gt;<br>
                  &lt;param name=&quot;expire-seconds&quot; value=&quot;600&quot;/&gt;<br>
                  &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;<br>
                  &lt;param name=&quot;retry-seconds&quot; value=&quot;30&quot;/&gt;<br>
                  &lt;param name=&quot;extension&quot; value=&quot;5000&quot;/&gt;<br>
                  &lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;<br>
               &lt;/gateway&gt;<br>
            &lt;/gateways&gt;<br>
            <br>
            <br>
            If I define a gateway called &quot;gxw4104&quot;, then this is what I
            think a simple dialplan should look like but I&#39;m not sure of
            the gateway details in the &quot;bridge&quot; section of the
            definition.<br>
             <br>
            &lt;extension name=&quot;gxw4104_out&quot;&gt;<br>
               &lt;condition field=&quot;destination_number&quot;
            expression=&quot;^(\d{10})$&quot;&gt;        <br>
                  <b>&lt;action application=&quot;bridge&quot;
              data=&quot;sofia/gateway/gxw4104/........&quot;/&gt;        (what
              should this be???)</b><br>
               &lt;/condition&gt;<br>
            &lt;/extension&gt;<br>
            <br>
            Am I moving in the right direction and can someone fill in
            the blanks for me please<br>
            <br>
            Thanks in advance!<br>
            <br>
            <br>
          </div>
          <br>
          <br>
          FreeSWITCH-users mailing list<br>
          <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
          <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
          UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
          <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
          <br>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
    </blockquote>
  </div></div></div>

<br><br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>