Patton - Asterisk - Dial-In geht nicht

knecht112

Neuer User
Mitglied seit
17 Mai 2007
Beiträge
7
Punkte für Reaktionen
0
Punkte
1
Hallo zusammen,

habe mir gerade eine Patton zugelegt und schaffe es nicht, dass ich eingehende Anrufe über die Patton zum Asterisk weitergeleitet werden.
Ausgehende Rufe vom Asterisk über die Patton laufen.

Aufbau:
NTBA - Patton - Asterisk - Eth-Telefon


Hier die Patton Config:
Code:
#----------------------------------------------------------------#
#                                                                #
# SN4552/2BIS/EUI                                                #
# R3.21 2007-01-23 SIP                                           #
# 2007-05-17T02:15:01                                            #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
clock local offset +02:00
dns-client server 10.1.1.10
dns-client server 10.1.1.5
webserver port 80 language en
sntp-client
sntp-client server primary 10.1.1.5 port 123 version 4
system hostname voipgw01

system

  ic voice 0

profile ppp default

profile tone-set default

profile voip default
  codec 1 g711ulaw64k rx-length 20 tx-length 20
  fax transmission 1 bypass g711alaw64k
  modem transmission 1 bypass g711alaw64k

profile voip VOIP-ASTERISK
  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 eth0
    ipaddress dhcp
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

  interface eth1
    ipaddress 10.1.1.2 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 10.1.1.5 0

context cs switch
  national-prefix 0
  international-prefix 00

  routing-table called-e164 RT_CDPN_ISDN_2_SIP
    route default dest-interface SIP_GW

  routing-table calling-e164 RT_CDPN_SIP_2_ISDN
    route .T dest-service HUNT-PUBLIC-PSTN CF_TO_PSTN

  mapping-table calling-type-of-number to calling-type-of-number MT_TON_PSTN
    map default to national

  mapping-table calling-e164 to calling-e164 MT_ADD_KOPFNR
    map 10. to 3012345
    map 11. to 3012345
    map 12. to 30123477
    map 13. to 3012345
    map 14. to 3012345
    map 15. to 3012345
    map 16. to 3012345
    map 17. to 3012345
    map 18. to 3012345
    map 19. to 3012345
    map 20. to 3012345
    map 123 to 30123478

  mapping-table called-e164 to called-e164 MT_ADD_0
    map $ to 0

  complex-function CF_TO_PSTN
    execute 1 MT_ADD_KOPFNR
    execute 2 MT_TON_PSTN

  interface isdn ISDN_0_0
    route call dest-table RT_CDPN_ISDN_2_SIP
    dtmf-dialing

  interface sip SIP_GW
    bind gateway Asterisk
    service default
    route call dest-table RT_CDPN_SIP_2_ISDN
    early-connect
    early-disconnect

  service hunt-group HUNT-PUBLIC-PSTN
    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 ISDN_0_0

context cs switch
  no shutdown

gateway sip Asterisk
  bind interface eth1 router

  service default
    domain 10.1.1.11
    realm 10.1.1.11
    defaultserver manual 10.1.1.11 5060 loose-router
    registration manual 10.1.1.11 5060
    user voipgw01in authenticate password weweweVPzTWmKOQ== encrypted register

gateway sip Asterisk
  no shutdown

port ethernet 0 0
  encapsulation ip
  bind interface eth0 router
  shutdown

port ethernet 0 1
  encapsulation ip
  bind interface eth1 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 ISDN_0_0 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

port bri 0 1
  shutdown

Die Aufgabe ist, dass die Patton alle Rufe für z.B. die MSN 3012345 an den Asterisk weiterleitet und der Asterisk dann ein Telefon bimmeln läßt.

Die Asterisk Config sieht wie folgt aus:

Trunk
====

Outgoing Settings:
==============

Trunk name:
------------
voipgw01out

Peer details:
------------
host=10.1.1.2
secret=password
type=peer
username=voipgw01in

Incoming settings:
==============

User context:
-------------
voipgw01in

User details:
------------
allow=alaw
context=from-pstn
disallow=all
dtmfmode=rfc2833
host=dynamic
insecure=very
qualify=1200
secret=password
type=friend
username=voipgw01in


Inbound routing:
============

Did number: 3012345
Extension: 101


Hoffe ihr könnt mir einen Tipp geben.

Danke !
 
Zuletzt bearbeitet:
Hi,

vielen Dank für den Link, habe es jetzt hinbekommen.

Code:
#----------------------------------------------------------------#
#                                                                #
# SN4552/2BIS/EUI                                                #
# R3.21 2007-01-23 SIP                                           #
# 2007-06-20T14:55:12                                            #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
clock local offset +02:00
dns-client server 10.1.1.10
dns-client server 10.1.1.5
webserver port 80 language en
sntp-client
sntp-client server primary 10.1.1.5 port 123 version 4
system hostname voipgw01

system

  ic voice 0

profile ppp default

profile tone-set default

profile voip default
  codec 1 g711ulaw64k rx-length 20 tx-length 20
  codec 2 g711alaw64k rx-length 20 tx-length 20
  fax transmission 1 bypass g711alaw64k
  modem transmission 1 bypass g711alaw64k

profile voip VOIP-ASTERISK
  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 eth0
    ipaddress dhcp
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

  interface eth1
    ipaddress 10.1.1.2 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 10.1.1.5 0

context cs switch
  national-prefix 0
  international-prefix 00

  routing-table called-e164 RT_CDPN_ISDN_2_SIP
    route default dest-interface SIP_GW

  routing-table calling-e164 RT_CDPN_SIP_2_ISDN
    route .T dest-service HUNT-PUBLIC-PSTN CF_TO_PSTN

  mapping-table calling-type-of-number to calling-type-of-number MT_TON_PSTN
    map default to national

  mapping-table calling-e164 to calling-e164 MT_ADD_KOPFNR
    map 10. to 3012345
    map 11. to 3012345
    map 12. to 3012345
    map 13. to 3012346
    map 14. to 3012346

  mapping-table called-e164 to called-e164 MT_ADD_0
    map $ to 0

  complex-function CF_TO_PSTN
    execute 1 MT_ADD_KOPFNR
    execute 2 MT_TON_PSTN

  interface isdn ISDN_0_0
    route call dest-table RT_CDPN_ISDN_2_SIP
    dtmf-dialing

  interface sip SIP_GW
    bind gateway Asterisk
    service default
    route call dest-table RT_CDPN_SIP_2_ISDN
    early-connect
    early-disconnect

  service hunt-group HUNT-PUBLIC-PSTN
    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 ISDN_0_0

context cs switch
  no shutdown

gateway sip Asterisk
  bind interface eth1 router

  service default
    domain 10.1.1.11
    realm 10.1.1.11
    defaultserver auto loose-router
    registration auto 10.1.1.11
    user 599 authenticate password xyz encrypted register

gateway sip Asterisk
  no shutdown

port ethernet 0 0
  encapsulation ip
  bind interface eth0 router
  shutdown

port ethernet 0 1
  encapsulation ip
  bind interface eth1 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 ISDN_0_0 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

port bri 0 1
  shutdown

Faxen wäre natürlich auch cool, ich habe am Asterisk eine AVM FB 7170 via SIP angebunden. Das Fax an der FB kann über die Asterisk Drw. 128 erreicht werden. Wenn ich ein Fax sende bzw. empfange bricht die Verbindung irgendwann ab. Hast Du nen Tip woran es liegen könnte ?

Danke.

Mfg.
Thorsten
 
der dank gilt eher guard_x dessen beispiele ich inhaliert habe...

welche smartnode hast du?

laut allnet kannst du beim verbinden von sn und asterisk die benutzerkennung weglassen.
-> schau mal meine configuration

fax:
tja, da sitze ich dran... aber
a) weiss ich nicht ob die lösung mit iaxmodem eine sackgasse ist
b) ob es mit sandsp besser gehen könnte.

momentane verbesserungen:
Code:
profile voip default
  codec 1 g711alaw64k rx-length 20 tx-length 20
  codec 2 g711ulaw64k rx-length 20 tx-length 20
  fax transmission 1 bypass g711alaw64k
jetzt kommt schon besseres stückwerk;)

und in der extensions.conf
Code:
[macro-toexphone]
exten => s,1,SetCallerID(${CALLERIDNUM} <${CALLERIDNUM}>)
exten => s,n,Dial(SIP/0${ARG1}@isdnGateway01,120,r)
exten => s,n,Hangup

...

exten => 11,1,Macro(toexphone,[B][I]faxnummerl[/I][/B])
für den sofortigen abwurf von faxirrläufern mit #11 an die hauptfaxnummer

fakt:

das normale fax funktioniert (analoges system über a/b an der sn)

die von allnet haben das ausserdem auch noch nicht probiert.
ich habe den armen menschen gequält bis auf blut.

ich mach wegen der faxgeschichte einen neuen tree auf:
http://www.ip-phone-forum.de/showthread.php?t=140086

mfg
the
 
Zuletzt bearbeitet:

Zurzeit aktive Besucher

Statistik des Forums

Themen
244,832
Beiträge
2,219,107
Mitglieder
371,534
Neuestes Mitglied
vignajeanniegolabek
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.