Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 02-08-10, 05:09 AM
claudiopizzillo claudiopizzillo is offline
Member
 
Join Date: May 2008
Posts: 31
Start from this: Italian ISDN

Code:
clock local offset +01:00
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 193.204.114.105 port 123 version 4 
sntp-client server secondary 193.204.114.233 port 123 version 4
sntp-client poll-interval 36 
sntp-client local-clock-offset 
system hostname PATTON

system

  ic voice 0
  low-bitrate-codec g729


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


profile call-progress-tone IT_Dialtone

  play 200 425 -12
  no play 200
  play 600 425 -12
  no play 1000

profile call-progress-tone IT_Alertingtone

  play 1000 425 -12
  no play 4000

profile call-progress-tone IT_Busytone

  play 500 425 -12
  no play 500

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 congestion-tone IT_Congestion
  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


profile voip VOIP
  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 no-silence-suppression

profile pstn default

profile sip default

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface WAN
    ipaddress 192.168.1.250 255.255.255.0
    no napt-inside
  interface LAN
    ipaddress 192.168.2.1 255.255.255.0
    no napt-inside

context cs switch

  digit-collection timeout 4
  no digit-collection terminating-char
  address-completion timeout 5
  national-prefix 0
  international-prefix 00

  routing-table called-e164 FROM_SIP
    route .%T dest-service TELECOM_GROUP MAPPING
    use profile tone-set IT

  routing-table called-e164 ROUTING
    route .%T dest-interface IF_ASTERISK MAPPING

  mapping-table itc to itc MAPPING
    map default to speech

  interface isdn IF_1
    route call dest-table ROUTING
    use profile tone-set IT

  interface isdn IF_2
    route call dest-table ROUTING
    use profile tone-set IT
    isdn-date-time

  interface isdn IF_DEV0

  interface sip IF_ASTERISK
    bind gateway GW_ASTERISK
    service default
    route call dest-table FROM_SIP
    early-disconnect
    remote-party-id called-party
    remote-party-id calling-party

  service hunt-group TELECOM_GROUP
    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 user-busy
    drop-cause destination-out-of-order
    route call 1 dest-interface IF_1
    route call 2 dest-interface IF_1
    route call 3 dest-interface IF_2
    route call 4 dest-interface IF_2

context cs switch
  no shutdown

gateway sip GW_ASTERISK
  bind interface WAN router

  service default
    domain 192.168.1.240
    realm 192.168.1.240
    authentication 1001 password 1234
    default-server 192.168.1.240 loose-router
    registrar 192.168.1.240 5060
    user 1001
    session-timer 1800

gateway sip GW_ASTERISK
  no shutdown

port ethernet 0 0
  medium 10 half
  bind interface WAN router
  no shutdown

port ethernet 0 1
  medium 10 half
  bind interface LAN router
  no shutdown

port bri 0 0
  clock auto
  encapsulation q921

  q921
    permanent-layer2
    protocol pmp
    uni-side user
    encapsulation q931

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

port bri 0 0
  no shutdown

port bri 0 1
  clock auto
  encapsulation q921

  q921
    permanent-layer2
    protocol pmp
    uni-side user
    encapsulation q931

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

port bri 0 1
  no shutdown

port bri 0 2
  clock auto
  encapsulation q921

  q921
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side net
      bchan-number-order ascending

port bri 0 2
  shutdown
__________________
PIAF 1.4 32bit - Asterisk 1.6.2.2
Reply With Quote
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:23 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007-2008, Ward Mundy & Associates