<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body 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 class="moz-txt-link-rfc2396E" href="http://www.timhunt.net/wiki/FreeSwitch:GXW4104">"http://www.timhunt.net/wiki/FreeSwitch:GXW4104"</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>
<gateways><br>
<gateway name="example.com"><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="example.com"/><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
simple dialplan should look like but I'm not sure of the gateway
details in the "bridge" section of the definition.<br>
<br>
<extension name="gxw4104_out"><br>
<condition field="destination_number"
expression="^(\d{10})$"> <br>
<b><action application="bridge"
data="sofia/gateway/gxw4104/........"/> (what should
this be???)</b><br>
</condition><br>
</extension><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>
</body>
</html>