Patton FXO configuration on Freeswitch - more details
Hi all! We're trying to configure a Patton FXO in our Freeswitch. We have an internal PBX - Freeswitch 1.3.6 installed from svn master with (demo) setup on IP 10.0.1.190 - Patton 4112 with simple config on IP 10.0.1.10 Find more info below. So any help would be great! We set it up that the Patton registers with the PBX and we get the error: --------------------- 2013-01-25 16:44:39.433873 [WARNING] sofia_reg.c:2469 Can't find user [fxo0_3_0@10.0.1.190] You must define a domain called '10.0.1.190' in your directory and add a user with the id="fxo0_3_0" attribute and you must configure your device to use the proper domain in it's authentication credentials. --------------------- We defined a gateway in conf/sip_profiles/external/fxo.xml: --------------------- <include> <gateway name="10.0.1.190">--> <param name="username" value="fxo0_3_0"/> <param name="password" value="fxo0_3_0"/> <param name="register" value="false"/> </gateway> </include> --------------------- And the relevant parts of the Patton config: --------------------- # define auth authentication-service authenticate username fxo0_3_0 password gtatFAePDQFL0btl3cbsaA== encrypted # patton registers location-service LOCATION_FXO_3_0 domain 1 10.0.1.190 5060 identity-group group_fxo0_3_0 authentication outbound authenticate 1 authentication-service authenticate username fxo0_3_0 identity fxo0_3_0 authentication outbound authenticate 1 authentication-service authenticate username fxo0_3_0 registration outbound registrar 10.0.1.190 5060 lifetime 180 register auto retry-timeout on-system-error 10 retry-timeout on-client-error 10 retry-timeout on-server-error 10 call outbound use profile tone-set IT use profile voip default use profile sip default preferred-transport-protocol tcp traffic-class local-default invite-transaction-timeout 32 non-invite-transaction-timeout 32 penalty-box call inbound use profile tone-set IT use profile voip default use profile sip default context sip-gateway ASISTAR_3_0 interface fxo0_3_0 bind interface eth0 context router port 5060 context sip-gateway ASISTAR_3_0 bind location-service LOCATION_FXO_3_0 no shutdown --------------------- Output from 'sofia status' --------------------- external::10.0.1.10 gateway sip:fxo0_3_0@10.0.1.10 NOREG Thanks, Alessio
Alessio, That "error" is just explaining to you that the caller does not have an entry in the XML directory, therefore there's no way to perform authentication. You'll need to create a user with the ID mentioned in the error message and then set the password in there as well as in the Patton. (I've never done a Patton set up but I've done several other analog gateway devices.) Hope this helps. -Michael On Fri, Jan 25, 2013 at 7:55 AM, Alessio <alessio@asistar.it> wrote:
Hi all!
We're trying to configure a Patton FXO in our Freeswitch.
We have an internal PBX - Freeswitch 1.3.6 installed from svn master with (demo) setup on IP 10.0.1.190 - Patton 4112 with simple config on IP 10.0.1.10
Find more info below. So any help would be great!
We set it up that the Patton registers with the PBX and we get the error:
--------------------- 2013-01-25 16:44:39.433873 [WARNING] sofia_reg.c:2469 Can't find user [fxo0_3_0@10.0.1.190] You must define a domain called '10.0.1.190' in your directory and add a user with the id="fxo0_3_0" attribute and you must configure your device to use the proper domain in it's authentication credentials. ---------------------
We defined a gateway in conf/sip_profiles/external/fxo.xml: --------------------- <include> <gateway name="10.0.1.190">--> <param name="username" value="fxo0_3_0"/> <param name="password" value="fxo0_3_0"/> <param name="register" value="false"/> </gateway> </include> ---------------------
And the relevant parts of the Patton config: --------------------- # define auth authentication-service authenticate username fxo0_3_0 password gtatFAePDQFL0btl3cbsaA== encrypted
# patton registers location-service LOCATION_FXO_3_0 domain 1 10.0.1.190 5060 identity-group group_fxo0_3_0 authentication outbound authenticate 1 authentication-service authenticate username fxo0_3_0 identity fxo0_3_0 authentication outbound authenticate 1 authentication-service authenticate username fxo0_3_0
registration outbound registrar 10.0.1.190 5060 lifetime 180 register auto retry-timeout on-system-error 10 retry-timeout on-client-error 10 retry-timeout on-server-error 10
call outbound use profile tone-set IT use profile voip default use profile sip default preferred-transport-protocol tcp traffic-class local-default invite-transaction-timeout 32 non-invite-transaction-timeout 32 penalty-box
call inbound use profile tone-set IT use profile voip default use profile sip default
context sip-gateway ASISTAR_3_0 interface fxo0_3_0 bind interface eth0 context router port 5060
context sip-gateway ASISTAR_3_0 bind location-service LOCATION_FXO_3_0 no shutdown
--------------------- Output from 'sofia status' ---------------------
external::10.0.1.10 gateway sip:fxo0_3_0@10.0.1.10 NOREG
Thanks, Alessio
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
Nella citazione in data venerdì 25 gennaio 2013 20:17:36, Michael Collins ha scritto:
Alessio,
That "error" is just explaining to you that the caller does not have an entry in the XML directory, therefore there's no way to perform authentication. You'll need to create a user with the ID mentioned in the error message and then set the password in there as well as in the Patton. (I've never done a Patton set up but I've done several other analog gateway devices.)
Hope this helps.
-Michael
On Fri, Jan 25, 2013 at 7:55 AM, Alessio <alessio@asistar.it <mailto:alessio@asistar.it>> wrote:
Hi all!
We're trying to configure a Patton FXO in our Freeswitch.
We have an internal PBX - Freeswitch 1.3.6 installed from svn master with (demo) setup on IP 10.0.1.190 - Patton 4112 with simple config on IP 10.0.1.10
Find more info below. So any help would be great!
We set it up that the Patton registers with the PBX and we get the error:
--------------------- 2013-01-25 16:44:39.433873 [WARNING] sofia_reg.c:2469 Can't find user [fxo0_3_0@10.0.1.190 <mailto:fxo0_3_0@10.0.1.190>] You must define a domain called '10.0.1.190' in your directory and add a user with the id="fxo0_3_0" attribute and you must configure your device to use the proper domain in it's authentication credentials. ---------------------
We defined a gateway in conf/sip_profiles/external/fxo.xml: --------------------- <include> <gateway name="10.0.1.190">--> <param name="username" value="fxo0_3_0"/> <param name="password" value="fxo0_3_0"/> <param name="register" value="false"/> </gateway> </include> ---------------------
And the relevant parts of the Patton config: --------------------- # define auth authentication-service authenticate username fxo0_3_0 password gtatFAePDQFL0btl3cbsaA== encrypted
# patton registers location-service LOCATION_FXO_3_0 domain 1 10.0.1.190 5060 identity-group group_fxo0_3_0 authentication outbound authenticate 1 authentication-service authenticate username fxo0_3_0 identity fxo0_3_0 authentication outbound authenticate 1 authentication-service authenticate username fxo0_3_0
registration outbound registrar 10.0.1.190 5060 lifetime 180 register auto retry-timeout on-system-error 10 retry-timeout on-client-error 10 retry-timeout on-server-error 10
call outbound use profile tone-set IT use profile voip default use profile sip default preferred-transport-protocol tcp traffic-class local-default invite-transaction-timeout 32 non-invite-transaction-timeout 32 penalty-box
call inbound use profile tone-set IT use profile voip default use profile sip default
context sip-gateway ASISTAR_3_0 interface fxo0_3_0 bind interface eth0 context router port 5060
context sip-gateway ASISTAR_3_0 bind location-service LOCATION_FXO_3_0 no shutdown
--------------------- Output from 'sofia status' ---------------------
external::10.0.1.10 gateway sip:fxo0_3_0@10.0.1.10 <mailto:sip%3Afxo0_3_0@10.0.1.10> NOREG
Thanks, Alessio
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Hi Michael, thanks for the reply. So if I register in directory as a phone how do I get out of the gateway, for example through a bridge? Alessio
Hi Michael, thanks for the reply.
So if I register in directory as a phone how do I get out of the gateway, for example through a bridge?
Alessio
User directory is for inbound registrations and SIP auth challenges for devices connecting to the CudaTel. Gateways are the opposite - they are for auth challenges and registrations going from the CudaTel to other devices. To dial out a gateway you just use the syntax: <action application="bridge" data="sofia/gateway/gateway_name/${phone_number_to_send_to_gateway}"/> -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
Nella citazione in data lunedì 28 gennaio 2013 19:43:12, Michael Collins ha scritto:
Hi Michael, thanks for the reply.
So if I register in directory as a phone how do I get out of the gateway, for example through a bridge?
Alessio
User directory is for inbound registrations and SIP auth challenges for devices connecting to the CudaTel. Gateways are the opposite - they are for auth challenges and registrations going from the CudaTel to other devices. To dial out a gateway you just use the syntax:
<action application="bridge" data="sofia/gateway/gateway_name/${phone_number_to_send_to_gateway}"/>
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
So for incoming calls and recording to the PBX should I configure FXO in conf/directory. To make outgoing calls through the FXO I configure a gateway in conf/sip_profile. Is that correct? If so, how do I configure the gateway? Thank you, Alessio
Nella citazione in data martedì 29 gennaio 2013 10:05:13, Alessio ha scritto:
Nella citazione in data lunedì 28 gennaio 2013 19:43:12, Michael Collins ha scritto:
Hi Michael, thanks for the reply.
So if I register in directory as a phone how do I get out of the gateway, for example through a bridge?
Alessio
User directory is for inbound registrations and SIP auth challenges for devices connecting to the CudaTel. Gateways are the opposite - they are for auth challenges and registrations going from the CudaTel to other devices. To dial out a gateway you just use the syntax:
<action application="bridge" data="sofia/gateway/gateway_name/${phone_number_to_send_to_gateway}"/>
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
So for incoming calls and recording to the PBX should I configure FXO in conf/directory. To make outgoing calls through the FXO I configure a gateway in conf/sip_profile.
Is that correct?
If so, how do I configure the gateway?
Thank you, Alessio
Hi all! I've solved! For the gateway registration you need to configure a user: <user id="fxo1"> <params> <param name="password" value="fxo1"/> </params> <variables> <variable name="accountcode" value="fxo1"/> <variable name="toll_allow" value="domestic,local,international" /> </variables> </user> And to make outbound call you need to configure an internal gateway: <gateway name="fxo1"> <param name="register" value="false"/> <param name="proxy" value="192.168.0.5"/> <param name="sip-port" value="5060"/> <param name="caller-id-in-from" value="true" /> </gateway> The FXO works fine. Thanks!
participants (2)
-
Alessio
-
Michael Collins