Restrykcje

Problemy związane z Unified Communications
Wiadomość
Autor
dmalba
member
member
Posty: 20
Rejestracja: 19 mar 2012, 09:29

Restrykcje

#1

#1 Post autor: dmalba »

Witam Forumowiczów,

Dostałem w spadku zajęcie się zmianą konfiguracji CUCME na UC560.

Domyślnie kiedy end user powinien zadzwonić na zewnątrzn (po kraju) powinien wybrać 0 a w przypadku połączeń zagranicznych powinien wybrać pierw 9 (połączenie idzie przez numer dostepowy).

Zdarza się prawie zawsze, że użytkownicy zapominają jak wybierać numer zagraniczny i przychodzi większa faktura.

Wiem, że jest możliwość zablokowania połączeń międzynarodowych przez zdefiniowanie maksymalnej długości numeru telefonu. Tylko niestety jest takie urządzenie faks które jest podpięte do portu FXS. I faksy muszą wychodzić przez 0 - czyli połączenie po kraju.

Czy można jakoś skonfigurować centralę tak, żeby wykluczyć ograniczenia dla faksu w przypadku skonfigurowaniu restrykcji dla end userów.

Poniżej konfiguracja:

Kod: Zaznacz cały


!
!
!
!
trunk group ALL_FXO
 max-retry 5
 voice-class cause-code 1
 hunt-scheme longest-idle
!
!
voice call send-alert
voice rtp send-recv
!
voice service voip
 ip address trusted list
  ipv4 192.168.10.0 255.255.255.0
  ipv4 10.1.10.0 255.255.255.0
  ipv4 192.168.1.0 255.255.255.0
  ipv4 192.168.4.0 255.255.255.0
  ipv4 0.0.0.0 0.0.0.0
 allow-connections h323 to h323
 allow-connections h323 to sip
 allow-connections sip to h323
 allow-connections sip to sip
 supplementary-service h450.12
 no supplementary-service sip moved-temporarily
 no supplementary-service sip refer
 fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711ulaw
 sip
  registrar server expires max 3600 min 3600
  no update-callerid
!
voice class codec 1
 codec preference 1 g711ulaw
 codec preference 2 g729r8
!
voice class custom-cptone CCAleavetone
 dualtone conference
  frequency 400 800
  cadence 400 50 200 50 200 50
!
voice class custom-cptone CCAjointone
 dualtone conference
  frequency 600 900
  cadence 300 150 300 100 300 50
!
!
voice class cause-code 1
 no-circuit
!
voice register global
 mode cme
 source-address 192.168.10.2 port 5060
 no outbound-proxy 
 max-dn 20
 max-pool 20
 load 9971 sip9971.9-2-2
 load 9951 sip9951.9-2-2
 load 8961 sip8961.9-2-2
 timezone 23
 time-format 24
 date-format D/M/Y
 hold-alert
 tftp-path flash:
 create profile sync 0001060872123262
!

!
voice translation-rule 410
 rule 1 /^0\(.*\)/ /\1/
 rule 2 /^9\(.*\)/ /\1/
 rule 3 /^8\(.*\)/ /\1/
 rule 15 /^...$/ /871990058/
!
voice translation-rule 411
 rule 1 /^0\(.*\)/ /ABCD0\1/
 rule 2 /^9\(.*\)/ /ABCD9\1/
 rule 3 /^8\(.*\)/ /ABCD8\1/
!
voice translation-rule 412
 rule 1 /^ABCD\(.*\)/ /\1/
!
voice translation-rule 422
 rule 1 /^ABCD0700....../ //
 rule 15 /^ABCD\(.*\)/ /\1/
!
voice translation-rule 500
 rule 1 /500/ /222/
!
voice translation-rule 1000
 rule 1 /.*/ //
!
voice translation-rule 1111
 rule 15 /^...$/ /871990058/
!
voice translation-rule 1112
 rule 1 /^0/ //
 rule 2 /^8/ //
 rule 3 /^9/ //
!
voice translation-rule 1113
 rule 1 /^9/ /800000003,,,,,,/
!
voice translation-rule 2001
!
voice translation-rule 2222
 rule 1 /^0700....../ //
!
voice translation-rule 3265
 rule 1 /\(^.........$\)/ /0\1/
 rule 2 /\(^.*$\)/ /900\1/
 rule 15 /\(^ABCD$\)/ /ABCD\1/
!
voice translation-rule 6000
 rule 2 /\(^.*$\)/ /8\1/
!
!
voice translation-profile 500_to_GSM
 translate called 500
!
voice translation-profile CALLER_ID_TRANSLATION_PROFILE
 translate calling 1111
!
voice translation-profile CallBlocking
 translate called 2222
!
voice translation-profile INCOMING_CallerID_PROFILE
 translate calling 3265
!
voice translation-profile INCOMING_GSM
 translate calling 6000
!
voice translation-profile OUTGOING_0800000003
 translate called 1113
!
voice translation-profile OUTGOING_TRANSLATION_PROFILE
 translate called 1112
!
voice translation-profile PSTN_CallForwarding
 translate redirect-target 410
 translate redirect-called 410
!
voice translation-profile PSTN_Outgoing
 translate calling 1111
 translate called 1112
 translate redirect-target 410
 translate redirect-called 410
!
voice translation-profile SIP_Incoming
 translate called 411
!
voice translation-profile SIP_Passthrough
 translate called 412
!
voice translation-profile SIP_Passthrough_CallBlocking
 translate called 422
!
voice translation-profile nondialable
 translate called 1000
!
!

!
voice-port 0/0/0
 cptone PL
 station-id name FAX
 station-id number 199
 caller-id enable
!
voice-port 0/0/1
 cptone PL
 timeouts ringing infinity
 timing hookflash-in 150 0
 station-id name 204
 caller-id enable
!
voice-port 0/0/2
 cptone PL
 timeouts ringing infinity
 timing hookflash-in 150 0
 station-id name Sek 278
 caller-id enable
!
voice-port 0/0/3
 cptone PL
 station-id name Fax2Mail
!
voice-port 0/1/0
 trunk-group ALL_FXO 64
 translation-profile incoming INCOMING_CallerID_PROFILE
 supervisory disconnect dualtone mid-call
 input gain 5
 output attenuation -2
 compand-type a-law
 cptone PL
 timeouts call-disconnect 1
 timeouts wait-release 1
 timing sup-disconnect 50
 connection plar opx 402
 impedance complex2
 description Configured by CCA 323321627-Custom-AA
 caller-id enable
!
voice-port 0/1/1
 trunk-group ALL_FXO 64
 translation-profile incoming INCOMING_CallerID_PROFILE
 supervisory disconnect dualtone mid-call
 input gain 5
 output attenuation -2
 compand-type a-law
 cptone PL
 timeouts call-disconnect 1
 timeouts wait-release 1
 timing sup-disconnect 50
 connection plar opx 402
 impedance complex2
 description Configured by CCA 323321499-Custom-AA
 caller-id enable
!
voice-port 0/1/2
 trunk-group ALL_FXO 64
 translation-profile incoming INCOMING_CallerID_PROFILE
 supervisory disconnect dualtone mid-call
 input gain 4
 output attenuation -1
 compand-type a-law
 cptone PL
 timeouts call-disconnect 1
 timeouts wait-release 1
 timing sup-disconnect 50
 connection plar opx 402
 impedance complex4
 description Configured by CCA 323354103-Custom-AA
 caller-id enable
!
voice-port 0/1/3
 no battery-reversal
 connection plar opx 279
 description Configured by CCA 297_FAX_LOOP-Custom-OP
!
voice-port 0/4/0
 auto-cut-through
 signal immediate
 input gain auto-control -15
 description Music On Hold Port
!
sccp local Vlan90
sccp ccm 192.168.10.2 identifier 1 version 4.0 
sccp
!
sccp ccm group 1
 associate ccm 1 priority 1
 associate profile 1 register confprof1
 associate profile 2 register mtp442b03d55ba0
!
dspfarm profile 2 transcode  
 description CCA transcoding for SIP Trunk ONESTREAM
 codec g729abr8
 codec g729ar8
 codec g711ulaw
 maximum sessions 10
 associate application SCCP
!
dspfarm profile 1 conference  
 description DO NOT MODIFY, active CCA conference profile - CCA2.0 codec711
 codec g711ulaw
 codec g711alaw
 maximum conference-participants 32
 maximum sessions 2
 associate application SCCP
!
dial-peer cor custom
 name internal
 name local
 name local-plus
 name international
 name national
 name national-plus
 name emergency
 name toll-free
!
!
dial-peer cor list call-internal
 member internal
!
dial-peer cor list call-local
 member local
!
dial-peer cor list call-local-plus
 member local-plus
!
dial-peer cor list call-national
 member national
!
dial-peer cor list call-national-plus
 member national-plus
!
dial-peer cor list call-international
 member international
!
dial-peer cor list call-emergency
 member emergency
!
dial-peer cor list call-toll-free
 member toll-free
!
dial-peer cor list user-internal
 member internal
 member emergency
!
dial-peer cor list user-local
 member internal
 member local
 member emergency
 member toll-free
!
dial-peer cor list user-local-plus
 member internal
 member local
 member local-plus
 member emergency
 member toll-free
!
dial-peer cor list user-national
 member internal
 member local
 member local-plus
 member national
 member emergency
 member toll-free
!
dial-peer cor list user-national-plus
 member internal
 member local
 member local-plus
 member national
 member national-plus
 member emergency
 member toll-free
!
dial-peer cor list user-international
 member internal
 member local
 member local-plus
 member international
 member national
 member national-plus
 member emergency
 member toll-free
!
!
dial-peer voice 1 pots
 description ** CCA Analog Fax **
 destination-pattern 199
 port 0/0/0
 no sip-register
!
dial-peer voice 2 pots
 service stcapp
 port 0/0/1
!
dial-peer voice 3 pots
 service stcapp
 port 0/0/2
!
dial-peer voice 4 pots
 destination-pattern 200
 port 0/0/3
!
dial-peer voice 5 pots
 description ** MOH Port **
 destination-pattern ABC
 port 0/4/0
 no sip-register
!
dial-peer voice 50 pots
 description ** incoming dial peer **
 incoming called-number ^AAAA$
 port 0/1/0
!
dial-peer voice 51 pots
 description ** incoming dial peer **
 incoming called-number ^AAAA$
 port 0/1/1
!
dial-peer voice 52 pots
 description ** incoming dial peer **
 incoming called-number ^AAAA$
 direct-inward-dial
 port 0/1/2
!
dial-peer voice 53 pots
 description ** incoming dial peer **
 service cca_onramp
 incoming called-number ^AAAA$
 port 0/1/3
!
dial-peer voice 54 pots
 description ** FXO pots dial-peer **
 destination-pattern A0
 port 0/1/0
 no sip-register
!
dial-peer voice 55 pots
 description ** FXO pots dial-peer **
 destination-pattern A1
 port 0/1/1
 no sip-register
!
dial-peer voice 56 pots
 description ** FXO pots dial-peer **
 service cca_onramp
 destination-pattern A2
 port 0/1/2
 no sip-register
!
dial-peer voice 57 pots
 description ** FXO pots dial-peer **
 service cca_onramp
 destination-pattern A3
 port 0/1/3
 no sip-register
!
dial-peer voice 2000 voip
 description ** cue voicemail pilot number **
 destination-pattern 400
 b2bua
 session protocol sipv2
 session target ipv4:10.1.10.1
 voice-class sip outbound-proxy ipv4:10.1.10.1  
 dtmf-relay rtp-nte
 codec g711ulaw
 no vad
!
dial-peer voice 2001 voip
 description ** cue auto attendant number **
 destination-pattern 402
 b2bua
 session protocol sipv2
 session target ipv4:10.1.10.1
 voice-class sip outbound-proxy ipv4:10.1.10.1  
 dtmf-relay rtp-nte
 codec g711ulaw
 no vad
!
dial-peer voice 60 pots
 trunkgroup ALL_FXO
 description **CCA*POLAND*Krajowe**
 translation-profile outgoing OUTGOING_TRANSLATION_PROFILE
 preference 5
 destination-pattern 0[1-9]T
 forward-digits all
 no sip-register
!
dial-peer voice 61 pots
 trunkgroup ALL_FXO
 description **CCA*POLAND*Miedzynarodowe**
 translation-profile outgoing OUTGOING_TRANSLATION_PROFILE
 preference 5
 destination-pattern 000T
 forward-digits all
 no sip-register
!
dial-peer voice 1023 pots
 trunkgroup ALL_FXO
 corlist outgoing call-emergency
 description **CCA*POLSKA*Awaryjne**
 translation-profile outgoing CALLER_ID_TRANSLATION_PROFILE
 preference 5
 destination-pattern 112
 forward-digits all
 no sip-register
!
dial-peer voice 6 pots
 description "catch all dial peer for BRI/PRI"
 translation-profile incoming nondialable
 incoming called-number .%
 direct-inward-dial
!
dial-peer voice 62 pots
 trunkgroup ALL_FXO
 description **CCA*POLSKA*Tanie polaczenia**
 translation-profile outgoing OUTGOING_0800000003
 preference 5
 destination-pattern 90T
 forward-digits all
 no sip-register
!
dial-peer voice 1800 mmoip
 description ** fax onramp for outbound faxmail to CUE **
 service fax_on_vfc_onramp_app out-bound
 destination-pattern 279
 information-type fax
 session target mailto:279@10.1.10.1
!
dial-peer voice 1000 voip
 permission term
 description ** Incoming call from SIP trunk (ONESTREAM) **
 session protocol sipv2
 session target sip-server
 incoming called-number .%
 voice-class codec 1  
 voice-class sip dtmf-relay force rtp-nte
 dtmf-relay rtp-nte
 fax rate 14400
 fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711ulaw
 ip qos dscp cs5 media
 ip qos dscp cs4 signaling
 no vad
!
dial-peer voice 1003 voip
 description ** Passthrough Inbound Calls for PSTN from CUE **
 translation-profile incoming SIP_Passthrough
 b2bua
 session protocol sipv2
 session target ipv4:10.1.10.1
 incoming called-number ABCDT
 dtmf-relay rtp-nte
 codec g711ulaw
 no vad
!
dial-peer voice 1005 voip
 description ** Passthrough Inbound Calls for MWI from CUE **
 b2bua
 session protocol sipv2
 session target ipv4:10.1.10.1
 incoming called-number A80T
 dtmf-relay rtp-nte
 codec g711ulaw
 no vad
!
dial-peer voice 1009 voip
 description ** Passthrough Inbound Calls for Internal Extensions from CUE **
 b2bua
 session protocol sipv2
 session target ipv4:10.1.10.1
 incoming called-number ^...$
 dtmf-relay rtp-nte
 codec g711ulaw
 no vad
!
dial-peer voice 1025 voip
 description **CCA*POLSKA*Bramka GSM**
 translation-profile outgoing PSTN_Outgoing
 preference 1
 destination-pattern 8[1-9]T
 session protocol sipv2
 session target sip-server
 voice-class codec 1  
 voice-class sip dtmf-relay force rtp-nte
 dtmf-relay rtp-nte
 fax rate 14400
 fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711ulaw
 ip qos dscp cs5 media
 ip qos dscp cs4 signaling
 no vad
!
dial-peer voice 4005 voip
 corlist outgoing call-local
 description ** SIP dla BlackBerry **
 destination-pattern 3..
 session protocol sipv2
 session target ipv4:192.168.10.2
 voice-class codec 1  
 voice-class sip dtmf-relay force rtp-nte
 dtmf-relay rtp-nte
 fax rate 14400
 fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711ulaw
 ip qos dscp cs5 media
 ip qos dscp cs4 signaling
 no vad
!
dial-peer voice 100 pots
 description ** incoming dial peer **
 incoming called-number ^AAAA$
!
dial-peer voice 101 pots
 description ** incoming dial peer **
 incoming called-number ^AAAA$
!
dial-peer voice 102 pots
 description ** incoming dial peer **
 incoming called-number ^AAAA$
!
dial-peer voice 103 pots
 description ** incoming dial peer **
 incoming called-number ^AAAA$
!
!
no dial-peer outbound status-check pots
sip-ua 
 keepalive target ipv4:192.168.10.10:5060
 no remote-party-id
 retry invite 2
 retry register 10
 timers connect 100
 timers keepalive active 100
 registrar ipv4:192.168.10.10:5060 expires 3600
 sip-server ipv4:192.168.10.10:5060
 host-registrar
 g729-annexb override
!
!
!
Z góry dzięki za wszelką pomoc.

przemek_z
wannabe
wannabe
Posty: 56
Rejestracja: 13 lut 2011, 11:57
Lokalizacja: Gdynia

Re: Restrykcje

#2

#2 Post autor: przemek_z »

Hej,

Oczywiście, że można. Masz ładnie zdefiniowane corlist-y. Wystarczy je odpowiednio użyć.

Pozdro.

PaJacek
wannabe
wannabe
Posty: 115
Rejestracja: 02 lut 2004, 10:47
Lokalizacja: Warszawa

#3

#3 Post autor: PaJacek »

Poza tym imho mozesz zrobic translacje, ktora zamieni 000 (domyslam sie, ze takie cyfry wystepuja przy call'u miedzynarodowym na poczatku) na 900 najpierw, aby zapobiec pomylkom userow... :)

ODPOWIEDZ