SmartNode 4638 mit Asterisk extensions.conf

mario2006

Mitglied
Mitglied seit
25 Nov 2006
Beiträge
294
Punkte für Reaktionen
0
Punkte
0
Eingehende VOIP calls von Sipgate landen auf meinem Asterisk Server, diese calls sollen direkt an das SmartNode 4638 geroutet werden. Vom SmartNode aus werden die Anrufe auf eine Panasonic geleitet.

Im Moment wird bei Anruf von XX91545 der call nach Ext. 302 geroutet Die IP-Adresse des 4638 lautet 192.168.1.6

Wäre schön wenn jemand eine Beispiel Konfig hätte.

Danke
Mario

exten => XX91545,1,Set(CALLERID(name)=Privat)
exten => XX91545,n,Set(CALLERID(number)=${CALLERIDNUM})
exten => XX91545,n,SetCallerPres(allowed)
exten => XX91545,n,Dial(SIP/302,30,g)
exten => XX91545,n,Congestion()
exten => XX91545,n,Hangup()

Ich denke das sollte das richtige Forum sein, da es um eine Einstellung im * geht.
 
Wäre schön wenn jemand eine Beispiel Konfig hätte.

Ich wähle ein ganze Reihe von Telefonen gleichzeitig an, darunter auch die ISDN-Telefone die an meinem SN1200 hängen. Der sieht so aus:

exten => 225,2,Dial(SIP/1231&SIP/1237&SIP/1248&IAX2/1251&IAX2/1252&IAX2/1253&SIP/[email protected]&IAX2/ueberlingen/${EXTEN})

212.... ist der Patton
 
Hi kombjuder,

würde das in meinem Fall so aussehen, wenn ich alles zum Patton schieben möchte?

Danke
Mario

exten => XX91545,1,Set(CALLERID(name)=Privat)
exten => XX91545,n,Set(CALLERID(number)=${CALLERIDNUM})
exten => XX91545,n,SetCallerPres(allowed)
exten => XX91545,n,Dial(SIP/500,30,g)
exten => XX91545,n,Congestion()
exten => XX91545,n,Hangup()

exten => 500,1,Dial(SIP/192.168.1.6/${EXTEN})
 
würde das in meinem Fall so aussehen, wenn ich alles zum Patton schieben möchte?

Hallo Mario,

warum nicht

exten => XX91545,n,Dial(SIP/192.168.1.6/${EXTEN})

Wobei deine SN-Konfiguration muß passen, also Anrufe ohne Passwort zulassen
 
Hi kombjuder,

sorry die IP Adresse des Patton ist 192.168.1.5

Ich versuche es nun es nun ueber eine GotoIf Anweisung zu loesen. Eingehende SIPcalls bekomme ich nicht auf das Patton. Es handelt sich dabei um 3 Sipgatenummern, die vom Asterisk angenommen werden sollen und direkt ins Patton geroutet werden sollen.

Code:
exten => _XX,4,GotoIf($[ ${EXTEN} = 16 ]? 14:5)

exten => _XX,14,Goto(3100,1); Route to Patton

exten => 3100,1,SetCallerPres(allowed)
exten => 3100,n,Dial(SIP/192.168.1.5)

Ausgabe der CLI

Code:
-- Executing [16@internal:1] Set("IAX2/mevisio60-7", "APP=16") in new stack
    -- Executing [16@internal:2] GotoIf("IAX2/mevisio60-7", "0? 12:3") in new stack
    -- Goto (internal,16,3)
    -- Executing [16@internal:3] GotoIf("IAX2/mevisio60-7", "0? 12:4") in new stack
    -- Goto (internal,16,4)
    -- Executing [16@internal:4] GotoIf("IAX2/mevisio60-7", "0? 14:5") in new stack
    -- Goto (internal,16,5)
    -- Executing [16@internal:5] GotoIf("IAX2/mevisio60-7", "0? 14:6") in new stack
    -- Goto (internal,16,6)
    -- Executing [16@internal:6] GotoIf("IAX2/mevisio60-7", "1? 14:7") in new stack
    -- Goto (internal,16,14)
    -- Executing [16@internal:14] Goto("IAX2/mevisio60-7", "3100|1") in new stack
    -- Goto (internal,3100,1)
    -- Executing [3100@internal:1] SetCallerPres("IAX2/mevisio60-7", "allowed") in new stack
    -- Executing [3100@internal:2] Dial("IAX2/mevisio60", "SIP/192.168.1.5") in new stack
    -- Called 192.168.1.5
  == Spawn extension (internal, 3100, 2) exited non-zero on 'IAX2/mevisio60-2'
    -- Hungup 'IAX2/mevisio60-2'


[/QUOTE]

Smart Node config

[QUOTE]#----------------------------------------------------------------#
#                                                                #
# SN4638/5BIS/UI                                                 #
# R4.2 2007-12-03 H323 SIP BRI                                   #
# 2008-04-12T12:41:17                                            #
# SN/00A0BA033B29                                                #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
dns-relay
webserver port 80 language en
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
  clock-source 3 bri 0 2
  clock-source 4 bri 0 3
  clock-source 5 bri 0 4

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
  dtmf-relay rtp
  fax transmission 1 bypass g711alaw64k
  fax transmission 2 relay t38-udp
  fax redundancy low-speed 0 high-speed 1
  modem transmission 1 bypass g711alaw64k
  no modem detection on-remote-fax-request

profile pstn default

profile sip default

profile dhcp-server DHCPS_LAN
  network 192.168.2.0 255.255.255.0
  include 1 192.168.2.10 192.168.2.99
  lease 2 hours
  default-router 1 192.168.1.5
  domain-name-server 1 192.168.1.1

profile aaa default
  method 1 local
  method 2 none

context ip router

  interface WAN
    ipaddress dhcp
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

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

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

  routing-table called-e164 from_pbx
    route 00T dest-interface trunk

  interface isdn bri00

  interface isdn bri01
    route call dest-table from_pbx

  interface isdn bri02
    route call dest-table from_pbx

  interface isdn bri03
    route call dest-table from_pbx

  interface isdn bri04
    route call dest-table from_pbx

  interface sip trunk
    bind gateway asterisk
    service default
    route call dest-service pbx
    remote 192.168.1.6 5060

  service hunt-group pbx
    cyclic
    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 bri01
    route call 2 dest-interface bri02
    route call 3 dest-interface bri03
    route call 4 dest-interface bri04

context cs switch
  no shutdown

gateway sip asterisk
  bind interface LAN router

  service default
    domain 192.168.1.6

gateway sip asterisk
  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 auto
  encapsulation q921

  q921
    uni-side auto
    encapsulation q931

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

port bri 0 0
  no shutdown

port bri 0 1
  clock auto
  encapsulation q921

  q921
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side net
      bchan-number-order ascending
      encapsulation cc-isdn
      bind interface bri01 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
      encapsulation cc-isdn
      bind interface bri02 switch

port bri 0 2
  no shutdown

port bri 0 3
  clock auto
  encapsulation q921

  q921
    uni-side auto
    encapsulation q931

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

port bri 0 3
  no shutdown

port bri 0 4
  clock auto
  encapsulation q921

  q921
    uni-side auto
    encapsulation q931

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

port bri 0 4
  no shutdown
 
exten => 3100,n,Dial(SIP/192.168.1.5)

Das wir so nicht gehen. Du musst schon eine Rufnummer mitliefern, mit der dein SN verbinden soll. Im Moment sagst du deinem Asterisk, er solle den Höher der Leitung zum SN abnehmen. Mehr nicht.
 
Danke fuer die schnelle Antwort

Ja, aber selbst wenn ich es so mache kommt auch nichts an. Dabei sollte der Patton alles akzeptieren was rein kommt.

exten => 3100,1,SetCallerPres(allowed)
exten => 3100,n,Dial(SIP/192.168.1.5/${EXTEN})
 
Ich muss mich korrigieren. Die calls kommen nicht an mit meiner Konfig.
Jemand eine Idee?
Mario
 
Zuletzt bearbeitet:
Kostenlos!

Statistik des Forums

Themen
248,890
Beiträge
2,304,187
Mitglieder
378,575
Neuestes Mitglied
King Manaka