[Freeswitch-users] GXW4104 gateway setup for outgoing calls

ocset ocset at the800group.com
Tue Sep 13 14:59:56 MSD 2011


Ok, I have not added any new gateway but added a file called 
02_gxw4104.xml into the dialplan/defaults directory with the following 
content:

<include>
<extension name="To PSTN">
<condition field="destination_number" expression="(.*)">
<action application="bridge" 
data="sofia/internal/${destination_number}@[192.168.0.160]:5060" />
</condition>
</extension>
</include>

When I dial 1234567890, FS sees the extension but then just hangs up 
with the following log output.

2011-09-13 18:51:29.299942 [NOTICE] switch_channel.c:669 New Channel 
sofia/internal/1003 at 192.168.0.23 [9af4207f-2e03-4d6e-8aeb-16b063ecf30a]
2011-09-13 18:51:29.331835 [INFO] mod_dialplan_xml.c:418 Processing 
User1->1234567890 in context default
2011-09-13 18:51:29.343016 [NOTICE] switch_channel.c:669 New Channel 
sofia/internal/1234567890@[192.168.0.160]:5060 
[f9106a7a-c25a-434f-bac1-599a0ad71333]
2011-09-13 18:51:29.792807 [NOTICE] sofia.c:4789 Hangup 
sofia/internal/1234567890@[192.168.0.160]:5060 [CS_CONSUME_MEDIA] 
[NORMAL_TEMPORARY_FAILURE]
2011-09-13 18:51:29.792807 [INFO] mod_dptools.c:2355 Originate Failed.  
Cause: NORMAL_TEMPORARY_FAILURE
2011-09-13 18:51:29.792807 [NOTICE] mod_dptools.c:2418 Hangup 
sofia/internal/1003 at 192.168.0.23 [CS_EXECUTE] [NORMAL_TEMPORARY_FAILURE]
2011-09-13 18:51:29.836129 [NOTICE] switch_core_session.c:1182 Session 
29 (sofia/internal/1003 at 192.168.0.23) Ended
2011-09-13 18:51:29.836129 [NOTICE] switch_core_session.c:1184 Close 
Channel sofia/internal/1003 at 192.168.0.23 [CS_DESTROY]
2011-09-13 18:51:29.836129 [NOTICE] switch_core_session.c:1182 Session 
30 (sofia/internal/1234567890@[192.168.0.160]:5060) Ended
2011-09-13 18:51:29.836129 [NOTICE] switch_core_session.c:1184 Close 
Channel sofia/internal/1234567890@[192.168.0.160]:5060 [CS_DESTROY]

What am I missing?
Thanks


On 09/13/2011 06:10 PM, ocset wrote:
> Hi Nandy
>
> Thanks for your reply. I assume 192.168.0.9 in your example is the IP 
> address of the GXW4104?
>
> Some more questions
>
> 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?
>
> 2. Does that mean I don't define a new gateway in FreeSWITCH?
>
> 3. In your example, you said the bridge data would be 
> 7654321 at 192.168.0.9:5063. What would the whole line look like in the 
> dialplan?*
>
> <action application="bridge" 
> data="sofia/gateway/7654321 at 192.168.0.9:5063**"/>*
>
> Still very confused :-)
>
> Thanks
>
> On 09/13/2011 03:45 PM, Nandy Dagondon wrote:
>> hi,
>>
>> 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).
>>
>> 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:
>>
>> 7654321 at 192.168.0.9:5063 <http://7654321@192.168.0.9:5063>
>>
>> hope it helps.
>>
>> -nandy
>>
>>
>> On Tue, Sep 13, 2011 at 2:49 PM, ocset <ocset at the800group.com 
>> <mailto:ocset at the800group.com>> wrote:
>>
>>     Hi
>>
>>     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.
>>
>>     I followed the advice on this website
>>     "http://www.timhunt.net/wiki/FreeSwitch:GXW4104"
>>     <http://www.timhunt.net/wiki/FreeSwitch:GXW4104> 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).
>>
>>     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.
>>
>>     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.
>>
>>     <gateways>
>>     <gateway name="example.com <http://example.com>">
>>     <param name="username" value="joeuser"/>
>>     <param name="password" value="password"/>
>>     <param name="from-user" value="joeuser"/>
>>     <param name="from-domain" value="example.com <http://example.com>"/>
>>     <param name="expire-seconds" value="600"/>
>>     <param name="register" value="false"/>
>>     <param name="retry-seconds" value="30"/>
>>     <param name="extension" value="5000"/>
>>     <param name="context" value="public"/>
>>     </gateway>
>>     </gateways>
>>
>>
>>     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.
>>
>>     <extension name="gxw4104_out">
>>     <condition field="destination_number" expression="^(\d{10})$">
>>     *<action application="bridge"
>>     data="sofia/gateway/gxw4104/........"/>        (what should this
>>     be???)*
>>     </condition>
>>     </extension>
>>
>>     Am I moving in the right direction and can someone fill in the
>>     blanks for me please
>>
>>     Thanks in advance!
>>
>>
>>
>>
>>     FreeSWITCH-users mailing list
>>     FreeSWITCH-users at lists.freeswitch.org
>>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>     http://www.freeswitch.org
>>
>>
>>
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110913/0acfbc71/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list