tks to ur input sergey. <br><br><div class="gmail_quote">On Tue, Sep 13, 2011 at 4:03 PM, Sergey Scheglov <span dir="ltr">&lt;<a href="mailto:sid@eltc.ru">sid@eltc.ru</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;">
В Tue, 13 Sep 2011 15:45:10 +0800<br>
<div class="im">Nandy Dagondon &lt;<a href="mailto:gcd@i.ph">gcd@i.ph</a>&gt; wrote:<br>
<br>
&gt; hi,<br>
&gt;<br>
&gt; if GWX4104 is in your local network, use the internal profile for the<br>
&gt; gateway. register your FXO accounts to receive incoming calls (i<br>
&gt; think you did this already).<br>
&gt;<br>
&gt; to dialout the ports, specify the port number 5060~5063 assuming Port1<br>
&gt; starts at 5060. to dialout via port4, the bridge data should look<br>
&gt; like:<br>
&gt;<br>
&gt; <a href="http://7654321@192.168.0.9:5063" target="_blank">7654321@192.168.0.9:5063</a><br>
&gt;<br>
&gt; hope it helps.<br>
&gt;<br>
&gt; -nandy<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Sep 13, 2011 at 2:49 PM, ocset &lt;<a href="mailto:ocset@the800group.com">ocset@the800group.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt;  Hi<br>
&gt; &gt;<br>
&gt; &gt; I have recently bought a Grandstream GXW4104 (4 FXO ports) and need<br>
&gt; &gt; some help setting up a gateway to call out using the GXW4104. I am<br>
&gt; &gt; really out of my depth here and may be looking at this the wrong<br>
&gt; &gt; way so please bear with me.<br>
&gt; &gt;<br>
&gt; &gt; I followed the advice on this website<br>
</div>&gt; &gt; &quot;<a href="http://www.timhunt.net/wiki/FreeSwitch:GXW4104" target="_blank">http://www.timhunt.net/wiki/FreeSwitch:GXW4104</a>&quot;&lt;<a href="http://www.timhunt.net/wiki/FreeSwitch:GXW4104" target="_blank">http://www.timhunt.net/wiki/FreeSwitch:GXW4104</a>&gt;and<br>

<div><div></div><div class="h5">&gt; &gt; incoming calls from a PSTN line are working great. Now I need to<br>
&gt; &gt; setup a dialplan so that outgoing calls are routed through the same<br>
&gt; &gt; PSTN line on the GXW4104. I will eventually have 4 PSTN lines with<br>
&gt; &gt; a dialplan to use the first available line (if that is possible).<br>
&gt; &gt;<br>
&gt; &gt; According to the FreeSWITCH 1.0.6 book (and many online posts) I<br>
&gt; &gt; need to create a gateway and a dialplan but all the gateway<br>
&gt; &gt; examples are for SIP accounts.<br>
&gt; &gt;<br>
&gt; &gt; So, the gateway definition seems to need a username and password<br>
&gt; &gt; but the GXW4104 does not have that capability. I found this gateway<br>
&gt; &gt; definition in the  freeswitch.xml.fsxml file but am not sure how<br>
&gt; &gt; many of these variables are required.<br>
&gt; &gt;<br>
&gt; &gt; &lt;gateways&gt;<br>
&gt; &gt;    &lt;gateway name=&quot;<a href="http://example.com" target="_blank">example.com</a>&quot;&gt;<br>
&gt; &gt;       &lt;param name=&quot;username&quot; value=&quot;joeuser&quot;/&gt;<br>
&gt; &gt;       &lt;param name=&quot;password&quot; value=&quot;password&quot;/&gt;<br>
&gt; &gt;       &lt;param name=&quot;from-user&quot; value=&quot;joeuser&quot;/&gt;<br>
&gt; &gt;       &lt;param name=&quot;from-domain&quot; value=&quot;<a href="http://example.com" target="_blank">example.com</a>&quot;/&gt;<br>
&gt; &gt;       &lt;param name=&quot;expire-seconds&quot; value=&quot;600&quot;/&gt;<br>
&gt; &gt;       &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;<br>
&gt; &gt;       &lt;param name=&quot;retry-seconds&quot; value=&quot;30&quot;/&gt;<br>
&gt; &gt;       &lt;param name=&quot;extension&quot; value=&quot;5000&quot;/&gt;<br>
&gt; &gt;       &lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;<br>
&gt; &gt;    &lt;/gateway&gt;<br>
&gt; &gt; &lt;/gateways&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; If I define a gateway called &quot;gxw4104&quot;, then this is what I think a<br>
&gt; &gt; simple dialplan should look like but I&#39;m not sure of the gateway<br>
&gt; &gt; details in the &quot;bridge&quot; section of the definition.<br>
&gt; &gt;<br>
&gt; &gt; &lt;extension name=&quot;gxw4104_out&quot;&gt;<br>
&gt; &gt;    &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d{10})$&quot;&gt;<br>
&gt; &gt;       *&lt;action application=&quot;bridge&quot;<br>
&gt; &gt; data=&quot;sofia/gateway/gxw4104/........&quot;/&gt;        (what should this<br>
&gt; &gt; be???)* &lt;/condition&gt;<br>
&gt; &gt; &lt;/extension&gt;<br>
&gt; &gt;<br>
&gt; &gt; Am I moving in the right direction and can someone fill in the<br>
&gt; &gt; blanks for me please<br>
&gt; &gt;<br>
&gt; &gt; Thanks in advance!<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; FreeSWITCH-users mailing list<br>
&gt; &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
<br>
</div></div>As far as I know GXW4104 is used by default the following ports: 5060,<br>
5062, 5064, 5066.<br>
<font color="#888888"><br>
--<br>
Scheglov Sergey<br>
</font><div><div></div><div class="h5"><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>
</div></div></blockquote></div><br>