Patton 4114 FXO Config für 4 Analoganschlüsse

mp3joker

Neuer User
Mitglied seit
17 Dez 2006
Beiträge
56
Punkte für Reaktionen
0
Punkte
6
Hallo,

Nachdem ich jetzt die letzten Tage mich mit meinem Patton beschäftigt habe möchte ich hier nun dass Resultat veröffentlichen. Ich hoffe dass es jemandem vielleicht weiterhilft.

Rahmendaten:
Patton 4114 mit V5.1
Asteriskserver : 172.20.0.2
DNS Server: 172.20.0.1
Gatway: 192.168.10.254

(Gatway hängt über VPN an Asterisk durch 2*Draytek)

Code:
----------------------------------------------------------------#
#                                                                #
# SN4114/JO/EUI                                                  #
# R5.1 2008-07-14 H323 SIP FXS FXO                               #
# 2008-08-25T01:38:16                                            #
# SN/00A0XXXXXXXX                                                #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
dns-client server 172.20.0.1
webserver port 80 language en
sntp-client
sntp-client server primary de.pool.ntp.org port 123 version 4

system

  ic voice 0
    low-bitrate-codec g729

profile ppp default

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

profile call-progress-tone defaultAlertingtone
  play 1 800 425 -13
  pause 2 3200

profile call-progress-tone defaultBusytone
  play 1 400 425 -7
  pause 2 400

profile call-progress-tone defaultReleasetone
  play 1 400 425 -7
  pause 2 400

profile call-progress-tone defaultCongestiontone
  play 1 400 425 -7
  pause 2 400

profile tone-set default

profile voip default
  codec 1 g711ulaw64k rx-length 20 tx-length 20
  codec 2 g711alaw64k 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 192.168.10.252 255.255.255.0
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

context ip router
  route 0.0.0.0 0.0.0.0 192.168.10.254 0 traffic-class default
  route 0.0.0.0 0.0.0.0 192.168.10.254 0 traffic-class local-default
  route 0.0.0.0 0.0.0.0 192.168.10.254 0 traffic-class local-voice

context cs switch

  routing-table called-e164 RT_FXO_0_TO_SIP_0
    route T2 dest-service HG_FXO_0_TO_SIP_0

  routing-table called-e164 RT_FXO_1_TO_SIP_1
    route T2 dest-service HG_FXO_1_TO_SIP_1

  routing-table called-e164 RT_FXO_2_TO_SIP_2
    route T2 dest-service HG_FXO_2_TO_SIP_2

  routing-table called-e164 RT_FXO_3_TO_SIP_3
    route T2 dest-service HG_FXO_3_TO_SIP_3

  mapping-table calling-pi to called-e164 MP_REM_CLIR

  interface sip IF_SIP_0
    bind context sip-gateway GW_SIP_0
    route call dest-service HG_SIP_0_TO_FXO_0
    remote 172.20.0.2
    early-connect
    early-disconnect
    address-translation outgoing-call request-uri user-part fix 10000 host-part to-header target-param none

  interface sip IF_SIP_1
    bind context sip-gateway GW_SIP_1
    route call dest-service HG_SIP_1_TO_FXO_1
    remote 172.20.0.2
    early-connect
    early-disconnect
    address-translation outgoing-call request-uri user-part fix 10001 host-part to-header target-param none

  interface sip IF_SIP_2
    bind context sip-gateway GW_SIP_2
    route call dest-service HG_SIP_2_TO_FXO_2
    remote 172.20.0.2
    early-connect
    early-disconnect
    address-translation outgoing-call request-uri user-part fix 10002 host-part to-header target-param none

  interface sip IF_SIP_3
    bind context sip-gateway GW_SIP_3
    route call dest-service HG_SIP_3_TO_FXO_3
    remote 172.20.0.2
    early-connect
    early-disconnect
    address-translation outgoing-call request-uri user-part fix 10003 host-part to-header target-param none

  interface fxo IF_FXO_0
    route call dest-table RT_FXO_0_TO_SIP_0
    loop-break-duration min 200 max 1000
    disconnect-signal loop-break
    disconnect-signal busy-tone
    ring-number on-caller-id
    dial-after timeout 1
    mute-dialing

  interface fxo IF_FXO_1
    route call dest-table RT_FXO_1_TO_SIP_1
    loop-break-duration min 200 max 1000
    disconnect-signal loop-break
    disconnect-signal busy-tone
    ring-number on-caller-id
    dial-after timeout 1
    mute-dialing

  interface fxo IF_FXO_2
    route call dest-table RT_FXO_2_TO_SIP_2
    loop-break-duration min 200 max 1000
    disconnect-signal loop-break
    disconnect-signal busy-tone
    ring-number on-caller-id
    dial-after timeout 1
    mute-dialing

  interface fxo IF_FXO_3
    route call dest-table RT_FXO_3_TO_SIP_3
    loop-break-duration min 200 max 1000
    disconnect-signal loop-break
    disconnect-signal busy-tone
    ring-number on-caller-id
    dial-after timeout 1
    mute-dialing

  service hunt-group HG_FXO_0_TO_SIP_0
    drop-cause normal-unspecified
    drop-cause no-circuit-channel-available
    drop-cause network-out-of-order
    drop-cause temporary-failure
    drop-cause switching-equipment-congestion
    drop-cause access-info-discarded
    drop-cause circuit-channel-not-available
    drop-cause resources-unavailable
    route call 1 dest-interface IF_SIP_0

  service hunt-group HG_SIP_0_TO_FXO_0
    drop-cause normal-unspecified
    drop-cause no-circuit-channel-available
    drop-cause network-out-of-order
    drop-cause temporary-failure
    drop-cause switching-equipment-congestion
    drop-cause access-info-discarded
    drop-cause circuit-channel-not-available
    drop-cause resources-unavailable
    route call 1 dest-interface IF_FXO_0

  service hunt-group HG_FXO_1_TO_SIP_1
    drop-cause normal-unspecified
    drop-cause no-circuit-channel-available
    drop-cause network-out-of-order
    drop-cause temporary-failure
    drop-cause switching-equipment-congestion
    drop-cause access-info-discarded
    drop-cause circuit-channel-not-available
    drop-cause resources-unavailable
    route call 1 dest-interface IF_SIP_1

  service hunt-group HG_SIP_1_TO_FXO_1
    drop-cause normal-unspecified
    drop-cause no-circuit-channel-available
    drop-cause network-out-of-order
    drop-cause temporary-failure
    drop-cause switching-equipment-congestion
    drop-cause access-info-discarded
    drop-cause circuit-channel-not-available
    drop-cause resources-unavailable
    route call 1 dest-interface IF_FXO_1

  service hunt-group HG_FXO_2_TO_SIP_2
    drop-cause normal-unspecified
    drop-cause no-circuit-channel-available
    drop-cause network-out-of-order
    drop-cause temporary-failure
    drop-cause switching-equipment-congestion
    drop-cause access-info-discarded
    drop-cause circuit-channel-not-available
    drop-cause resources-unavailable
    route call 1 dest-interface IF_SIP_2

  service hunt-group HG_SIP_2_TO_FXO_2
    drop-cause normal-unspecified
    drop-cause no-circuit-channel-available
    drop-cause network-out-of-order
    drop-cause temporary-failure
    drop-cause switching-equipment-congestion
    drop-cause access-info-discarded
    drop-cause circuit-channel-not-available
    drop-cause resources-unavailable
    route call 1 dest-interface IF_FXO_2

  service hunt-group HG_FXO_3_TO_SIP_3
    drop-cause normal-unspecified
    drop-cause no-circuit-channel-available
    drop-cause network-out-of-order
    drop-cause temporary-failure
    drop-cause switching-equipment-congestion
    drop-cause access-info-discarded
    drop-cause circuit-channel-not-available
    drop-cause resources-unavailable
    route call 1 dest-interface IF_SIP_3

  service hunt-group HG_SIP_3_TO_FXO_3
    drop-cause normal-unspecified
    drop-cause no-circuit-channel-available
    drop-cause network-out-of-order
    drop-cause temporary-failure
    drop-cause switching-equipment-congestion
    drop-cause access-info-discarded
    drop-cause circuit-channel-not-available
    drop-cause resources-unavailable
    route call 1 dest-interface IF_FXO_3

context cs switch
  no shutdown

authentication-service AS_ALL_LINES
  username 10000 password LbFCDNv4/Fk= encrypted
  username 10001 password dZ8edXkjFnM= encrypted
  username 10002 password iAaKwKfxX4Q= encrypted
  username 10003 password ySyWxUvSc/c= encrypted

location-service LS_10000
  domain 1 172.20.0.2

location-service LS_10001
  domain 1 172.20.0.2

location-service LS_10002
  domain 1 172.20.0.2

location-service LS_10003
  domain 1 172.20.0.2

context sip-gateway GW_SIP_0

  interface LAN
    bind interface IF_IP_LAN context router port 5060

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

context sip-gateway GW_SIP_1

  interface LAN
    bind interface IF_IP_LAN context router port 5062

context sip-gateway GW_SIP_1
  bind location-service LS_10001
  no shutdown

context sip-gateway GW_SIP_2

  interface LAN
    bind interface IF_IP_LAN context router port 5064

context sip-gateway GW_SIP_2
  bind location-service LS_10002
  no shutdown

context sip-gateway GW_SIP_3

  interface LAN
    bind interface IF_IP_LAN context router port 5066

context sip-gateway GW_SIP_3
  bind location-service LS_10003
  no shutdown

port ethernet 0 0
  medium 10 half
  encapsulation ip
  bind interface IF_IP_LAN router
  no shutdown

port fxo 0 0
  encapsulation cc-fxo
  bind interface IF_FXO_0 switch
  no shutdown

port fxo 0 1
  encapsulation cc-fxo
  bind interface IF_FXO_1 switch
  no shutdown

port fxo 0 2
  encapsulation cc-fxo
  bind interface IF_FXO_2 switch
  no shutdown

port fxo 0 3
  encapsulation cc-fxo
  bind interface IF_FXO_3 switch
  no shutdown

sip.conf

Code:
;Abgehende Anrufe

[10000]
type=peer
username=10000
fromuser=10000
secret=10000
host=192.168.10.252
fromdomain=192.168.10.252
insecure=very
canreinvite=no
nat=no
disallow=all
allow=ulaw

[10001]
type=peer
port=5062
username=10001
fromuser=10001
secret=10001
host=192.168.10.252
fromdomain=192.168.10.252
insecure=very
canreinvite=no
nat=no
disallow=all
allow=ulaw

[10002]
type=peer
port=5064
username=10002
fromuser=10002
secret=10002
host=192.168.10.252
fromdomain=192.168.10.252
insecure=very
canreinvite=no
nat=no
disallow=all
allow=ulaw

[10003]
type=peer
port=5066
username=10003
fromuser=10003
secret=10003
host=192.168.10.252
fromdomain=192.168.10.252
insecure=very
canreinvite=no
nat=no
disallow=all
allow=ulaw


; Eingehende Anrufe

[Paton_10000]
type=peer
fromdomain=192.168.10.252
host=192.168.10.252
disallow=all
allow=ulaw
context=ankommend

[Paton_10001]
type=peer
port=5062
fromdomain=192.168.10.252
host=192.168.10.252
disallow=all
allow=ulaw
context=ankommend

[Paton_10002]
type=peer
port=5064
fromdomain=192.168.10.252
host=192.168.10.252
disallow=all
allow=ulaw
context=ankommend

[Paton_10003]
type=peer
port=5066
fromdomain=192.168.10.252
host=192.168.10.252
disallow=all
allow=ulaw
context=ankommend

Sollte noch einer Verbesserungen oder Ratschläge für mich haben würde ich mich sehr darüber freuen.

Grüsse Michael
 
Zuletzt bearbeitet:
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.