smartnode 4554 an asterisk als trunk

vtbs

Neuer User
Mitglied seit
12 Sep 2007
Beiträge
13
Punkte für Reaktionen
0
Punkte
0
Hallo,
ich möchte die Smartnode 4554 genau dazu benutzen, wozu sie eigentlich da ist. Einen Anlagenanschluss (2 S0) möchte ich an meine IP-Anlage (Asterisk, Trixbox) anschliessen.
Leider scheint das enorm kompliziert zu sein, hab jetzt schon ewig rumprobiert, geht aber nicht wirklich. Asterisk registriert gar nicht erst.

Ist die Konfigurationsdatei, die ich mir zusammengereimt habe, so überhaupt brauchbar?
Code:
#----------------------------------------------------------------#
#                                                                #
# SN4554/2BIS/EUI                                                #
# R4.2 2007-09-19 SIP                                            #
# 2008-03-25T12:50:07                                            #
# SN/00A0BA036C6C                                                #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
gui type basic
administrator administrator password 123456798== encrypted
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 129.132.2.21 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

profile acl ACL_WAN_PERMIT_SEL_MGMT

profile service-policy SP_WAN_OUT
  no rate-limit

profile service-policy SP_WAN_IN
  no rate-limit

profile napt NAPT_WAN

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

profile voip VOIP
  codec 1 g711alaw64k rx-length 20 tx-length 20
  codec 2 g729 rx-length 20 tx-length 20
  codec 3 g711ulaw64k rx-length 20 tx-length 20
  dejitter-mode static
  dejitter-max-delay 120

profile pstn default

profile sip default

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface IF_IP_WAN
    ipaddress 192.168.16.112 255.255.255.0
    use profile napt NAPT_WAN
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

  interface IF_IP_LAN
    ipaddress unnumbered





context cs
    interface isdn IF_S0_00
      route call dest-interface IF-ASTERISK

    interface isdn IF_S0_01
      route call dest-interface IF-ASTERISK
      
    interface sip IF-ASTERISK
      bind gateway ASTERISK
      # route call dest-interface IF_S0_01
      route call dest-service ANLAGE_PSTN
      # address-translation outgoing-call from-header user-part fix patton4554 host-part call

    gateway sip ASTERISK
      call-signaling-port 5060
      default-server 192.168.16.110 loose-router
      # registrar ‹x.x.x.x›
      user patton4554 display-name patton4554 phone-context "from-pstn"
      authentication auto patton4554 isdn4554pwd
      bind interface eth0 router
      no shutdown
      use profile voip VOIP
      
    service hunt-group ANLAGE_PSTN
        cyclic
        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
        route call 1 dest-interface IF_S0_00
        route call 2 dest-interface IF_S0_01

context cs switch
    no shutdown





port ethernet 0 0
  bind interface IF_IP_WAN router

port ethernet 0 0
  no shutdown




port bri 0 0
  clock auto
  encapsulation q921

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

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

port bri 0 0
  no shutdown




port bri 0 1
  clock auto
  encapsulation q921

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

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

port bri 0 1
  no shutdown

Und was genau muss ich bei der Trixbox (idealerweise in freepbx) eingeben, sipgate habe ich da schon am laufen.

Hoffe mir kann irgendjemand irgendwie helfen.

Danke
 
Also ich werde immer ratloser. Das Gerät reagiert auf überhaupt gar nichts, was mit SIP zusammenhängt. Register-Pakete werden einfach verschluckt. Die VoIP Leuchte vorn war noch nie an. Die ISDN-LEDs leuchten allerdings, wenn mit Netz verbunden.
Der befehl "show gateway sip status" zeigt gar nichts an.
Hab jetzt versucht, Astersisk und andere SIP-Clients zu verbinden, immer dasselbe.
Der Emailsupport meldet sich auch irgendwie nicht, werde dann wohl telefonisch versuchen müssen.

Bin verdammt enttäuscht.
 
Also etwas weiter bin ich, wenn auch nicht nennenswert.
Ich kann auf der Trixbox und auf dem Patton die SIP-Pakete des jeweiligen anderen sehen. Asterisk lehnt immer mit "SIP/2.0 404 Not Found" ab, auf dem Patton steht immer folgendes: " SIP_ER> STACK RECEIVED A REGISTER REQUEST; NOT SUPPORTED".

hier meine aktuelle Config:

Patton:
Code:
#----------------------------------------------------------------#
#                                                                #
# SN4554/2BIS/EUI                                                #
# R4.2 2007-09-19 SIP                                            #
# 1970-01-01T00:06:53                                            #
# SN/00A0BA036C6C                                                #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
gui type basic
administrator administrator password 123456798== encrypted
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 129.132.2.21 port 123 version 4


system

  ic voice 0

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

profile acl asterisk
  permit 1 tcp any any traffic-class default
  permit 2 udp any any traffic-class default
  permit 3 icmp any any traffic-class default
  permit 4 ip any any traffic-class default
  permit 5 sctp any any traffic-class default
  permit 6 ah any any
  permit 7 esp any any
  permit 8 gre any any
  permit 9 sctp any any

profile napt NAPT_WAN

profile ppp default

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

profile pstn default

profile sip default

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface IF_IP_WAN
    ipaddress 192.168.16.112 255.255.255.0
    icmp router-discovery
    icmp redirect accept
    use profile acl asterisk in
    use profile acl asterisk out
    use profile napt NAPT_WAN
    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.254 0

subscriber ppp SUB_PPPOE
  dial in-out
  no multilink
  bind interface IF_IP_WAN router

context cs switch

  routing-table called-e164 direkt1
    route 1 dest-interface IF_SIP_SERVICE
    route 2 dest-interface IF_S0_00
    route 3 dest-interface IF_S0_01

  interface isdn IF_S0_00
    route call dest-interface IF_SIP_SERVICE

  interface isdn IF_S0_01
    route call dest-interface IF_SIP_SERVICE

  interface sip IF_SIP_SERVICE
    bind gateway GW_SIP
    service default
    route call dest-interface IF_S0_00
    remote 192.168.16.110 5060

  service hunt-group SER_HG_PSTN_FALLBACK
    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 IF_SIP_SERVICE

context cs switch
  no shutdown

gateway sip GW_SIP
  bind interface IF_IP_WAN router

  service default
    defaultserver manual 192.168.16.110 5060 loose-router
    registration manual 192.168.16.110 5060 use-default-server
    user 4554 register display-name 4554 phone-context lxuser

gateway sip GW_SIP
  no shutdown

port ethernet 0 0
  bind interface IF_IP_WAN router

  pppoe

    session SES_PPPOE
      shutdown

port ethernet 0 0
  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_S0_00 switch

port bri 0 0
  no shutdown

port bri 0 1
  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_S0_01 switch

port bri 0 1
  no shutdown


Asterisk (Trixbox 2.2.4):

freepbx:

unter PEER:
Code:
allow=alaw
disallow=all
dtmfmode=rfc2833
host=dynamic
insecure=very
nat=no
qualify=1200
type=peer
username=4554

user-context: lxuser

unter USER:
Code:
context=from-pstn
insecure=very
nat=no
qualify=yes
secret=4554
trunk=yes
type=peer
username=4554

Register String:
Code:
4554:[email protected]:5060
 
Ich bin auch kein SN Spezialist. Bei mir funzt es so:

Code:
gateway sip GW-ASTERISK
  bind interface LAN router

  service default
    domain 172.16.1.2
    realm 172.16.1.2
    defaultserver manual 172.16.1.2 5060 loose-router
    registration manual 172.16.1.2 5060
    user patton authenticate password XXXX= encrypted register

Im Freepbx brauchst du nur Einträge unter PEER:
Code:
username=patton
type=friend
secret=XXXX
qualify=1200
insecure=very
host=dynamic
dtmfmode=rfc2833
disallow=all
context=from-pstn
canreinvite=no
allow=alaw

USER und Register String bleiben leer
 
Vielen Dank, ich habe jetzt etwas, was läuft. Ich habe nur ein paar Kleinigkeiten in der Config geändert. Warum es jetzt geht, weiss ich wirklich nicht.

Beim Freepbx hab ich das genauso eingetragen, wie Du gesagt hast. Allerdings musste ich host=<meine IP> setzen, mit dynamic ging es nicht.

Ich bin mir noch nicht sicher, ob beide B-Kanäle komplett funktionieren. Das werde ich erst später testen können. Auf jeden Fall kann ich rein und raustelefonieren.


hier jetzt meine Config des Pattons:
Code:
#----------------------------------------------------------------#
#                                                                #
# SN4554/2BIS/EUI                                                #
# R4.2 2007-09-19 SIP                                            #
# 1970-01-01T00:06:53                                            #
# SN/00A0BA036C6C                                                #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
gui type basic
administrator administrator password 123456789= encrypted
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 129.132.2.21 port 123 version 4


system

  ic voice 0

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

profile acl asterisk
  permit 1 tcp any any traffic-class default
  permit 2 udp any any traffic-class default
  permit 3 icmp any any traffic-class default
  permit 4 ip any any traffic-class default
  permit 5 sctp any any traffic-class default
  permit 6 ah any any
  permit 7 esp any any
  permit 8 gre any any
  permit 9 sctp any any

profile napt NAPT_WAN

profile ppp default

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

profile pstn default

profile sip default

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface IF_IP_WAN
    ipaddress 192.168.16.112 255.255.255.0
    icmp router-discovery
    icmp redirect accept
    use profile acl asterisk in
    use profile acl asterisk out
    use profile napt NAPT_WAN
    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.254 0

subscriber ppp SUB_PPPOE
  dial in-out
  no multilink
  bind interface IF_IP_WAN router

context cs switch

  routing-table called-e164 direkt1
    route 1 dest-interface IF_SIP_SERVICE
    route 2 dest-interface IF_S0_00
    route 3 dest-interface IF_S0_01

  interface isdn IF_S0_00
    route call dest-interface IF_SIP_SERVICE

  interface isdn IF_S0_01
    route call dest-interface IF_SIP_SERVICE

  interface sip IF_SIP_SERVICE
    bind gateway GW_SIP
    service default
    route call dest-interface IF_S0_00
    remote 192.168.16.110 5060

  service hunt-group SER_HG_PSTN_FALLBACK
    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 IF_SIP_SERVICE

context cs switch
  no shutdown

gateway sip GW_SIP
  bind interface IF_IP_WAN router

  service default
    domain 192.168.16.110
    realm 192.168.16.110
    defaultserver manual 192.168.16.110 5060 loose-router
    registration manual 192.168.16.110 5060
    user patton authenticate password 123456789= encrypted register

gateway sip GW_SIP
  no shutdown

port ethernet 0 0
  bind interface IF_IP_WAN router

  pppoe

    session SES_PPPOE
      shutdown

port ethernet 0 0
  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_S0_00 switch

port bri 0 0
  no shutdown


port bri 0 1
  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_S0_01 switch

port bri 0 1
  no shutdown
 
Hallo vtbs,

hat es bei Dir jetzt hingehauen mit den Konfig?
Ich spiele auch mit einem 4554 herum und bekomme nicht gebacken.

Besten Dank
Christian
 
Ja, so wie die letzte Config aussieht, funktioniert das jetzt schon einige Zeit hier.
Wie gesagt, wirklich verständlich ist mir das nicht, ich habe halt auch so lange rumprobiert, bis es ging...

Viel Erfolg
 
Hallo,

besten Dank für die Info. Ich muss mein Gateway jetzt erstmal wieder ans laufen bekommen. Ich wollte die Firmware 4.2 wieder installieren. Nun geht nichts mehr. Das Gerät steht im redboot und ist nur noch per telnet unter der default 172.16... zu erreichen.

Mal sehn wie ich das Ding nun wieder zum funktionieren bekommen.

Besten Dank
Christian
 

Neueste Beiträge

Statistik des Forums

Themen
244,872
Beiträge
2,219,897
Mitglieder
371,593
Neuestes Mitglied
Häuslebauer_BW
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.