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"><<a href="mailto:sid@eltc.ru">sid@eltc.ru</a>></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 <<a href="mailto:gcd@i.ph">gcd@i.ph</a>> wrote:<br>
<br>
> hi,<br>
><br>
> if GWX4104 is in your local network, use the internal profile for the<br>
> gateway. register your FXO accounts to receive incoming calls (i<br>
> think you did this already).<br>
><br>
> to dialout the ports, specify the port number 5060~5063 assuming Port1<br>
> starts at 5060. to dialout via port4, the bridge data should look<br>
> 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>
> On Tue, Sep 13, 2011 at 2:49 PM, ocset <<a href="mailto:ocset@the800group.com">ocset@the800group.com</a>> wrote:<br>
><br>
> > Hi<br>
> ><br>
> > I have recently bought a Grandstream GXW4104 (4 FXO ports) and need<br>
> > some help setting up a gateway to call out using the GXW4104. I am<br>
> > really out of my depth here and may be looking at this the wrong<br>
> > way so please bear with me.<br>
> ><br>
> > I followed the advice on this website<br>
</div>> > "<a href="http://www.timhunt.net/wiki/FreeSwitch:GXW4104" target="_blank">http://www.timhunt.net/wiki/FreeSwitch:GXW4104</a>"<<a href="http://www.timhunt.net/wiki/FreeSwitch:GXW4104" target="_blank">http://www.timhunt.net/wiki/FreeSwitch:GXW4104</a>>and<br>
<div><div></div><div class="h5">> > incoming calls from a PSTN line are working great. Now I need to<br>
> > setup a dialplan so that outgoing calls are routed through the same<br>
> > PSTN line on the GXW4104. I will eventually have 4 PSTN lines with<br>
> > 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<br>
> > need to create a gateway and a dialplan but all the gateway<br>
> > examples are for SIP accounts.<br>
> ><br>
> > So, the gateway definition seems to need a username and password<br>
> > but the GXW4104 does not have that capability. I found this gateway<br>
> > definition in the freeswitch.xml.fsxml file but am not sure how<br>
> > many of these variables are required.<br>
> ><br>
> > <gateways><br>
> > <gateway name="<a href="http://example.com" target="_blank">example.com</a>"><br>
> > <param name="username" value="joeuser"/><br>
> > <param name="password" value="password"/><br>
> > <param name="from-user" value="joeuser"/><br>
> > <param name="from-domain" value="<a href="http://example.com" target="_blank">example.com</a>"/><br>
> > <param name="expire-seconds" value="600"/><br>
> > <param name="register" value="false"/><br>
> > <param name="retry-seconds" value="30"/><br>
> > <param name="extension" value="5000"/><br>
> > <param name="context" value="public"/><br>
> > </gateway><br>
> > </gateways><br>
> ><br>
> ><br>
> > If I define a gateway called "gxw4104", then this is what I think a<br>
> > simple dialplan should look like but I'm not sure of the gateway<br>
> > details in the "bridge" section of the definition.<br>
> ><br>
> > <extension name="gxw4104_out"><br>
> > <condition field="destination_number" expression="^(\d{10})$"><br>
> > *<action application="bridge"<br>
> > data="sofia/gateway/gxw4104/........"/> (what should this<br>
> > be???)* </condition><br>
> > </extension><br>
> ><br>
> > Am I moving in the right direction and can someone fill in the<br>
> > blanks for me please<br>
> ><br>
> > Thanks in advance!<br>
> ><br>
> ><br>
> ><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>
> ><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>