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:
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 !
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: