Dato che abbiamo impiegato diverso tempo a configurarlo per bene, posto la nostra configurazione funzionante.
Nel nostro caso il Patton risponde su uno solo dei due numeri a nostra disposizione (evidenziato in giallo)
Se volete che risponda su tutte le linee in ingresso sostituite il numero con T2
#----------------------------------------------------------------#
# #
# SN4120/1BIS2V #
# R6.3 2013-03-07 H323 SIP #
# 1970-01-02T18:44:50 #
#----------------------------------------------------------------#
cli version 3.20
clock local default-offset +00:00
webserver port 80 language en
sntp-client
sntp-client server primary pool.ntp.org port 123 version 4
system
ic voice 0
low-bitrate-codec g729
system
clock-source 1 bri 0 0
profile ppp default
profile call-progress-tone defaultDialtone
play 1 1000 425 -6
profile call-progress-tone defaultAlertingtone
play 1 1000 425 -13
pause 2 4000
profile call-progress-tone defaultBusytone
play 1 300 425 -7
pause 2 200
profile call-progress-tone defaultReleasetone
play 1 300 425 -7
pause 2 400
profile call-progress-tone defaultCongestiontone
play 1 300 425 -7
pause 2 400
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
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 10.0.0.150 255.255.255.0
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 0331XXXXXX dest-interface IF_SIP_0 MAPPING_INCOMING_CALLS
routing-table called-e164 RT_SIP_TO_ISDN_0
route default dest-interface IF_ISDN_0 CLIP_DISABLED
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 calling-e164 to calling-e164 CALLINGE164
map 0(.%) to \1
mapping-table calling-type-of-number to calling-type-of-number CALLINGNUMBERTYPE
map default to national
mapping-table calling-numbering-plan to calling-numbering-plan CALLINGNUMBERPLAN
map default to isdn-telephony
mapping-table calling-uri to calling-pi CALLINGPIRESTRICTED
map sip:anonymous@.% to restricted
complex-function MAPPING_INCOMING_CALLS
execute 1 MAP_REMOVE_BLANK_CALLERID
execute 2 MAP_LEADING_ZERO
complex-function CLIP_ENABLED
execute 1 CALLINGNUMBERPLAN
execute 2 CALLINGE164
execute 3 CALLINGNUMBERTYPE
execute 4 CALLINGPIRESTRICTED
complex-function CLIP_DISABLED
execute 1 CALLINGPIRESTRICTED
interface isdn IF_ISDN_0
route call dest-table RT_ISDN_TO_SIP_0
call-hold disable
caller-name
user-side-ringback-tone
interface sip IF_SIP_0
bind context sip-gateway GW_SIP_0
route call dest-table RT_SIP_TO_ISDN_0
remote 10.0.0.43 5060
early-connect
early-disconnect
address-translation outgoing-call request-uri user-part fix 10000 host-part to-header target-param none
trust remote
context cs switch
no shutdown
authentication-service AS_ALL_LINES
realm 1 3CXPhoneSystem
username 10000 password Z7wh1f7Ii0qJzcJxEhGKUw== encrypted
location-service LS_10000
domain 1 10.0.0.43
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 10.0.0.43 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_10000
no shutdown
port ethernet 0 0
medium 10 half
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
Ecco il TRUNK lato FreePBX
allow=g729
qualify=yes
type=friend
port=5060
username=10000
fromuser=10000
secret=2hbzl36
host=dynamic
defaultip=10.0.0.150
context=from-pstn
Nessun commento:
Posta un commento