Connect the FXS gateway and Freeswitch in local network
Hi all, I am new to Freeswitch and I am trying to connect FXS gateway with Freeswitch. As both devices are on the same LAN I assume that I need to use internal profile. For now I need only to make outbound calls to the gateway. I've tried to send calls to the IP address of the gateway without registration but it's not working. This is my config from dialplan/default/00_name file: <include> <extension name="To PSTN"> <condition field="destination_number" expression="^0111(\d+)$"> <action application="bridge" data="sofia/internal/$1@X.X.X.X:5060" /> </condition> </extension> </include> Is it necessary to register gateway on freeswitch in order to make it working or it is also possible to send calls to IP address of the gateway? Gateway has static IP address. Any help would be appreciated! Thank you Salja
What kind of beast is this gateway? Ismir Saljic <isaljic@gmail.com> wrote:
Hi all,
I am new to Freeswitch and I am trying to connect FXS gateway with Freeswitch. As both devices are on the same LAN I assume that I need to use internal profile. For now I need only to make outbound calls to the gateway. I've tried to send calls to the IP address of the gateway without registration but it's not working. This is my config from dialplan/default/00_name file:
<include> <extension name="To PSTN"> <condition field="destination_number" expression="^0111(\d+)$"> <action application="bridge" data="sofia/internal/$1@X.X.X.X:5060" /> </condition> </extension> </include>
Is it necessary to register gateway on freeswitch in order to make it working or it is also possible to send calls to IP address of the gateway? Gateway has static IP address.
Any help would be appreciated!
Thank you Salja
---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
Hi John, it is Matrix Setu VFX gateway. salja On Mon, Dec 7, 2015 at 8:08 PM, <covici@ccs.covici.com> wrote:
What kind of beast is this gateway?
Ismir Saljic <isaljic@gmail.com> wrote:
Hi all,
I am new to Freeswitch and I am trying to connect FXS gateway with Freeswitch. As both devices are on the same LAN I assume that I need to use internal profile. For now I need only to make outbound calls to the gateway. I've tried to send calls to the IP address of the gateway without registration but it's not working. This is my config from dialplan/default/00_name file:
<include> <extension name="To PSTN"> <condition field="destination_number" expression="^0111(\d+)$"> <action application="bridge" data="sofia/internal/$1@X.X.X.X:5060" /> </condition> </extension> </include>
Is it necessary to register gateway on freeswitch in order to make it working or it is also possible to send calls to IP address of the gateway? Gateway has static IP address.
Any help would be appreciated!
Thank you Salja
---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Enable SIP trace in console sofia profile internal siptrace on try to make a call, and you should see why it's not working On 12/07/2015 09:38 PM, Ismir Saljic wrote:
Hi John,
it is Matrix Setu VFX gateway.
salja
On Mon, Dec 7, 2015 at 8:08 PM, <covici@ccs.covici.com <mailto:covici@ccs.covici.com>> wrote:
What kind of beast is this gateway?
Ismir Saljic <isaljic@gmail.com <mailto:isaljic@gmail.com>> wrote:
> Hi all, > > I am new to Freeswitch and I am trying to connect FXS gateway with > Freeswitch. > As both devices are on the same LAN I assume that I need to use internal > profile. > For now I need only to make outbound calls to the gateway. > I've tried to send calls to the IP address of the gateway without > registration but it's not working. > This is my config from dialplan/default/00_name file: > > <include> > <extension name="To PSTN"> > <condition field="destination_number" expression="^0111(\d+)$"> > <action application="bridge" data="sofia/internal/$1@X.X.X.X:5060" /> > </condition> > </extension> > </include> > > Is it necessary to register gateway on freeswitch in order to make it > working or it is also possible to send calls to IP address of the gateway? > Gateway has static IP address. > > Any help would be appreciated! > > Thank you > Salja > > ---------------------------------------------------- > Alternatives: > > ---------------------------------------------------- > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org <mailto:consulting@freeswitch.org> > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org -- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com <mailto:covici@ccs.covici.com>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Never heard of that one, in one of mine, to make out going call I have to use a different port -- could this be true of yours? Ismir Saljic <isaljic@gmail.com> wrote:
Hi John,
it is Matrix Setu VFX gateway.
salja
On Mon, Dec 7, 2015 at 8:08 PM, <covici@ccs.covici.com> wrote:
What kind of beast is this gateway?
Ismir Saljic <isaljic@gmail.com> wrote:
Hi all,
I am new to Freeswitch and I am trying to connect FXS gateway with Freeswitch. As both devices are on the same LAN I assume that I need to use internal profile. For now I need only to make outbound calls to the gateway. I've tried to send calls to the IP address of the gateway without registration but it's not working. This is my config from dialplan/default/00_name file:
<include> <extension name="To PSTN"> <condition field="destination_number" expression="^0111(\d+)$"> <action application="bridge" data="sofia/internal/$1@X.X.X.X:5060" /> </condition> </extension> </include>
Is it necessary to register gateway on freeswitch in order to make it working or it is also possible to send calls to IP address of the gateway? Gateway has static IP address.
Any help would be appreciated!
Thank you Salja
---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
Thank you both for answers. @Denis, I've check that already and I am getting from gateway SIP response "487 Request Terminated". I've tried from several phones but the same result at the end. In freeswitch logs I have this: 2015-12-07 16:03:40.598709 [DEBUG] sofia.c:6614 Channel sofia/internal/51001@X.X.X.X:5060 entering state [terminated][487] 2015-12-07 16:03:40.598709 [NOTICE] sofia.c:7530 Hangup sofia/internal/51001@X.X.X.X:5060 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL] I can't see SIP CANCEL message at all which is very strange. @John, On gateway I am using default SIP port, but on the freeswitch I am using other port. Will try to change port on gateway. I don't know if I am missing some config because I have only config in dialplan/default folder for sending calls to the gateways IP address. Kind regards, Salja On Mon, Dec 7, 2015 at 10:23 PM, <covici@ccs.covici.com> wrote:
Never heard of that one, in one of mine, to make out going call I have to use a different port -- could this be true of yours?
Ismir Saljic <isaljic@gmail.com> wrote:
Hi John,
it is Matrix Setu VFX gateway.
salja
On Mon, Dec 7, 2015 at 8:08 PM, <covici@ccs.covici.com> wrote:
What kind of beast is this gateway?
Ismir Saljic <isaljic@gmail.com> wrote:
Hi all,
I am new to Freeswitch and I am trying to connect FXS gateway with Freeswitch. As both devices are on the same LAN I assume that I need to use internal profile. For now I need only to make outbound calls to the gateway. I've tried to send calls to the IP address of the gateway without registration but it's not working. This is my config from dialplan/default/00_name file:
<include> <extension name="To PSTN"> <condition field="destination_number" expression="^0111(\d+)$"> <action application="bridge" data="sofia/internal/$1@X.X.X.X :5060" /> </condition> </extension> </include>
Is it necessary to register gateway on freeswitch in order to make it working or it is also possible to send calls to IP address of the gateway? Gateway has static IP address.
Any help would be appreciated!
Thank you Salja
---------------------------------------------------- Alternatives:
----------------------------------------------------
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
covici@ccs.covici.com
-
Denis Papes
-
Ismir Saljic