Patton 4552 Callrouting macht nicht das was es soll

amdunlock

Neuer User
Mitglied seit
2 Dez 2005
Beiträge
151
Punkte für Reaktionen
0
Punkte
0
Hi,

ich habe massive Probleme mit dem Callrouter. Folgender Aufbau:

ISDN S0 -Telefon > Patton Inalp 4552 -> ISDN oder Asterisk

andersherum:

ISDN S0 Line -> Patton Inalp 4552 -> Asterisk

Dazu erstellte ich 2 verschiedene Asteriskaccounts für die beiden Asteriskkontexte outgoing und incoming. Problem ist jetzt aber, dass der Patton die Anrufe die von intern kommen, einfach auch auf den Account "pattonvaussen" routet, obwohl das die Routingtabelle anders sagt. Am besten hier ihr schaut euch das mal an. Btw wenn ich Debug in die konsole eingebe bietet er mir nur arp und timer an :(

Code:
#----------------------------------------------------------------#
#                                                                #
# SN4552/2BIS/EUI                                                #
# R3.20 2006-05-23 SIP                                           #
# 1970-01-08T04:20:31                                            #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
gui type basic
dns-client server 10.10.10.6
webserver port 80 language en
sntp-client
sntp-client server primary 129.132.2.21 port 123 version 4
system hostname gateway.adama.loc

system

  ic voice 0

profile acl ACL_WAN_PERMIT_ALL_MGMT
  permit 1 ip any any

profile acl ACL_WAN_PERMIT_SEL_MGMT
  deny 1 tcp any any eq 23
  deny 2 tcp any any eq 80
  deny 3 udp any any eq 161
  permit 4 ip any any

profile acl ACL_WAN_BLOCK_ALL_MGMT
  deny 1 tcp any any eq 23
  deny 2 tcp any any eq 80
  deny 3 udp any any eq 161
  permit 4 ip any any

profile service-policy SP_WAN_OUT
  rate-limit 100000 header-length 18 voice-margin 0

  source traffic-class local-voice
    priority

  source traffic-class default
    priority

profile service-policy SP_WAN_IN
  rate-limit 100000 header-length 18 voice-margin 200

  source traffic-class local-voice
    priority

  source traffic-class default
    queue-limit 4

profile napt NAPT_WAN

profile ppp default

profile call-progress-tone defaultBusytone
  play 1 200 425 -7
  pause 2 250
  play 3 200 425 -7
  pause 4 250
  play 5 200 425 -7
  pause 6 800

profile call-progress-tone US_DIAL_TONE
  play 1 0 350 -13 440 -13

profile call-progress-tone US_RB_TONE
  play 1 2000 440 -19 480 -19
  pause 2 4000

profile call-progress-tone US_BUSY_TONE
  play 1 500 480 -24 620 -24
  pause 2 500

profile call-progress-tone US_CONGESTION_TONE
  play 1 250 480 -24 620 -24
  pause 2 250

profile tone-set default

profile tone-set Europe

profile tone-set UnitedStates
  map call-progress-tone dial-tone US_DIAL_TONE
  map call-progress-tone ringback-tone US_RB_TONE
  map call-progress-tone busy-tone US_BUSY_TONE
  map call-progress-tone release-tone US_BUSY_TONE
  map call-progress-tone congestion-tone US_CONGESTION_TONE

profile tone-set Intern
  map call-progress-tone dial-tone defaultBusytone

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
  dejitter-mode static
  dejitter-max-delay 120

profile pstn default

profile sip default

profile dhcp-server DHCPS_LAN
  network 10.10.10.23 255.0.0.0
  lease 2 hours
  default-router 1 10.10.10.23
  domain-name patton.com
  domain-name-server 1 10.10.10.23

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface IF_IP_WAN
    ipaddress dhcp
    use profile acl ACL_WAN_PERMIT_ALL_MGMT in
    use profile service-policy SP_WAN_IN in
    use profile service-policy SP_WAN_OUT out
    use profile napt NAPT_WAN
    tcp adjust-mss rx 582
    tcp adjust-mss tx 1440

  interface IF_IP_LAN
    ipaddress 10.10.10.23 255.0.0.0
    icmp router-discovery

context ip router
  route 217.0.132.118 255.0.0.0 10.10.10.22 0

subscriber ppp SUB_PPPOE
  dial out
  authentication chap
  authentication pap
  bind interface IF_IP_WAN router

context cs switch

  routing-table called-e164 RT_From_Intern
    route 0 dest-interface S0_Extern MT_NR_TRANSLATION
    route 5. dest-interface IF_ToAsteriskfromIntern
    route 1. dest-interface S0_Intern

  routing-table called-e164 RT_From_Extern
    route "" dest-interface IF_ToAsteriskfromExtern

  mapping-table called-e164 to called-e164 MT_SPEED_DIAL

  mapping-table calling-e164 to calling-e164 MT_SET_CNPN

  mapping-table called-e164 to called-e164 MT_NR_TRANSLATION
    map 0 to ""

  interface isdn S0_Intern
    route call dest-table RT_From_Intern
    use profile tone-set Intern

  interface isdn S0_Extern
    route call dest-table RT_From_Extern
    use profile tone-set Europe

  interface sip IF_ToAsteriskfromIntern
    bind gateway GW_ToAsterisk
    service patton
    route call dest-table RT_From_Intern
    early-connect
    early-disconnect

  interface sip IF_ToAsteriskfromExtern
    bind gateway GW_ToAsteriskvAussen
    service pattonvaussen
    route call dest-table RT_From_Extern
    early-connect
    early-disconnect
    phone-context incoming

  service hunt-group SER_HG_PSTN_FALLBACK
    timeout 6
    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 no-route-to-destination
    route call 1 dest-interface IF_SIP_SERVICE
    route call 2 dest-interface IF_S0_00

context cs switch
  no shutdown

gateway sip GW_ToAsterisk
  bind interface IF_IP_LAN router

  service patton
    domain 10.10.10.6
    registrar 10.10.10.6 5060
    user patton display-name patton password LNOVrt1b6LZ8vjRhaMx1nQ== encrypted

gateway sip GW_ToAsterisk
  no shutdown

gateway sip GW_ToAsteriskvAussen
  bind interface IF_IP_LAN router

  service pattonvaussen
    domain 10.10.10.6
    registrar 10.10.10.6 5060
    user pattonvaussen display-name pattonvaussen password LNOVrt1b6LZ8vjRhaMx1nQ== encrypted

gateway sip GW_ToAsteriskvAussen
  shutdown

port ethernet 0 0
  bind interface IF_IP_WAN router

  pppoe

    session SES_PPPOE
      bind subscriber SUB_PPPOE
      shutdown

port ethernet 0 0
  no shutdown

port ethernet 0 1
  bind interface IF_IP_LAN router
  no shutdown

port bri 0 0
  clock auto
  encapsulation q921

  q921
    protocol pmp
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      encapsulation cc-isdn
      bind interface S0_Extern switch

port bri 0 0
  no shutdown

port bri 0 1
  clock auto
  encapsulation q921

  q921
    protocol pmp
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side net
      encapsulation cc-isdn
      bind interface S0_Intern switch

port bri 0 1
  no shutdown

Gruß, Oliver
 
Hallo amdunlock,

das ist alles viel zu kompliziert gedacht. Lösche deinen context cs mal raus und passe diese von mir vorgefertigte Konfiguration auf deine Bedürfnisse an.

Es wird nur ein SIP-User Account für den Gateway im Asterisk benötigt!

Code:
context cs switch
  digit-collection timeout 2
  national-prefix 00
  international-prefix 000

  routing-table called-e164 fromlocal
    route .T dest-service isdn mod_2
    route 10 dest-interface isdn01 mod_2 ; hier die interne MSN des Endgerätes eintragen, angeschlossen an Port 10

  routing-table called-e164 fromisdn
    route .T dest-interface sip-gw mod_1
    route 1234510 dest-interface isdn01 mod_1 ; hier die externe MSN des Engerätes eintragen, angeschlossen an Port 10

  mapping-table called-e164 to called-e164 mod_1
    map 1234510 to 10\1	; MSN des Engerätes von extern auf intern umwandeln
    map 1234520 to 20\1	; einzelne MSN auf Asterisk Benutzer umleiten

  mapping-table called-e164 to called-e164 mod_2
    map (.%) to \1
    map 0(.%) to \1

  mapping-table itc to itc speech
    map default to speech
    map unrestricted-digital to unrestricted-digital

  interface isdn isdn01
    route call dest-table fromlocal

  interface sip sip-gw
    bind gateway sip-gw
    service default
    route call dest-table fromlocal
    early-connect
    early-disconnect

  service hunt-group 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 isdn01
; hier kann mit erweitert werden

context cs switch
  no shutdown

gateway sip sip-gw			; ein Benutzer reicht aus!
  bind interface eth0 router

  service default
    domain server.domain.de
    realm server.domain.de
    authentication patton password Kennwort encrypted
    default-server server.domain.de 5060 loose-router
    registrar server.domain.de 5060
    user patton

gateway sip sip-gw
  no shutdown

port bri 0 1
  clock master
  encapsulation q921

  q921
    protocol pmp
    uni-side net
    encapsulation q931

    q931
      protocol dss1
      uni-side net
      encapsulation cc-isdn
      bind interface isdn01 switch

port bri 0 1
  no shutdown

Ach ja, zum Debug Problem: auch mit enable / configure freigeschaltet?

mfg Guard-X
 
Hi,

habe mir das mal angeschaut, und habe es glaube ich verstanden. Allerdings wollte ich das Abhandeln der MSNs extern, sowie Intern komplett von Asterisk erledigen lassen. D.h. alle einkommenden Gespräche von ISDN_Extern gehen einfach auf Asterisk und alle Ausgehenden Gespräche von dem Internen S0 Bus gehen wenn die 0 gewählt wurde direkt über den Patton, sonst auch in Asterisk ALLERDINGS in einen anderen Kontext als es VON externen Anrufen der Fall ist, d.h. dass ich verschiedene Benutzernamen brauche, da ich für jeden Benutzername nur einen Kontext angeben kann. :(

Gruß, Oliver
 
OK. Jeder hat seinen eigenen Geschmack...

mfg Guard-X
 
Hi,

ich habe das Problem mal heruntergebrochen und nun festgestellt, dass ich keine 2 SIP Services über ein Gateway gleichzeitig anmelden kann. Jedesmal wenn ich ein 2. Konfigurieren will also wenn ich es erstelle, unregistriert er den ersteren Service automatisch :( und das obwohl ich ein Realm angegeben habe.

Gruß, Oliver
 
Wie sieht es aus, hast du das jetzt mal mit meiner Config getestet?
 
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.