Patton 4114 FXS gateway

Discussion in '3CX Phone System - General' started by llbol, Jan 28, 2009.

Thread Status:
Not open for further replies.
  1. llbol

    Joined:
    Jan 22, 2009
    Messages:
    2
    Likes Received:
    0
    I am looking for a config for a patton 4114 FXS gateway.
    Does anyone has an example for me?

    Regards,

    Laurens
     
  2. William400

    William400 Well-Known Member

    Joined:
    Aug 21, 2006
    Messages:
    1,005
    Likes Received:
    0
    HI

    We do not have one at this stage, however we shall put this on the Wiki once he have something at hand.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Minik

    Joined:
    Oct 9, 2008
    Messages:
    6
    Likes Received:
    0
    Hi,
    Here's an example of configuration file. You have to fill in the <...> with your own ip adresses, phone number and passwords.
    In 3cxphonesystem, don't create a Pstn gateway. You just need to create the fxs extensions, as if it were SIP phones.
    I installed five SN4118JS, and it works fine.
    Hope it is helpfull.
    Regards
    Dominique

    Note : in the R5.2 release, the commands are different. This configuration file doesn't work in R5.2...

    #################################################
    # Configuration file for Patton SN4114JS (FXS) R4.2 #
    #################################################

    cli version 3.20
    webserver port 80 language en
    sntp-client
    sntp-client server primary <sntp1 ip address> port 123 version 4
    sntp-client server secondary <sntp2 ip address> port 123 version 4

    system

    ic voice 0
    low-bitrate-codec g729

    profile ppp default

    profile call-progress-tone defaultDialtone
    play 1 1000 440 0

    profile call-progress-tone defaultAlertingtone
    play 1 1500 440 -7
    pause 2 3500

    profile call-progress-tone defaultBusytone
    play 1 500 440 -7
    pause 2 500

    profile tone-set default

    profile voip default
    codec 1 g711alaw64k rx-length 20 tx-length 20
    codec 2 g711ulaw64k rx-length 20 tx-length 20
    fax transmission 1 relay t38-udp

    profile pstn default

    profile sip default

    profile aaa default
    method 1 local
    method 2 none

    context ip router

    interface IF_IP_LAN
    ipaddress <Gateway ip address> <Lan ip mask>
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

    context cs switch
    no digit-collection timeout

    routing-table called-e164 Table1
    route .%T3 dest-interface IF_SIP_0


    routing-table called-e164 Table2
    route .%T3 dest-interface IF_SIP_1


    routing-table called-e164 Table3
    route .%T3 dest-interface IF_SIP_2


    routing-table called-e164 Table4
    route .%T3 dest-interface IF_SIP_3


    interface sip IF_SIP_0
    bind gateway GW_SIP_0
    service default
    route call dest-interface IF_FXS_0
    remote <3cx serveur ip address>
    early-connect
    early-disconnect
    address-translation outgoing-call from-header user-part fix <USER1 phone number> host-part call

    interface sip IF_SIP_1
    bind gateway GW_SIP_1
    service default
    route call dest-interface IF_FXS_1
    remote <3cx serveur ip address>
    early-connect
    early-disconnect
    address-translation outgoing-call from-header user-part fix <USER2 phone number> host-part call

    interface sip IF_SIP_2
    bind gateway GW_SIP_2
    service default
    route call dest-interface IF_FXS_2
    remote <3cx serveur ip address>
    early-connect
    early-disconnect
    address-translation outgoing-call from-header user-part fix <USER3 phone number> host-part call

    interface sip IF_SIP_3
    bind gateway GW_SIP_3
    service default
    route call dest-interface IF_FXS_3
    remote <3cx serveur ip address>
    early-connect
    early-disconnect
    address-translation outgoing-call from-header user-part fix <USER4 phone number> host-part call


    interface fxs IF_FXS_0
    route call dest-table Table1
    call-transfer
    caller-id-presentation pre-ring
    subscriber-number <USER1 phone number>

    interface fxs IF_FXS_1
    route call dest-table Table2
    call-transfer
    caller-id-presentation pre-ring
    subscriber-number <USER2 phone number>

    interface fxs IF_FXS_2
    route call dest-table Table3
    call-transfer
    caller-id-presentation pre-ring
    subscriber-number <USER3 phone number>

    interface fxs IF_FXS_3
    route call dest-table Table4
    call-transfer
    caller-id-presentation pre-ring
    subscriber-number <USER4 phone number>


    context cs switch
    no shutdown


    gateway sip GW_SIP_0
    bind interface IF_IP_LAN router

    service default
    domain <3cx serveur ip address>
    defaultserver manual <3cx serveur ip address> loose-router
    registration-lifetime 300
    registration manual <3cx serveur ip address>
    user <USER1 phone number> authenticate password <USER1 password> default register

    gateway sip GW_SIP_0
    no shutdown

    gateway sip GW_SIP_1
    call-signaling-port 5062
    bind interface IF_IP_LAN router

    service default
    domain <3cx serveur ip address>
    defaultserver manual <3cx serveur ip address> loose-router
    registration-lifetime 300
    registration manual <3cx serveur ip address>
    user <USER2 phone number> authenticate password <USER2 password> default register

    gateway sip GW_SIP_1
    no shutdown

    gateway sip GW_SIP_2
    call-signaling-port 5064
    bind interface IF_IP_LAN router

    service default
    domain <3cx serveur ip address>
    defaultserver manual <3cx serveur ip address> loose-router
    registration-lifetime 300
    registration manual <3cx serveur ip address>
    user <USER3 phone number> authenticate password <USER3 password> default register

    gateway sip GW_SIP_2
    no shutdown

    gateway sip GW_SIP_3
    call-signaling-port 5066
    bind interface IF_IP_LAN router

    service default
    domain <3cx serveur ip address>
    defaultserver manual <3cx serveur ip address> loose-router
    registration-lifetime 300
    registration manual <3cx serveur ip address>
    user <USER4 phone number> authenticate password <USER4 password> default register

    gateway sip GW_SIP_3
    no shutdown


    port ethernet 0 0
    medium auto
    bind interface IF_IP_LAN router
    no shutdown


    port fxs 0 0
    caller-id format bell
    encapsulation cc-fxs
    bind interface IF_FXS_0 switch
    no shutdown

    port fxs 0 1
    caller-id format bell
    encapsulation cc-fxs
    bind interface IF_FXS_1 switch
    no shutdown

    port fxs 0 2
    caller-id format bell
    encapsulation cc-fxs
    bind interface IF_FXS_2 switch
    no shutdown

    port fxs 0 3
    caller-id format bell
    encapsulation cc-fxs
    bind interface IF_FXS_3 switch
    no shutdown
     
  4. llbol

    Joined:
    Jan 22, 2009
    Messages:
    2
    Likes Received:
    0
    Finaly I've got it working.
    It is used in Holland with firmware 5.3

    Regards,

    laurens



    #----------------------------------------------------------------#
    # #
    # SN4114/JS/EUI #
    # R5.3 2009-01-15 H323 SIP FXS FXO #
    # 2009-02-18T08:44:12 #
    # SNasasdasdE #
    # Generated configuration file #
    # #
    #----------------------------------------------------------------#

    cli version 3.20
    webserver port 80 language en
    sntp-client
    sntp-client server primary <Your-SNTPServer port 123 version 4

    system

    ic voice 0
    low-bitrate-codec g729

    profile ppp default

    profile call-progress-tone defaultDialtone
    play 1 1000 425 0

    profile tone-set default

    profile voip default
    codec 1 g711alaw64k rx-length 30 tx-length 30
    codec 2 g711ulaw64k rx-length 30 tx-length 30
    codec 3 g729 rx-length 30 tx-length 30
    rtp traffic-class local-default
    dejitter-mode static-data
    fax transmission 1 bypass g711ulaw64k
    fax transmission 2 bypass g711alaw64k
    fax transmission 3 relay t38-udp
    fax redundancy low-speed 2 high-speed 4
    fax dejitter-max-delay <Phonenumber2>
    no fax error-correction
    no fax hdlc
    fax max-bit-rate 9600
    no fax ced-retransmission
    fax bypass-method v150-vbd
    modem transmission 1 bypass g711alaw64k
    modem transmission 2 bypass g711ulaw64k
    modem bypass-method v150-vbd

    profile pstn default

    profile ringing-cadence default
    play 1 1000
    pause 2 4000

    profile sip default

    profile aaa default
    method 1 local
    method 2 none

    context ip router

    interface IF_IP_LAN
    ipaddress <IPAddress-Patton> <SubnetMask-Patton>
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

    context cs switch
    no digit-collection timeout

    routing-table called-e164 Table1
    route .%T dest-interface IF_SIP_0

    routing-table called-e164 Table2
    route .%T dest-interface IF_SIP_1

    routing-table called-e164 Table3
    route .%T dest-interface IF_SIP_2

    routing-table called-e164 Table4
    route .%T dest-interface IF_SIP_3

    interface sip IF_SIP_0
    bind context sip-gateway GW_SIP_0
    route call dest-interface IF_FXS_0
    remote <IPAddress-3CXServer>
    early-connect
    early-disconnect
    address-translation outgoing-call from-header user-part fix <Phonenumber1> host-part fix <IPAddress-3CXServer>
    address-translation outgoing-call diversion-header host-part remote

    interface sip IF_SIP_1
    bind context sip-gateway GW_SIP_0
    route call dest-interface IF_FXS_1
    remote <IPAddress-3CXServer>
    early-connect
    early-disconnect
    address-translation outgoing-call from-header user-part fix <Phonenumber2> host-part fix <IPAddress-3CXServer>

    interface sip IF_SIP_2
    bind context sip-gateway GW_SIP_0
    route call dest-interface IF_FXS_2
    remote <IPAddress-3CXServer>
    early-connect
    early-disconnect
    address-translation outgoing-call from-header user-part fix <Phonenumber3> host-part fix <IPAddress-3CXServer>

    interface sip IF_SIP_3
    bind context sip-gateway GW_SIP_0
    route call dest-interface IF_FXS_3
    remote <IPAddress-3CXServer>
    early-connect
    early-disconnect
    address-translation outgoing-call from-header user-part fix <Phonenumber4> host-part fix <IPAddress-3CXServer>

    interface fxs IF_FXS_0
    route call dest-table Table1
    call-transfer
    caller-id-presentation pre-ring
    subscriber-number <Phonenumber1>

    interface fxs IF_FXS_1
    route call dest-table Table2
    call-transfer
    caller-id-presentation pre-ring
    subscriber-number <Phonenumber2>

    interface fxs IF_FXS_2
    route call dest-table Table3
    call-transfer
    caller-id-presentation pre-ring
    subscriber-number <Phonenumber3>

    interface fxs IF_FXS_3
    route call dest-table Table4
    call-transfer
    caller-id-presentation pre-ring
    subscriber-number <Phonenumber4>

    context cs switch
    no shutdown

    authentication-service default
    username <Phonenumber1> password 111111111111 encrypted
    username <Phonenumber4> password 222222222222 encrypted
    username <Phonenumber2> password 333333333333 encrypted
    username <Phonenumber3> password 444444444444 encrypted

    location-service default
    domain 1 <IPAddress-3CXServer>

    identity <Phonenumber1>
    display-name <Phonenumber1>
    phone-context <Phonenumber1>

    authentication outbound
    authenticate 1 authentication-service default username <Phonenumber1>

    registration outbound
    registrar <IPAddress-3CXServer>
    lifetime 3600
    register auto
    retry-timeout on-system-error 10
    retry-timeout on-client-error 10
    retry-timeout on-server-error 10

    identity <Phonenumber4>
    display-name <Phonenumber4>
    phone-context <Phonenumber4>

    authentication outbound
    authenticate 1 authentication-service default username <Phonenumber4>

    registration outbound
    registrar <IPAddress-3CXServer>
    lifetime 3600
    register auto
    retry-timeout on-system-error 10
    retry-timeout on-client-error 10
    retry-timeout on-server-error 10

    identity <Phonenumber2>
    display-name <Phonenumber2>
    phone-context <Phonenumber2>

    authentication outbound
    authenticate 1 authentication-service default username <Phonenumber2>

    registration outbound
    registrar <IPAddress-3CXServer>
    lifetime 3600
    register auto
    retry-timeout on-system-error 10
    retry-timeout on-client-error 10
    retry-timeout on-server-error 10

    identity <Phonenumber3>
    display-name <Phonenumber3>
    phone-context <Phonenumber3>

    authentication outbound
    authenticate 1 authentication-service default username <Phonenumber3>

    registration outbound
    registrar <IPAddress-3CXServer>
    lifetime 3600
    register auto
    retry-timeout on-system-error 10
    retry-timeout on-client-error 10
    retry-timeout on-server-error 10

    context sip-gateway GW_SIP_0

    interface if_sip
    bind interface IF_IP_LAN context router port 5060

    context sip-gateway GW_SIP_0
    bind location-service default
    no shutdown

    port ethernet 0 0
    medium auto
    bind interface IF_IP_LAN router
    no shutdown

    port fxs 0 0
    encapsulation cc-fxs
    bind interface IF_FXS_0 switch
    no shutdown

    port fxs 0 1
    encapsulation cc-fxs
    bind interface IF_FXS_1 switch
    no shutdown

    port fxs 0 2
    encapsulation cc-fxs
    bind interface IF_FXS_2 switch
    no shutdown

    port fxs 0 3
    encapsulation cc-fxs
    bind interface IF_FXS_3 switch
    no shutdown
     
Thread Status:
Not open for further replies.