Ciao,
Quando riceviamo chiamate dall'esterno hanno uno zero in più (00331XXXXXX) quando è impostato sul patton:
context cs switch
national-prefix 0
international-prefix 00
Se viene disattivato invece lo zero manca: 331XXXXXX
Il file di configurazione è stato generato dal wizard della versione 15.
Prima di 3CX avevamo Freepbx che naturalmente non era affetto dal problema di cui sopra.
Vorremmo mantenere 3CX e passare alla versione PRO ma è necessario risolvere prima questo problema non di poco conto.
Di seguito la configurazione del 4120:
#----------------------------------------------------------------#
# #
# SN4120/1BIS2V #
# R6.9 2016-12-27 H323 SIP #
# 2017-02-19T10:11:43 #
# SN/00A0BA09177D #
# 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
profile ppp default
profile call-progress-tone defaultDialtone
play 1 200 425 0
pause 2 200
play 3 600 425 0
pause 4 1000
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
codec 3 g729 rx-length 20 tx-length 20
fax transmission 1 relay t38-udp
fax redundancy low-speed 2 high-speed 1
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.1.110 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
interface IF_IP_WAN
ipaddress dhcp
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context cs switch
national-prefix 0
international-prefix 00
routing-table calling-name SET_CNAME
route ^$ dest-interface IF_SIP MAPPING_INCOMING_CALLS_WITH_CNAME
route default dest-interface IF_SIP MAPPING_INCOMING_CALLS
routing-table called-e164 RT_ISDN_TO_SIP
route T2 dest-table SET_CNAME
routing-table called-e164 RT_SIP_TO_ISDN
route default dest-service HG_TO_ISDN
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 (3.%)-(.%)-(.%)-(.%)-(.%) to \1\2\3\4\5
map (3.%)-(.%)-(.%)-(.%) to \1\2\3\4
map (3.%)-(.%)-(.%) to \1\2\3
map (3.%)-(.%) to \1\2
map (3.%) to \1
map (.%)-(.%)-(.%)-(.%)-(.%) to 0\1\2\3\4\5
map (.%)-(.%)-(.%)-(.%) to 0\1\2\3\4
map (.%)-(.%)-(.%) to 0\1\2\3
map (.%)-(.%) to 0\1\2
map (.%) to 0\1
mapping-table calling-e164 to calling-name MAP_CID_TO_CNAME
map (.%) to \1
mapping-table calling-e164 to calling-e164 SET_CNPN
map 0(.%) to \1
mapping-table calling-type-of-number to calling-type-of-number TYPE
map default to national
mapping-table calling-numbering-plan to calling-numbering-plan PLAN
map default to isdn-telephony
complex-function MAPPING_INCOMING_CALLS
execute 1 MAP_REMOVE_BLANK_CALLERID
execute 2 MAP_LEADING_ZERO
complex-function MAPPING_INCOMING_CALLS_WITH_CNAME
execute 1 MAP_REMOVE_BLANK_CALLERID
execute 2 MAP_LEADING_ZERO
execute 3 MAP_CID_TO_CNAME
complex-function OUTBOUND
execute 1 PLAN
execute 2 SET_CNPN
execute 3 TYPE
interface isdn IF_ISDN_0
route call dest-table RT_ISDN_TO_SIP
call-reroute emit
call-hold disable
diversion emit
caller-name
user-side-ringback-tone
interface sip IF_SIP
bind context sip-gateway GW_SIP
route call dest-table RT_SIP_TO_ISDN
remote 192.168.1.41 5060
early-disconnect
call-reroute accept
address-translation outgoing-call request-uri user-part fix 10000 host-part to-header target-param none
trust remote
service hunt-group HG_TO_ISDN
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_ISDN_0
context cs switch
no shutdown
authentication-service AS_ALL_LINES
realm 1 3CXPhoneSystem
username 10000 password +kM1BNWE75Wh6NZbsmTPrg== encrypted
location-service LS_10000
domain 1 192.168.1.41
identity-group default
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES username 10000
identity 10000
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES
registration outbound
registrar 192.168.1.41 5060
lifetime 300
register auto
context sip-gateway GW_SIP
interface LAN
bind interface IF_IP_LAN context router port 5060
context sip-gateway GW_SIP
bind location-service LS_10000
no shutdown
port ethernet 0 0
medium auto
encapsulation ip
bind interface IF_IP_LAN router
no shutdown
port bri 0 0
clock auto
encapsulation q921
q921
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
Quando riceviamo chiamate dall'esterno hanno uno zero in più (00331XXXXXX) quando è impostato sul patton:
context cs switch
national-prefix 0
international-prefix 00
Se viene disattivato invece lo zero manca: 331XXXXXX
Il file di configurazione è stato generato dal wizard della versione 15.
Prima di 3CX avevamo Freepbx che naturalmente non era affetto dal problema di cui sopra.
Vorremmo mantenere 3CX e passare alla versione PRO ma è necessario risolvere prima questo problema non di poco conto.
Di seguito la configurazione del 4120:
#----------------------------------------------------------------#
# #
# SN4120/1BIS2V #
# R6.9 2016-12-27 H323 SIP #
# 2017-02-19T10:11:43 #
# SN/00A0BA09177D #
# 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
profile ppp default
profile call-progress-tone defaultDialtone
play 1 200 425 0
pause 2 200
play 3 600 425 0
pause 4 1000
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
codec 3 g729 rx-length 20 tx-length 20
fax transmission 1 relay t38-udp
fax redundancy low-speed 2 high-speed 1
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.1.110 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
interface IF_IP_WAN
ipaddress dhcp
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context cs switch
national-prefix 0
international-prefix 00
routing-table calling-name SET_CNAME
route ^$ dest-interface IF_SIP MAPPING_INCOMING_CALLS_WITH_CNAME
route default dest-interface IF_SIP MAPPING_INCOMING_CALLS
routing-table called-e164 RT_ISDN_TO_SIP
route T2 dest-table SET_CNAME
routing-table called-e164 RT_SIP_TO_ISDN
route default dest-service HG_TO_ISDN
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 (3.%)-(.%)-(.%)-(.%)-(.%) to \1\2\3\4\5
map (3.%)-(.%)-(.%)-(.%) to \1\2\3\4
map (3.%)-(.%)-(.%) to \1\2\3
map (3.%)-(.%) to \1\2
map (3.%) to \1
map (.%)-(.%)-(.%)-(.%)-(.%) to 0\1\2\3\4\5
map (.%)-(.%)-(.%)-(.%) to 0\1\2\3\4
map (.%)-(.%)-(.%) to 0\1\2\3
map (.%)-(.%) to 0\1\2
map (.%) to 0\1
mapping-table calling-e164 to calling-name MAP_CID_TO_CNAME
map (.%) to \1
mapping-table calling-e164 to calling-e164 SET_CNPN
map 0(.%) to \1
mapping-table calling-type-of-number to calling-type-of-number TYPE
map default to national
mapping-table calling-numbering-plan to calling-numbering-plan PLAN
map default to isdn-telephony
complex-function MAPPING_INCOMING_CALLS
execute 1 MAP_REMOVE_BLANK_CALLERID
execute 2 MAP_LEADING_ZERO
complex-function MAPPING_INCOMING_CALLS_WITH_CNAME
execute 1 MAP_REMOVE_BLANK_CALLERID
execute 2 MAP_LEADING_ZERO
execute 3 MAP_CID_TO_CNAME
complex-function OUTBOUND
execute 1 PLAN
execute 2 SET_CNPN
execute 3 TYPE
interface isdn IF_ISDN_0
route call dest-table RT_ISDN_TO_SIP
call-reroute emit
call-hold disable
diversion emit
caller-name
user-side-ringback-tone
interface sip IF_SIP
bind context sip-gateway GW_SIP
route call dest-table RT_SIP_TO_ISDN
remote 192.168.1.41 5060
early-disconnect
call-reroute accept
address-translation outgoing-call request-uri user-part fix 10000 host-part to-header target-param none
trust remote
service hunt-group HG_TO_ISDN
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_ISDN_0
context cs switch
no shutdown
authentication-service AS_ALL_LINES
realm 1 3CXPhoneSystem
username 10000 password +kM1BNWE75Wh6NZbsmTPrg== encrypted
location-service LS_10000
domain 1 192.168.1.41
identity-group default
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES username 10000
identity 10000
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES
registration outbound
registrar 192.168.1.41 5060
lifetime 300
register auto
context sip-gateway GW_SIP
interface LAN
bind interface IF_IP_LAN context router port 5060
context sip-gateway GW_SIP
bind location-service LS_10000
no shutdown
port ethernet 0 0
medium auto
encapsulation ip
bind interface IF_IP_LAN router
no shutdown
port bri 0 0
clock auto
encapsulation q921
q921
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