[gelöst] Asterisk $EXTEN bei bei ISDN-Ankommend = "anonymous" (???)

ammar

Neuer User
Mitglied seit
13 Jun 2006
Beiträge
188
Punkte für Reaktionen
0
Punkte
0
Hallo!

So sieht es bei mir aus:

ISDN BRI <-> Patton 4552 <-> Asterisk <-> ...
&
VoIP <-> Asterisk <-> ...

VoIP Nummer: 0316111111 (Anlagenanschluß)
ISDN Nummer: 0316222222 (Anlagenanschluß)

Ich möchte nur ein Kontekst für alle Rufnummern haben (er heißt "ankommend").

[ankommend]
exten => _.,1,NoOp("Context: ${CONTEXT}, Exten: ${EXTEN}, Channel: ${CHANNEL}, SipDomain: ${SIPDOMAIN}$


Voip funktioniert perfekt (ich Rufe zB 031622222233 :

-- Executing [031622222233@ankommend:1] NoOp("SIP/p9.voip.inode.at-b797ce30", ""Context: ankommend| Exten: 031622222233| Channel: SIP/p9.voip.inode.at-b797ce30| SipDomain: meine.nat.ip.adresse| DNID: | CALLERID: 0699999999| SIP_HEADER_TO: sip:[email protected] "") in new stack

Ich habe also alle relevante Variablen befüllt.

Wenn man aber den ISDN Nummer samt Durchwahl wählt (031622222233):

-- Executing [33@ankommend:1] NoOp("SIP/gwisdn-b797a310", ""Context: ankommend| Exten: 33| Channel: SIP/gwisdn-b797a310| SipDomain: anonymous.net| DNID: | CALLERID: 699999999| SIP_HEADER_TO: <sip:[email protected]> "") in new stack

... also, es wird nur der Durchwahl als $EXTEN durchgegeben, SipDomain ist "anonymous.net" - nicht gut da ich nicht weiß wo das herkommt.

Und jetzt das schlimmste - wenn man 0316111111, also ohne DW wählt dann passiert folgendes:

-- Executing [anonymous@ankommend:1] NoOp("SIP/gwisdn-b797ce30", ""Context: ankommend| Exten: anonymous| Channel: SIP/gwisdn-b797ce30| SipDomain: anonymous.net| DNID: | CALLERID: 699999999| SIP_HEADER_TO: <sip:[email protected]> "") in new stack

Es wird also "anonymous" ins $EXTEN geschrieben .
Wie kann ich dem Patton sagen daß er da immer den vollen Nummer schickt (so wie der VoIP Provider) und nicht so wie jetzt nur den DW, bzw. "anonymous" wenn kein Durchwahl.
Und auserdem gefällt mir "anonymous.net" gar nicht, wo kommt das her?

Anbei meine Einstellungen:

sip.conf
Code:
[gwisdn]
username=gwisdn
type=friend
trunk=yes
secret=geheim
qualify=yes
insecure=very
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=alaw
context=ankommend

patton.cfg
Code:
#----------------------------------------------------------------#
#                                                                #
# SN4552/2BIS/EUI                                                #
# R5.T 2008-03-13 SIP                                            #
# 1970-01-02T03:32:43                                            #
# SN/00a0ba014633                                                #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
gui type basic
dns-client server 172.16.1.9
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

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 US_DIAL_TONE
  play 1 10 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 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 g729 rx-length 20 tx-length 20
  codec 2 g711alaw64k 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 dhcp-server DHCPS_LAN
  network 192.168.1.0 255.255.255.0
  include 1 192.168.1.10 192.168.1.19
  lease 2 hours
  default-router 1 192.168.1.1
  domain-name patton.com
  domain-name-server 1 192.168.1.1

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 172.16.1.25 255.255.255.0
    icmp router-discovery

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

context cs switch

  routing-table called-e164 RT_SPEED_DIAL
    route T dest-table RT_NR_BLOCKING MT_SPEED_DIAL

  routing-table called-e164 RT_NR_BLOCKING
    route default dest-table RT_CALL_ROUTING MT_SET_CNPN

  routing-table called-e164 RT_CALL_ROUTING
    route default dest-service SER_HG_PSTN_FALLBACK

  routing-table called-e164 RT_INCOMING
    route default dest-interface IF_S0_01 MT_NR_TRANSLATION

  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

  interface isdn IF_S0_00
    route call dest-interface IF_SIP_SERVICE

  interface isdn IF_S0_01
    route call dest-interface IF_SIP_SERVICE
    use profile tone-set Europe
    isdn-date-time

  interface isdn IF_DEV0

  interface sip IF_SIP_SERVICE
    bind context sip-gateway GW_SIP
    route call dest-table RT_INCOMING
    use profile voip VOIP

  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

authentication-service AUTH_SVC
  username gwisdn password 2mPHy316nK4= encrypted

location-service LOCATION_SVC
  domain 1 172.16.1.15

  identity-group default
    display-name gwisdn

    authentication outbound
      authenticate 1 authentication-service AUTH_SVC

    registration outbound
      proxy 1 172.16.1.15
      register auto

    call outbound
      proxy 1 172.16.1.15

  identity gwisdn inherits default

context sip-gateway GW_SIP

  interface SIP_WAN
    bind interface IF_IP_LAN context router port 5060

context sip-gateway GW_SIP
  bind location-service LOCATION_SVC
  no 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
    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 net
      bchan-number-order ascending
      encapsulation cc-isdn
      bind interface IF_S0_01 switch

port bri 0 1
  no shutdown
 
Zuletzt bearbeitet:
Mein Problem ist eigentlich das bei mir im called-e164 immer nur der Durchwahl steht.

Ich möchte also folgendes machen (FAX geht an ISDN, der Rest an Asterisk):

routing-table called-e164 RT_PSIDE_TO_AST
route 0316111111 dest-interface IF_SIP_SERVICE
route 0316111111(.%) dest-interface IF_SIP_SERVICE
route 031611111199 dest-interface IF_S0_01

Funktioniert aber nicht da in called-e164 nur Durchwahl steht, das zu wissen hilft mir aber auch nicht viel da wenn jemand nur 0316111111 (also ohne DW) anwählt tut sich gar nichts (buisy signal).

Wie und wo muß ich mappen damit ich im called-e164 den vollen Rufnummer samt DW habe und nicht nur den DW?

BTW folgendes funktioniert aus obengennanten Grunden für 0316111111 auch nicht, funkt nur wenn DW vorhanden:

routing-table called-e164 RT_PSIDE_TO_AST
route "" dest-interface IF_SIP_SERVICE
route 99 dest-interface IF_S0_01

Mapping funktioniert nur wenn irgendwein Nummer vorhanden, wenn nichts da greift es nicht einmal - so ist zumindet meine Erfahrung.
Gibt es da eine Lösung?
 
ISDN-PBX an Patton BRI NT-Port - Overlap Dial schickt anonymous an Asterisk

Hi,

hatte jetzt das gleiche Problem mit Overlap Dial.

Habe eine Euracom ISDN PBX an einem NT-Port eines 4636 angeschlossen.

Man darf hier NICHT direkt von isdn_s0_0 Interface (NT-mode) auf das asterisk_s0_0 SIP interface routen sondern muß eine Routing Table zwischenschalten, die ".T" (Digit Timeout) übernimmt.

Somit wartet brav die Patton alle Digits ab, BEVOR der Call an Asterisk weitergereicht wird.

Code:
interface isdn isdn_euracom_if
    route call dest-table euracom_overlap_rt

routing-table called-e164 euracom_overlap_rt
    route .T dest-interface asterisk_euracom_if

interface sip asterisk_euracom_if
    bind context sip-gateway asterisk_gw
    route call dest-interface isdn_euracom_if
    remote <asterisk-ip> 5060

Gruß

Blackvel
 
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.