[RISOLTO] Patton SN4554 e registrazione telefono SIP

Supporto generale 3CX Phone system, VOIP & SIP (Community-led) Supporto da utente a utente - Le risposte sono fornite dalla comunità. La 3CX non fornisce supporto tecnico attraverso questo forum.

Moderators: kevin, 3CX staff

[RISOLTO] Patton SN4554 e registrazione telefono SIP

Postby abagalini » Wed Nov 24, 2010 2:15 pm

Ciao a tutti,
sono nuovo del forum e del software 3CX, comunque mi piace molto perché è facile e molto potente.
Sono riuscito a fare praticamente tutto quello che volevo, ho un centralino 3CX e un gateway Patton SN4554 per gestire due ISDN, e tutto funziona perfettamente.
L'unica cosa che non riesco proprio a configurare è nel Patton, ovvero avrei bisogno che una linea di un solo terminale si configuri direttamente sul Patton.

Ho provato a seguire queste guide:
http://www.patton.com/voipnews/v1n1/how ... phones.asp
http://www.wookieboo.halokwadrat.pl/lan ... article/22
ma non c'è stato verso.

Ho l'ultima versione del Software Patton R5.6 2010-09-10 SIP ed ho scoperto che fino a 3 utenti si possono registrare senza acquisto di licenze.

Allego la configurazione del Patton SN4554:
192.168.30.x è la rete interna dove stanno i telefoni
192.168.30.118 è il Patton SN4554

Code: Select all
#########################################################
#
# For Patton SmartNode 4554 2-port BRI
# Supported firmware versions R5.x
#
# Author: Kevin Attard Compagno
# Contact: kevin@3cx.com
#
#########################################################

webserver port 80 language en

system

  ic voice 0

system
  clock-source 0 0

profile ppp default


profile call-progress-tone defaultDialtone
  flush-play-list
  play 1 200 425 0
  pause 2 200
  play 1 600 425 0
  pause 1 1000

profile call-progress-tone defaultAlertingtone
  flush-play-list
  play 1 1000 425 -7
  pause 2 4000

profile call-progress-tone defaultBusytone
  flush-play-list
  play 1 200 425 -7
  pause 2 200

profile call-progress-tone defaultReleasetone
  flush-play-list
  play 1 250 425 -7
  pause 2 250

profile call-progress-tone defaultCongestiontone
  flush-play-list
  play 1 250 425 -7
  pause 2 250
 

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 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.30.118 255.255.255.0
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

context cs switch

  mapping-table calling-pi to calling-e164 MAP_REMOVE_BLANK_CALLERID
    map restricted to ""

  mapping-table calling-e164 to calling-e164 MAP_LEADING_ZERO
   
map (.%)-(.%)-(.%)-(.%)-(.%) to \1\2\3\4\5
map (.%)-(.%)-(.%)-(.%) to \1\2\3\4
map (.%)-(.%)-(.%) to \1\2\3
map (.%)-(.%) to \1\2
     
 
  mapping-table calling-e164 to calling-name MAP_CID_TO_CNAME
    map (.%) to \1

  complex-function MAPPING_INCOMING_CALLS
    execute 1 MAP_REMOVE_BLANK_CALLERID
    execute 2 MAP_LEADING_ZERO
   
 
  routing-table called-e164 RT_ISDN_TO_SIP_0
    route T2 dest-interface IF_SIP_0 MAPPING_INCOMING_CALLS
   
  routing-table called-e164 RT_ISDN_TO_SIP_1
    route T2 dest-interface IF_SIP_1 MAPPING_INCOMING_CALLS

##################################################
  routing-table called-e164 RT_2_SIP
    route default dest-service SER_SIP_LOCATION
##################################################

  interface isdn IF_ISDN_0
    route call dest-table RT_ISDN_TO_SIP_0
    user-side-ringback-tone
    call-hold disable
    caller-name

  interface isdn IF_ISDN_1
    route call dest-table RT_ISDN_TO_SIP_1
    user-side-ringback-tone
    call-hold disable
    caller-name

  interface sip IF_SIP_0
    bind context sip-gateway GW_SIP_0

#############################################
  interface sip IF_SIP
    bind context sip-gateway GW_SIP
    route call dest-interface IF_ISDN_0
    local 192.160.30.118 5066
#############################################


early-connect
       
    early-disconnect
    route call dest-interface IF_ISDN_0
    remote 192.168.30.126 5060
    address-translation outgoing-call request-uri user-part fix 10001 host-part to-header target-param none
    address-translation incoming-call called-e164 request-uri

  interface sip IF_SIP_1
    bind context sip-gateway GW_SIP_1
   
early-connect
       
    early-disconnect
    route call dest-interface IF_ISDN_1
    remote 192.168.30.126 5060
    address-translation outgoing-call request-uri user-part fix 10002 host-part to-header target-param none
    address-translation incoming-call called-e164 request-uri

context cs switch
  no shutdown

authentication-service AS_ALL_LINES
  realm 1 3CXPhoneSystem
  username 10001 password gv9a2v8
  username 10002 password 0t11s3f

####################################
# Registration from phone 555
####################################

  service sip-location-service SER_SIP_LOCATION
      bind location-service SER_LOCATION

  authentication-service SER_AUTH
    realm patton-gw
    username 555 password 555

  location-service SER_LOCATION
    domain 1 192.168.30.118
   match-any-domain
   
    identity 555
      alias name 555

      authentication inbound
        authenticate 1 authentication-service SER_AUTH username 555

      registration inbound

  context sip-gateway GW_SIP

    interface INBOUND
      bind interface IF_IP_LAN context router port 5066

  context sip-gateway SIP
    bind location-service SER_LOCATION
    no shutdown
 
###############
# End
###############

location-service LS_10001
  domain 1 192.168.30.126
 
  identity-group default
    authentication outbound
      authenticate 1 authentication-service AS_ALL_LINES username 10001
 
  identity 10001
    authentication outbound
      authenticate 1 authentication-service AS_ALL_LINES

    registration outbound
      registrar 192.168.30.126 5060
      lifetime 300
      register auto

location-service LS_10002
  domain 1 192.168.30.126
 
  identity-group default
    authentication outbound
     authenticate 1 authentication-service AS_ALL_LINES username 10002
 
  identity 10002
    authentication outbound
      authenticate 1 authentication-service AS_ALL_LINES

    registration outbound
      registrar 192.168.30.126 5060
      lifetime 300
      register auto
    
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_10001
  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_10002
  no shutdown
 
port ethernet 0 0
  encapsulation ip
  bind interface IF_IP_LAN router
  no shutdown

port bri 0 0
  clock auto
  encapsulation q921

  q921
   
protocol pp
       
    uni-side auto
    encapsulation q931

    q931
     
protocol dss1
       
      uni-side user
      bchan-number-order ascending
      encapsulation cc-isdn
      bind interface IF_ISDN_0 switch

port bri 0 0
  no shutdown

port bri 0 1
  clock auto
  encapsulation q921

  q921
   
protocol pp
       
    uni-side auto
    encapsulation q931

    q931
     
protocol dss1
       
      uni-side user
      bchan-number-order ascending
      encapsulation cc-isdn
      bind interface IF_ISDN_1 switch

port bri 0 1
  no shutdown


Vi ringrazio anticipatamente per l'aiuto.
Alessandro
Last edited by abagalini on Thu Dec 02, 2010 2:37 pm, edited 3 times in total.
abagalini
New User
 
Posts: 8
Joined: Wed Nov 24, 2010 1:54 pm

Re: Patton SN4554 e registrazione telefono SIP

Postby abagalini » Wed Nov 24, 2010 5:13 pm

Dopo un pò di debug sono riuscito a sistemare la configuraizone, ricontrollando riga per riga, ora funziona tutto.

Ecco la configurazione corretta:

Code: Select all
#----------------------------------------------------------------#
#                                                                #
# SN4554/2BIS/EUI                                                #
# R5.6 2010-09-10 SIP                                            #
# 1970-01-01T00:53:40                                            #
# SN/00A0BA05EDDD                                                #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
clock local default-offset +00:00
webserver port 80 language en

system

  ic voice 0

system
  clock-source 1 bri 0 0
  clock-source 2 bri 0 1

profile ppp default

profile call-progress-tone defaultDialtone
  pause 1 1000
  pause 2 200

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

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
  no autonomous-transitioning

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface IF_IP_LAN
    ipaddress 192.168.30.118 255.255.255.0
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

context cs switch

  routing-table called-e164 RT_ISDN_TO_SIP_0
    route T2 dest-interface IF_SIP_0 MAPPING_INCOMING_CALLS
    route T dest-service SLS_DIRECT

  routing-table called-e164 RT_ISDN_TO_SIP_1
    route T2 dest-interface IF_SIP_1 MAPPING_INCOMING_CALLS
    route T dest-service SLS_DIRECT

  mapping-table calling-pi to calling-e164 MAP_REMOVE_BLANK_CALLERID
    map restricted to ""

  mapping-table calling-e164 to calling-e164 MAP_LEADING_ZERO
    map (.%)-(.%)-(.%)-(.%)-(.%) to \1\2\3\4\5
    map (.%)-(.%)-(.%)-(.%) to \1\2\3\4
    map (.%)-(.%)-(.%) to \1\2\3
    map (.%)-(.%) to \1\2

  mapping-table calling-e164 to calling-name MAP_CID_TO_CNAME
    map (.%) to \1

  complex-function MAPPING_INCOMING_CALLS
    execute 1 MAP_REMOVE_BLANK_CALLERID
    execute 2 MAP_LEADING_ZERO

  interface isdn IF_ISDN_0
    route call dest-table RT_ISDN_TO_SIP_0
    call-hold disable
    caller-name
    user-side-ringback-tone

  interface isdn IF_ISDN_1
    route call dest-table RT_ISDN_TO_SIP_1
    call-hold disable
    caller-name
    user-side-ringback-tone

  interface sip IF_SIP_0
    bind context sip-gateway GW_SIP_0
    route call dest-interface IF_ISDN_0
    remote 192.168.30.126 5060
    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_1
    bind context sip-gateway GW_SIP_1
    route call dest-interface IF_ISDN_1
    remote 192.168.30.126 5060
    early-connect
    early-disconnect
    address-translation outgoing-call request-uri user-part fix 10002 host-part to-header target-param none

  service sip-location-service SLS_DIRECT
    bind location-service LS_DIRECT

  service hunt-group SV_HUNT_PSTN
    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
    drop-cause no-route-to-destination
    route call 1 dest-service SLS_DIRECT

context cs switch
  no shutdown

authentication-service AS_ALL_LINES
  realm 1 3CXPhoneSystem
  username 10001 password gv9a2v8
  username 10002 password 0t11s3f

authentication-service AS_OPERATOR_300
  realm 1 smartnode-gw
  username 300 password 300

location-service LS_10001
  domain 1 192.168.30.126

  identity-group default

    authentication outbound
      authenticate 1 authentication-service AS_ALL_LINES username 10001

  identity 10001

    authentication outbound
      authenticate 1 authentication-service AS_ALL_LINES

    registration outbound
      registrar 192.168.30.126 5060
      lifetime 300
      register auto

location-service LS_10002
  domain 1 192.168.30.126

  identity-group default

    authentication outbound
      authenticate 1 authentication-service AS_ALL_LINES username 10002

  identity 10002

    authentication outbound
      authenticate 1 authentication-service AS_ALL_LINES

    registration outbound
      registrar 192.168.30.126 5060
      lifetime 300
      register auto

location-service LS_DIRECT
  domain 1 smartnode-gw
  match-any-domain

  identity 300
    display-name "ISDN 1"

    authentication inbound
      authenticate 1 authentication-service AS_OPERATOR_300 username 300

    registration inbound
      lifetime default 3600 min 1 max 4294967295

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_10001
  bind location-service LS_DIRECT
  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_10002
  bind location-service LS_DIRECT
  no shutdown

port ethernet 0 0
  encapsulation ip
  bind interface IF_IP_LAN router
  no shutdown

port bri 0 0
  clock auto
  encapsulation q921

  q921
    protocol pp
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      bchan-number-order ascending
      encapsulation cc-isdn
      bind interface IF_ISDN_0 switch

port bri 0 0
  no shutdown

port bri 0 1
  clock auto
  encapsulation q921

  q921
    protocol pp
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      bchan-number-order ascending
      encapsulation cc-isdn
      bind interface IF_ISDN_1 switch

port bri 0 1
  no shutdown
abagalini
New User
 
Posts: 8
Joined: Wed Nov 24, 2010 1:54 pm

Re: [QUASI-RISOLTO] Patton SN4554 e registrazione telefono S

Postby abagalini » Wed Nov 24, 2010 6:51 pm

Ci siamo quasi...

Le chiamate in entrata non arrivano al telefono.
Però riesco a chiamare.
abagalini
New User
 
Posts: 8
Joined: Wed Nov 24, 2010 1:54 pm

Re: [QUASI-RISOLTO] Patton SN4554 e registrazione telefono S

Postby abagalini » Thu Dec 02, 2010 2:31 pm

Risolto,
dopo un pò di tentativi e un pò di aiuto ecco la soluzione a quello che volevo fare.

Posto la configurazione:
Code: Select all
#----------------------------------------------------------------#
#                                                                #
# SN4554/2BIS/EUI                                                #
# R5.6 2010-09-10 SIP                                            #
# 2010-12-02T11:58:53                                            #
# SN/00A0BA05EDDD                                                #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
clock local default-offset +01:00
webserver port 80 language en
sntp-client
sntp-client server primary 193.204.114.105 port 123 version 4

system

  ic voice 0

system
  clock-source 1 bri 0 0
  clock-source 2 bri 0 1

profile ppp default

profile call-progress-tone defaultDialtone
  pause 1 1000
  pause 2 200

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

profile call-progress-tone IT_Dialtone
  play 1 200 425 -12
  play 2 600 425 -12

profile call-progress-tone IT_Alertingtone
  play 1 1000 425 -12

profile call-progress-tone IT_Busytone
  play 1 500 425 -12

profile tone-set default
profile tone-set IT
  map call-progress-tone dial-tone IT_Dialtone
  map call-progress-tone ringback-tone IT_Alertingtone
  map call-progress-tone busy-tone IT_Busytone
  map call-progress-tone release-tone IT_Busytone

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
  no autonomous-transitioning

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface IF_IP_LAN
    ipaddress dhcp
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

context cs switch
  national-prefix 0
  international-prefix 00

  routing-table called-e164 RT_ISDN_TO_SIP_0
    route T2 dest-service SV_HUNT_PSTN MAPPING_INCOMING_CALLS

  routing-table called-e164 RT_ISDN_TO_SIP_1
    route T2 dest-service SV_HUNT_PSTN MAPPING_INCOMING_CALLS

  routing-table called-e164 RT_ISDN_TO_DIRECT
    route default dest-service SLS_DIRECT CALL_DIRECT

  routing-table called-e164 DIAL_OUT
    route default dest-interface IF_ISDN_0

  mapping-table calling-pi to calling-e164 MAP_REMOVE_BLANK_CALLERID
    map restricted to ""

  mapping-table calling-e164 to calling-e164 MAP_LEADING_ZERO
    map (.%)-(.%)-(.%)-(.%)-(.%) to \1\2\3\4\5
    map (.%)-(.%)-(.%)-(.%) to \1\2\3\4
    map (.%)-(.%)-(.%) to \1\2\3
    map (.%)-(.%) to \1\2

  mapping-table calling-e164 to calling-name MAP_CID_TO_CNAME
    map (.%) to \1

  mapping-table called-e164 to called-e164 CALL_DIRECT
    map default to 388

  complex-function MAPPING_INCOMING_CALLS
    execute 1 MAP_REMOVE_BLANK_CALLERID
    execute 2 MAP_LEADING_ZERO

  interface isdn IF_ISDN_0
    route call dest-table RT_ISDN_TO_SIP_0
    call-hold disable
    caller-name
    user-side-ringback-tone

  interface isdn IF_ISDN_1
    route call dest-table RT_ISDN_TO_SIP_1
    call-hold disable
    caller-name
    user-side-ringback-tone

  interface sip IF_SIP_0
    bind context sip-gateway GW_SIP_0
    route call dest-interface IF_ISDN_0
    remote 192.168.12.10 5060
    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_1
    bind context sip-gateway GW_SIP_1
    route call dest-interface IF_ISDN_1
    remote 192.168.12.10 5060
    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_DIRECT
    bind context sip-gateway GW_SIP_DIRECT
    route call dest-table DIAL_OUT
    early-connect
    early-disconnect

  service sip-location-service SLS_DIRECT
    bind location-service LS_DIRECT

  service hunt-group SV_HUNT_PSTN
    timeout 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
    drop-cause no-route-to-destination
    drop-cause call-rejected
    route call 1 dest-interface IF_SIP_0
    route call 2 dest-interface IF_SIP_1
    route call 3 dest-table RT_ISDN_TO_DIRECT

context cs switch
  no shutdown

authentication-service AS_ALL_LINES
  realm 1 3CXPhoneSystem
  username 10001 password zivZVlydNxu2tAgc/IjTVQ== encrypted
  username 10002 password wJu6sW1Q4A29yRX8ZzQbnw== encrypted

authentication-service AS_OPERATOR
  realm 1 192.168.30.30
  username 399 password odEIVXQNz4g= encrypted
  username 388 password Pf4HWutOKqQ= encrypted

location-service LS_10001
  domain 1 192.168.12.10

  identity-group default

    authentication outbound
      authenticate 1 authentication-service AS_ALL_LINES username 10001

  identity 10001

    authentication outbound
      authenticate 1 authentication-service AS_ALL_LINES

    registration outbound
      registrar 192.168.12.10 5060
      lifetime 300
      register auto
      retry-timeout on-system-error 10
      retry-timeout on-client-error 10
      retry-timeout on-server-error 10

location-service LS_10002
  domain 1 192.168.12.10

  identity-group default

    authentication outbound
      authenticate 1 authentication-service AS_ALL_LINES username 10002

  identity 10002

    authentication outbound
      authenticate 1 authentication-service AS_ALL_LINES

    registration outbound
      registrar 192.168.12.10 5060
      lifetime 300
      register auto
      retry-timeout on-system-error 10
      retry-timeout on-client-error 10
      retry-timeout on-server-error 10

location-service LS_DIRECT
  domain 1 192.168.30.30
  match-any-domain

  identity-group default
  identity 399

    authentication inbound
      authenticate 1 authentication-service AS_OPERATOR username 399

    registration inbound
      lifetime default 3600 min 1 max 4294967295

  identity 388

    authentication inbound
      authenticate 1 authentication-service AS_OPERATOR username 388

    registration inbound
      lifetime default 3600 min 1 max 4294967295

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_10001
  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_10002
  no shutdown

context sip-gateway GW_SIP_DIRECT

  interface LAN
    bind interface IF_IP_LAN context router port 5064

context sip-gateway GW_SIP_DIRECT
  bind location-service LS_DIRECT
  no shutdown

port ethernet 0 0
  encapsulation ip
  bind interface IF_IP_LAN router
  no shutdown

port bri 0 0
  clock auto
  encapsulation q921

  q921
    protocol pp
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      bchan-number-order ascending
      encapsulation cc-isdn
      bind interface IF_ISDN_0 switch

port bri 0 0
  no shutdown

port bri 0 1
  clock auto
  encapsulation q921

  q921
    protocol pp
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      bchan-number-order ascending
      encapsulation cc-isdn
      bind interface IF_ISDN_1 switch

port bri 0 1
  no shutdown


Forse non è la soluzione più elegante, ma funziona.
abagalini
New User
 
Posts: 8
Joined: Wed Nov 24, 2010 1:54 pm

Re: [RISOLTO] Patton SN4554 e registrazione telefono SIP

Postby comtel » Sat Jun 04, 2011 1:22 am

bene bel lavoro
comtel
New User
 
Posts: 38
Joined: Tue Mar 24, 2009 11:50 am


Return to Italiano


Who is online

Users browsing this forum: No registered users and 1 guest

Announcements: