Patton 4634 confguration (fast am Ziel)

ctct

Neuer User
Mitglied seit
8 Jun 2009
Beiträge
6
Punkte für Reaktionen
0
Punkte
0
Hallo leutz!

Ich habe eine ISDN > Patton 4634 > Trixbox 2.0 CE Lösung mit 3 Trunks für 3 ISDN Anschlüsse aber leider ein kleines Problem. Ich arbeite bereits mehrere Tage daran und bin nun eindlich etwas weiter.
Ausgehende Anrufe gehen aber einkommende bleiben irgendwie hängen.
Kann jemand kurz schauen was das Problem sein könnte. Vier Augen sehen mehr wie zwei. :)

Asterisk: 172.16.0.10
Router: 192.168.0.11
Patton: 192.168.0.45


Code:
#----------------------------------------------------------------#
#                                                                #
# SN4634/3BIS                                                    #
# R5.3 2009-05-20 H323 SIP BRI                                   #
# 2009-07-28T06:48:55                                            #
# SN/00A0BA048EEC                                                #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 192.168.0.11 port 123 version 4
sntp-client server secondary 192.168.0.12 port 123 version 4

system

  ic voice 0
    low-bitrate-codec g729

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

profile napt NAPT_WAN

profile ppp default

profile tone-set default

profile voip default
  codec 1 g711alaw64k rx-length 20 tx-length 20 no-silence-suppression
  codec 2 g711ulaw64k rx-length 20 tx-length 20
  dtmf-relay signaling default

profile pstn default

profile sip default

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface WAN
    ipaddress unnumbered
    use profile napt NAPT_WAN
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

  interface LAN
    ipaddress 192.168.0.45 255.255.0.0
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

context ip router
  route 0.0.0.0 0.0.0.0 192.168.0.11 0

context cs switch
  digit-collection timeout 4
  national-prefix 0
  international-prefix 00

  routing-table called-e164 RT01_2_ISDN
    route .%T dest-interface ISDN1 INT-TO-EXT

  routing-table called-e164 RT02_2_ISDN
    route .%T dest-interface ISDN2 INT-TO-EXT

  routing-table called-e164 RT03_2_ISDN
    route .%T dest-interface ISDN3 INT-TO-EXT

  mapping-table itc to itc MT_ITC
    map default to speech

  mapping-table calling-pi to calling-pi MT_RESTRICTED
    map allowed to restricted

  mapping-table calling-pi to calling-e164 NO-CNPN
    map restricted to ""

  complex-function INT-TO-EXT
    execute 1 MT_RESTRICTED
    execute 2 NO-CNPN
    execute 3 MT_ITC

  interface isdn ISDN1
    route call dest-interface SIP_IF_1001
    call-hold disable
    aoc-s automatic
    aoc-d automatic
    aoc-e automatic
    address-complete-indication accept set
    address-complete-indication emit set
    dtmf-dialing
    no early-proceeding
    no call-waiting
    caller-name
    inband-info accept force call-release

  interface isdn ISDN2
    route call dest-interface SIP_IF_1002
    call-hold disable
    aoc-s automatic
    aoc-d automatic
    aoc-e automatic
    address-complete-indication accept set
    address-complete-indication emit set
    dtmf-dialing
    no early-proceeding
    no call-waiting
    caller-name
    inband-info accept force call-release

  interface isdn ISDN3
    route call dest-interface SIP_IF_1003
    call-hold disable
    aoc-s automatic
    aoc-d automatic
    aoc-e automatic
    address-complete-indication accept set
    address-complete-indication emit set
    dtmf-dialing
    no early-proceeding
    no call-waiting
    caller-name
    inband-info accept force call-release

  interface sip SIP_IF_1001
    bind context sip-gateway SIP_GW_1
    route call dest-table RT01_2_ISDN
    early-disconnect

  interface sip SIP_IF_1002
    bind context sip-gateway SIP_GW_2
    route call dest-table RT02_2_ISDN
    early-disconnect

  interface sip SIP_IF_1003
    bind context sip-gateway SIP_GW_3
    route call dest-table RT03_2_ISDN
    early-disconnect

context cs switch
  no shutdown

authentication-service AUT_1001
  realm 1 172.16.0.10
  username 1001 password /cC0XGzbtGs= encrypted

authentication-service AUT_1002
  realm 1 172.16.0.10
  username 1002 password Mm1a+aQkWyw= encrypted

authentication-service AUT_1003
  realm 1 172.16.0.10
  username 1003 password eYLgTz8yTW8= encrypted

location-service LS_1001
  domain 1 172.16.0.10 5061

  identity ID_1001
    display-name 8506769
    phone-context from-pstn

    authentication outbound
      authenticate 1 authentication-service AUT_1001 username 1001

    authentication inbound
      authenticate 1 authentication-service AUT_1001 username 1001

    registration outbound

location-service LS_1002
  domain 1 172.16.0.10 5062

  identity ID_1002
    display-name 8506888
    phone-context from-pstn

    authentication outbound
      authenticate 1 authentication-service AUT_1002 username 1002

    authentication inbound
      authenticate 1 authentication-service AUT_1002 username 1002

location-service LS_1003
  domain 1 172.16.0.10 5063

  identity ID_1003
    display-name 8502244
    phone-context from-pstn

    authentication outbound
      authenticate 1 authentication-service AUT_1003 username 1003

    authentication inbound
      authenticate 1 authentication-service AUT_1003 username 1003

context sip-gateway SIP_GW_1

  interface SIP_IF_1001
    bind interface LAN context router port 5061

context sip-gateway SIP_GW_1
  bind location-service LS_1001
  no shutdown

context sip-gateway SIP_GW_2

  interface SIP_IF_1002
    bind interface LAN context router port 5062

context sip-gateway SIP_GW_2
  bind location-service LS_1002
  no shutdown

context sip-gateway SIP_GW_3

  interface SIP_IF_1003
    bind interface LAN context router port 5063

context sip-gateway SIP_GW_3
  bind location-service LS_1003
  no shutdown

port ethernet 0 0
  medium auto
  encapsulation ip
  bind interface WAN router
  no shutdown

port ethernet 0 1
  medium auto
  encapsulation ip
  bind interface LAN router
  no shutdown

port bri 0 0
  clock slave
  encapsulation q921

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

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

port bri 0 0
  no shutdown

port bri 0 1
  clock slave
  encapsulation q921

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

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

port bri 0 1
  no shutdown

port bri 0 2
  clock slave
  encapsulation q921

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

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

port bri 0 2
  no shutdown

Trunk 1:
Code:
context=from-pstn
defaultip=192.168.0.45
dtmfmode=auto
host=dynamic
port=5061
qualify=yes
type=friend
username=1001

Grüsse
Ron
 
Zuletzt bearbeitet:
Hallo!

Siehst du am Asterisk das ein Anruf reinkommt?
Versuch mal vom ISDN-Interface anstelle ins Interface zu routen auf eine Routingtable umzustellen.
Ich hab auch nur ein Sip-Interface für den Asterisk und sende alle Calls vom ISDN zum Asterisk und lasse dann Asterisk selbst wieder auf die Nebenstellen routen.

Hannes
 
Hallo. Danke für deine Anwtort.

Ich sehe kein Anruf in Asterisk reinkommen. Wenn ich die nummer anrufe dann bipt es 3 mal kurz und schon wars. Ich sehe zwar das LED kurz auf leuchten.
Ich habe Routingtable versucht aber nichts gebracht.
Wie kannst du mit nur einem SIP interface dann eine specifische nummer und NT wählen? Kann man das konfigurieren? Das der Patton automatisch das richtige NT nimmt für die DDI?

Gruss
Ron

Update:
So, habe es nun hingekrigt das es zum Asterisk kommt. Leider leitet Trixbox den Anruf nicht weiter.

Unter Inbound Routes (Asterisk) habe folgendes eingestellt:
DID Number: 8502244
Extensions: 201 (mein Telefon)

Hier noch meine aktuelle config:
Code:
#----------------------------------------------------------------#
#                                                                #
# SN4634/3BIS                                                    #
# R5.3 2009-05-20 H323 SIP BRI                                   #
# 2009-07-28T13:50:18                                            #
# SN/00A0BA048EEC                                                #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 192.168.0.11 port 123 version 4
sntp-client server secondary 192.168.0.12 port 123 version 4
timer DaylightSavingsOn 02:00 mar 25th next sunday every year ""
timer DaylightSavingsOff 03:00 oct 25th next sunday every year ""

system

  ic voice 0
    low-bitrate-codec g729

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

profile napt NAPT_WAN

profile ppp default

profile tone-set default

profile voip default
  codec 1 g711alaw64k rx-length 20 tx-length 20 no-silence-suppression
  codec 2 g711ulaw64k rx-length 20 tx-length 20
  dtmf-relay signaling default

profile pstn default

profile sip default

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface WAN
    ipaddress unnumbered
    use profile napt NAPT_WAN
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

  interface LAN
    ipaddress 192.168.0.45 255.255.0.0
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

context ip router
  route 0.0.0.0 0.0.0.0 192.168.0.11 0

context cs switch
  digit-collection timeout 4
  national-prefix 0
  international-prefix 00

  routing-table called-e164 RT01_2_ISDN
    route .%T dest-interface ISDN1 INT-TO-EXT

  routing-table called-e164 RT02_2_ISDN
    route .%T dest-interface ISDN2 INT-TO-EXT

  routing-table called-e164 RT03_2_ISDN
    route .%T dest-interface ISDN3 INT-TO-EXT

  routing-table called-e164 RT01_FROM_ISDN
    route default dest-interface SIP_IF_1001

  routing-table called-e164 RT02_FROM_ISDN
    route default dest-interface SIP_IF_1002

  routing-table called-e164 RT03_FROM_ISDN
    route default dest-interface SIP_IF_1003

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

  complex-function INT-TO-EXT
    execute 1 MP_REM_CLIR

  interface isdn ISDN1
    route call dest-table RT01_FROM_ISDN
    call-hold disable
    aoc-s automatic
    aoc-d automatic
    aoc-e automatic
    address-complete-indication accept set
    address-complete-indication emit set
    dtmf-dialing
    no early-proceeding
    no call-waiting
    caller-name
    inband-info accept force call-release

  interface isdn ISDN2
    route call dest-table RT02_FROM_ISDN
    call-hold disable
    aoc-s automatic
    aoc-d automatic
    aoc-e automatic
    address-complete-indication accept set
    address-complete-indication emit set
    dtmf-dialing
    no early-proceeding
    no call-waiting
    caller-name
    inband-info accept force call-release

  interface isdn ISDN3
    route call dest-table RT03_FROM_ISDN
    call-hold disable
    aoc-s automatic
    aoc-d automatic
    aoc-e automatic
    address-complete-indication accept set
    address-complete-indication emit set
    dtmf-dialing
    no early-proceeding
    no call-waiting
    caller-name
    inband-info accept force call-release

  interface sip SIP_IF_1001
    bind context sip-gateway SIP_GW_1
    route call dest-table RT01_2_ISDN
    remote 172.16.0.10 5061

  interface sip SIP_IF_1002
    bind context sip-gateway SIP_GW_2
    route call dest-table RT02_2_ISDN
    remote 172.16.0.10 5062

  interface sip SIP_IF_1003
    bind context sip-gateway SIP_GW_3
    route call dest-table RT03_2_ISDN
    remote 172.16.0.10 5063

context cs switch
  no shutdown

authentication-service AUT_1001
  realm 1 172.16.0.10
  username 1001 password /cC0XGzbtGs= encrypted

authentication-service AUT_1002
  realm 1 172.16.0.10
  username 1002 password Mm1a+aQkWyw= encrypted

authentication-service AUT_1003
  realm 1 172.16.0.10
  username 1003 password eYLgTz8yTW8= encrypted

location-service LS_1001
  domain 1 172.16.0.10 5061

  identity ID_1001
    display-name 8506769
    phone-context from-pstn

    authentication outbound
      authenticate 1 authentication-service AUT_1001 username 1001

location-service LS_1002
  domain 1 172.16.0.10 5062

  identity ID_1002
    display-name 8506888
    phone-context from-pstn

    authentication outbound
      authenticate 1 authentication-service AUT_1002 username 1002

location-service LS_1003
  domain 1 172.16.0.10 5063

  identity ID_1003
    display-name 8502244
    phone-context from-pstn

    authentication outbound
      authenticate 1 authentication-service AUT_1003 username 1003

context sip-gateway SIP_GW_1

  interface SIP_IF_1001
    bind interface LAN context router port 5061

context sip-gateway SIP_GW_1
  bind location-service LS_1001
  no shutdown

context sip-gateway SIP_GW_2

  interface SIP_IF_1002
    bind interface LAN context router port 5062

context sip-gateway SIP_GW_2
  bind location-service LS_1002
  no shutdown

context sip-gateway SIP_GW_3

  interface SIP_IF_1003
    bind interface LAN context router port 5063

context sip-gateway SIP_GW_3
  bind location-service LS_1003
  no shutdown

port ethernet 0 0
  medium auto
  encapsulation ip
  bind interface WAN router
  no shutdown

port ethernet 0 1
  medium auto
  encapsulation ip
  bind interface LAN router
  no shutdown

port bri 0 0
  clock slave
  encapsulation q921

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

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

port bri 0 0
  no shutdown

port bri 0 1
  clock slave
  encapsulation q921

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

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

port bri 0 1
  no shutdown

port bri 0 2
  clock slave
  encapsulation q921

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

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

port bri 0 2
  no shutdown
 

Anhänge

  • Traffic Cap.txt
    39.6 KB · Aufrufe: 8
Zuletzt bearbeitet:
So. Jetzt läuft nun alles.

Config:
Code:
#----------------------------------------------------------------#
#                                                                #
# SN4634/3BIS                                                    #
# R5.3 2009-05-20 H323 SIP BRI                                   #
# 2009-07-28T18:31:02                                            #
# SN/00A0BA048EEC                                                #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 192.168.0.11 port 123 version 4
sntp-client server secondary 192.168.0.12 port 123 version 4
timer DaylightSavingsOn 02:00 mar 25th next sunday every year ""
timer DaylightSavingsOff 03:00 oct 25th next sunday every year ""

system

  ic voice 0
    low-bitrate-codec g729

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

profile napt NAPT_WAN

profile ppp default

profile tone-set default

profile voip default
  codec 1 g711alaw64k rx-length 20 tx-length 20 no-silence-suppression
  codec 2 g711ulaw64k rx-length 20 tx-length 20
  dtmf-relay signaling default

profile pstn default

profile sip default

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface WAN
    ipaddress unnumbered
    use profile napt NAPT_WAN
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

  interface LAN
    ipaddress 192.168.0.45 255.255.0.0
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

context ip router
  route 0.0.0.0 0.0.0.0 192.168.0.11 0

context cs switch
  digit-collection timeout 4
  national-prefix 0
  international-prefix 00

  routing-table called-e164 RT01_2_ISDN
    route .%T dest-interface ISDN1 INT-TO-EXT

  routing-table called-e164 RT02_2_ISDN
    route .%T dest-interface ISDN2 INT-TO-EXT

  routing-table called-e164 RT03_2_ISDN
    route .%T dest-interface ISDN3 INT-TO-EXT

  routing-table called-e164 RT01_FROM_ISDN
    route default dest-interface SIP_IF_1001

  routing-table called-e164 RT02_FROM_ISDN
    route default dest-interface SIP_IF_1002

  routing-table called-e164 RT03_FROM_ISDN
    route default dest-interface SIP_IF_1003

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

  complex-function INT-TO-EXT
    execute 1 MP_REM_CLIR

  interface isdn ISDN1
    route call dest-table RT01_FROM_ISDN
    call-hold disable
    aoc-s automatic
    aoc-d automatic
    aoc-e automatic
    address-complete-indication accept set
    address-complete-indication emit set
    dtmf-dialing
    no early-proceeding
    no call-waiting
    caller-name
    inband-info accept force call-release

  interface isdn ISDN2
    route call dest-table RT02_FROM_ISDN
    call-hold disable
    aoc-s automatic
    aoc-d automatic
    aoc-e automatic
    address-complete-indication accept set
    address-complete-indication emit set
    dtmf-dialing
    no early-proceeding
    no call-waiting
    caller-name
    inband-info accept force call-release

  interface isdn ISDN3
    route call dest-table RT03_FROM_ISDN
    call-hold disable
    aoc-s automatic
    aoc-d automatic
    aoc-e automatic
    address-complete-indication accept set
    address-complete-indication emit set
    dtmf-dialing
    no early-proceeding
    no call-waiting
    caller-name
    inband-info accept force call-release

  interface sip SIP_IF_1001
    bind context sip-gateway SIP_GW_1
    route call dest-table RT01_2_ISDN
    remote 172.16.0.10 5060

  interface sip SIP_IF_1002
    bind context sip-gateway SIP_GW_2
    route call dest-table RT02_2_ISDN
    remote 172.16.0.10 5060

  interface sip SIP_IF_1003
    bind context sip-gateway SIP_GW_3
    route call dest-table RT03_2_ISDN
    remote 172.16.0.10 5060

context cs switch
  no shutdown

authentication-service AUT_1001
  realm 1 172.16.0.10
  username 1001 password /cC0XGzbtGs= encrypted

authentication-service AUT_1002
  realm 1 172.16.0.10
  username 1002 password Mm1a+aQkWyw= encrypted

authentication-service AUT_1003
  realm 1 172.16.0.10
  username 1003 password eYLgTz8yTW8= encrypted

location-service LS_1001
  domain 1 172.16.0.10 5061

  identity ID_1001
    display-name 8506769
    phone-context from-pstn

    authentication outbound
      authenticate 1 authentication-service AUT_1001 username 1001

location-service LS_1002
  domain 1 172.16.0.10 5062

  identity ID_1002
    display-name 8506888
    phone-context from-pstn

    authentication outbound
      authenticate 1 authentication-service AUT_1002 username 1002

location-service LS_1003
  domain 1 172.16.0.10 5063

  identity ID_1003
    display-name 8502244
    phone-context from-pstn

    authentication outbound
      authenticate 1 authentication-service AUT_1003 username 1003

context sip-gateway SIP_GW_1

  interface SIP_IF_1001
    bind interface LAN context router port 5061

context sip-gateway SIP_GW_1
  bind location-service LS_1001
  no shutdown

context sip-gateway SIP_GW_2

  interface SIP_IF_1002
    bind interface LAN context router port 5062

context sip-gateway SIP_GW_2
  bind location-service LS_1002
  no shutdown

context sip-gateway SIP_GW_3

  interface SIP_IF_1003
    bind interface LAN context router port 5063

context sip-gateway SIP_GW_3
  bind location-service LS_1003
  no shutdown

port ethernet 0 0
  medium auto
  encapsulation ip
  bind interface WAN router
  no shutdown

port ethernet 0 1
  medium auto
  encapsulation ip
  bind interface LAN router
  no shutdown

port bri 0 0
  clock slave
  encapsulation q921

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

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

port bri 0 0
  no shutdown

port bri 0 1
  clock slave
  encapsulation q921

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

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

port bri 0 1
  no shutdown

port bri 0 2
  clock slave
  encapsulation q921

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

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

port bri 0 2
  no shutdown

Trunk:
disallow=all
allow=alaw
callerid=asreceived
context=from-pstn
defaultip=192.168.0.45
dtmfmode=auto
host=dynamic
port=5063
qualify=yes
type=friend
username=1003
insecure=port,invite

In sip_general_custom.conf folgendes hinzugefügt:
srvlookup=yes
context=from-pstn
nat=yes
qualify=yes

Und jetzt läuft es sogar ohne die option "Anonyme SIP anrufe akzeptieren" zu aktivieren. :)
 
Zuletzt bearbeitet:
Hallo!

Ich versuche seit gestern die trixbox an einen 4638 zu bekommen, stehe aber als Neuling total an der Wand.
Diesmal war auch google nicht mein bester Freund.
Hast du vielleicht noch etwas genaueres wonach ich mich richten kann?
Schaffe es ehrlich gesagt nichtmal die box am patton zu registrieren

Danke
ais
 
Hallo!
Kopier mal die Config von meinem letzten Post und ändere die IP Adressen zu deiner Umgebung.

Asterisk: 172.16.0.10
Router: 192.168.0.11
Patton: 192.168.0.45

Viel Spass!

PS: Sicherstellen das du die Firmware 5.3.
 
Zuletzt bearbeitet:
Hallo!

Danke für die Antwort.
Jep, das hatte ich gemacht.

Denke ich übertrage die Daten falsch in den Trunkeditor der Trixbox.

Habe deinen Punkt Trunk mit angepaßter IP unter outgoing settings gespeichert, aber irgendwie erfolgt hier keine Anmeldung. Habe die Einstellungen auch mal in die sip_custom_conf eingetragen, ohne erfolg.

Was ich nicht verstehe, wenn ich sip show peers mache kommt:
Name/username Host Dyn Nat ACL Port Status
Trunk/1003 (Unspecified) D N 5060 UNKNOWN
Warum wird der andere Port, sowie der Host nicht übernommen?

Mal meine Daten:
Asterisk: 192.168.16.99
Router: 192.168.16.245
Patton: 192.168.16.93

Meine Running conf:
Code:
#----------------------------------------------------------------#
#                                                                #
# SN4638/5BIS                                                    #
# R5.4 2009-11-18 H323 SIP BRI                                   #
# 2010-01-13T13:04:53                                            #
# SN/00A0BA03ED4F                                                #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 192.168.16.245 port 123 version 4
timer DaylightSavingsOn 02:00 mar 25th next sunday every year ""
timer DaylightSavingsOff 03:00 oct 25th next sunday every year ""

system

  ic voice 0
    low-bitrate-codec g729

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

profile napt NAPT_WAN

profile ppp default

profile tone-set default

profile voip default
  codec 1 g711alaw64k rx-length 20 tx-length 20 no-silence-suppression
  codec 2 g711ulaw64k rx-length 20 tx-length 20
  dtmf-relay signaling default

profile pstn default

profile sip default

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface WAN
    ipaddress unnumbered
    use profile napt NAPT_WAN
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

  interface LAN
    ipaddress 192.168.16.93 255.255.255.0
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

context ip router
  route 0.0.0.0 0.0.0.0 192.168.16.245 0

context cs switch
  digit-collection timeout 4
  national-prefix 0
  international-prefix 00

  routing-table called-e164 RT01_2_ISDN
    route .%T dest-interface ISDN1 INT-TO-EXT

  routing-table called-e164 RT02_2_ISDN
    route .%T dest-interface ISDN2 INT-TO-EXT

  routing-table called-e164 RT03_2_ISDN
    route .%T dest-interface ISDN3 INT-TO-EXT

  routing-table called-e164 RT04_2_ISDN
    route .%T dest-interface ISDN4 INT-TO-EXT

  routing-table called-e164 RT05_2_ISDN
    route .%T dest-interface ISDN5 INT-TO-EXT

  routing-table called-e164 RT01_FROM_ISDN
    route default dest-interface SIP_IF_1001

  routing-table called-e164 RT02_FROM_ISDN
    route default dest-interface SIP_IF_1002

  routing-table called-e164 RT03_FROM_ISDN
    route default dest-interface SIP_IF_1003

  routing-table called-e164 RT04_FROM_ISDN
    route default dest-interface SIP_IF_1004

  routing-table called-e164 RT05_FROM_ISDN
    route default dest-interface SIP_IF_1005

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

  complex-function INT-TO-EXT
    execute 1 MP_REM_CLIR

  interface isdn ISDN1
    route call dest-table RT01_FROM_ISDN
    call-hold disable
    aoc-s automatic
    aoc-d automatic
    aoc-e automatic
    address-complete-indication accept set
    address-complete-indication emit set
    dtmf-dialing
    no early-proceeding
    no call-waiting
    caller-name
    inband-info accept force call-release

  interface isdn ISDN2
    route call dest-table RT02_FROM_ISDN
    call-hold disable
    aoc-s automatic
    aoc-d automatic
    aoc-e automatic
    address-complete-indication accept set
    address-complete-indication emit set
    dtmf-dialing
    no early-proceeding
    no call-waiting
    caller-name
    inband-info accept force call-release

  interface isdn ISDN3
    route call dest-table RT03_FROM_ISDN
    call-hold disable
    aoc-s automatic
    aoc-d automatic
    aoc-e automatic
    address-complete-indication accept set
    address-complete-indication emit set
    dtmf-dialing
    no early-proceeding
    no call-waiting
    caller-name
    inband-info accept force call-release

  interface isdn ISDN4
    route call dest-table RT04_FROM_ISDN
    call-hold disable
    aoc-s automatic
    aoc-d automatic
    aoc-e automatic
    address-complete-indication accept set
    address-complete-indication emit set
    dtmf-dialing
    no early-proceeding
    no call-waiting
    caller-name
    inband-info accept force call-release

  interface isdn ISDN5
    route call dest-table RT05_FROM_ISDN
    call-hold disable
    aoc-s automatic
    aoc-d automatic
    aoc-e automatic
    address-complete-indication accept set
    address-complete-indication emit set
    dtmf-dialing
    no early-proceeding
    no call-waiting
    caller-name
    inband-info accept force call-release

  interface sip SIP_IF_1001
    bind context sip-gateway SIP_GW_1
    route call dest-table RT01_2_ISDN
    remote 192.168.16.99 5060

  interface sip SIP_IF_1002
    bind context sip-gateway SIP_GW_2
    route call dest-table RT02_2_ISDN
    remote 192.168.16.99 5060

  interface sip SIP_IF_1003
    bind context sip-gateway SIP_GW_3
    route call dest-table RT03_2_ISDN
    remote 192.168.16.99 5060

  interface sip SIP_IF_1004
    bind context sip-gateway SIP_GW_4
    route call dest-table RT04_2_ISDN
    remote 192.168.16.99 5060

  interface sip SIP_IF_1005
    bind context sip-gateway SIP_GW_5
    route call dest-table RT05_2_ISDN
    remote 192.168.16.99 5060

context cs switch
  no shutdown

authentication-service AUT_1001
  realm 1 192.168.16.99
  username 1001 password /cC0XGzbtGs= encrypted

authentication-service AUT_1002
  realm 1 192.168.16.99
  realm 2 192.168.16.95
  username 1002 password Mm1a+aQkWyw= encrypted

authentication-service AUT_1003
  realm 1 192.168.16.99
  username 1003 password eYLgTz8yTW8= encrypted

location-service LS_1001
  domain 1 192.168.16.99 5061

  identity ID_1001
    display-name 8506769
    phone-context from-pstn

    authentication outbound
      authenticate 1 authentication-service AUT_1001 username 1001

location-service LS_1002
  domain 1 192.168.16.99 5062

  identity ID_1002
    display-name 8506888
    phone-context from-pstn

    authentication outbound
      authenticate 1 authentication-service AUT_1002 username 1002

location-service LS_1003
  domain 1 192.168.16.99 5063

  identity ID_1003
    display-name 8502244
    phone-context from-pstn

    authentication outbound
      authenticate 1 authentication-service AUT_1003 username 1003

context sip-gateway SIP_GW_1

  interface SIP_IF_1001
    bind interface LAN context router port 5061

context sip-gateway SIP_GW_1
  bind location-service LS_1001
  no shutdown

context sip-gateway SIP_GW_2

  interface SIP_IF_1002
    bind interface LAN context router port 5062

context sip-gateway SIP_GW_2
  bind location-service LS_1002
  no shutdown

context sip-gateway SIP_GW_3

  interface SIP_IF_1003
    bind interface LAN context router port 5063

context sip-gateway SIP_GW_3
  bind location-service LS_1003
  no shutdown

port ethernet 0 0
  medium auto
  encapsulation ip
  bind interface WAN router
  no shutdown

port ethernet 0 1
  medium auto
  encapsulation ip
  bind interface LAN router
  no shutdown

port bri 0 0
  clock slave
  encapsulation q921

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

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

port bri 0 0
  no shutdown

port bri 0 1
  clock slave
  encapsulation q921

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

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

port bri 0 1
  no shutdown

port bri 0 2
  clock slave
  encapsulation q921

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

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

port bri 0 2
  no shutdown

port bri 0 3
  clock slave
  encapsulation q921

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

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

port bri 0 3
  no shutdown

port bri 0 4
  clock slave
  encapsulation q921

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

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

port bri 0 4
  no shutdown

Und das steht in sip trunk, im web interface unter peer details:
disallow=all
allow=alaw
callerid=asreceived
context=from-pstn
defaultip=192.168.16.93
dtmfmode=auto
host=dynamic
port=5063
qualify=yes
type=friend
username=1003
insecure=port,invite

Was noch gemacht werden muss, die Nr im Patton ändern. Mache ich aber erst wenn ich mal weiter komme, da er momentan eh noch nicht am ISDN hängt.

Was für ein ...
 
Hallo!

Danke für die Anleitung, keine Ahnung woran es klemmte, heute morgen ging es dann, ohne das ich etwas geändert habe.

Sachen gibt es...

ais
 
sip_additional.conf

Ich sehe irgend wie nicht wie ich das Beispiel in Asterisk umsetze, könnte jemand mal die ganze "sip_additional.conf" posten?

Danke!

gruss, Frank
 

Zurzeit aktive Besucher

Statistik des Forums

Themen
246,295
Beiträge
2,249,594
Mitglieder
373,893
Neuestes Mitglied
Kukkatto
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.