Asterisk and Smartnode configuration

Das sind die einzigen Dinge, die zur Registrierung notwendig sind.

Asterisk:

[SmartNode]
username=44699
type=friend
secret=xxxxxx
qualify=1200
insecure=very
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=alaw


SmartNode:

gateway sip GW_SmartNode
bind interface IF_IP_LAN router

service default
domain 192.168.101.3
realm 192.168.101.3
authentication 44699 password xxx encrypted
default-server 192.168.101.3 5060 loose-router
registrar 192.168.101.3 5060 use-default-server
user 44699

gateway sip GW_SmartNode
no shutdown

Damit müsste auf jeden Fall die Registrierung funktionieren. Ich würde dir empfehlen, noch einmal ganz neu zu beginnen. Mit default Config Files...

PS.: denke an die richtigen Ports

mfg Guard-X
 
Juchuuuuu !!!!

es funktioniert !!!!

danke für deine hilfe, die einstellungen waren alle in ordnung ... die anzeigen in der asterisk und in der smartnode sind einfach irreführend!?

wieder einiges dazu gelernt, vielen vielen dank

:D :D
sitecube
 
hilfe :-) with callerid

starlab76 schrieb:
I am very happy to annunce you that now I can call and recive from one line ISDN BRI NT using asterisk.

Everythings seems to work right EXCEPT the Caller ID translation: in my voip phones I can not see the number of the callers, but I see the account number that I use to log into asterisk from Patton: so I hope that someboby can help me to solve this problem (I hope it will be the last one).


Hi everybody,

I have been reading your posts since I have the same callerid problem not displayed on incoming calls but I don't get it, what is magic that show callerid instead of the sip peers extension ,in my case I see 105 instead of the full number ... :-(

I would really appreciate if someone could help me, I'm desperate ...

thousand thanks !
jean-louis


here is my config

Edit Guard-X: Please use code tags!
Code:
  interface LAN
    ipaddress 192.168.1.1 255.255.255.0
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

context ip router
  dhcp-server use DHCPS_LAN

context cs switch

  routing-table called-e164 RT_fromcisco
    route default dest-service HT_USER MT_rem_0

  mapping-table called-e164 to called-e164 MT_rem_0
    map 0(.%) to \1

  interface isdn IF_S0_00
    route call dest-interface IF_SIP
    no aoc-s
    no aoc-d
    no aoc-e

  interface isdn IF_S0_01
    route call dest-table RT_fromcisco

  interface isdn IF_S0_02
    route call dest-interface IF_SIP
    no aoc-s
    no aoc-d
    no aoc-e

  interface sip IF_SIP
    bind gateway GW_SIP
    service asterisk
    route call dest-service HT_SIP
    early-connect
    early-disconnect
    address-translation outgoing-call from-header user-part fix 105_0 host-part call

  service hunt-group HT_USER
    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_02

  service hunt-group HT_SIP
    timeout 4
    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 qos-unavailable
    route call 1 dest-service HT_USER

context cs switch
  no shutdown

gateway sip GW_SIP
  no transport tcp
  bind interface WAN router

  service default

  service asterisk
    realm asterisk
    default-server 10.164.8.4 5060 loose-router
    registrar 10.164.8.4 5060
    user 105_0 display-name 105_0 password z3vI3h9/f/w= encrypted
    session-timer 30

gateway sip GW_SIP
  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
    protocol pp
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      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 pmp
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side net
      encapsulation cc-isdn
      bind interface IF_S0_01 switch

port bri 0 1
  no shutdown

port bri 0 2
  clock auto
  encapsulation q921

  q921
    protocol pp
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
      uni-side user
      encapsulation cc-isdn
      bind interface IF_S0_02 switch

port bri 0 2
  no shutdown
 
Remove this

address-translation outgoing-call from-header user-part fix 105_0 host-part call
 
Also ich habe jetzt die Einstellungen von Post Nr. 21 in dem SmartNode drin. Bei meinem Asterisk zeigt ein "sip show peers" folgendes an:

Code:
1001_BRI/1001              (Unspecified)    D          0        UNKNOWN

Also will die Registrierung nicht wirklich.

Mein Trunk:
Code:
username=1001
type=friend
secret=1234
qualify=1200
insecure=very
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=alaw

Meine Patton Config:
Code:
#----------------------------------------------------------------#
#                                                                #
# SN4638/5BIS/UI                                                 #
# R4.2 2007-09-19 H323 SIP BRI                                   #
# 2008-09-04T14:11:55                                            #
# SN/00a0ba03D77f                                                #
# Generated configuration file                                   #
#                                                                #
#----------------------------------------------------------------#

cli version 3.20
dns-client server 192.168.0.98
dns-client server 192.168.0.99
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 192.168.0.98 port 123 version 4
sntp-client server secondary 192.168.0.99 port 123 version 4
system hostname Patton01

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 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 WAN
    ipaddress unnumbered
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

  interface LAN
    ipaddress 192.168.5.151 255.255.0.0
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

  interface IF_IP_WAN
    ipaddress unnumbered
    icmp router-discovery
    icmp redirect accept
    tcp adjust-mss rx mtu
    tcp adjust-mss tx mtu

context cs switch

  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_SmartnNode
  call-signaling-port 5066
  bind interface LAN router

  service default
    domain 192.168.5.220
    defaultserver manual 192.168.5.220 5060 loose-router
    registration auto 192.168.5.220 5060
    user 1001 authenticate password 36ocYTYpKxk= encrypted default register display-name 1001

gateway sip GW_SmartnNode
  no shutdown

port ethernet 0 0
  medium auto
  encapsulation ip
  bind interface WAN router
  bind interface IF_IP_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 net
      bchan-number-order ascending

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

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

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

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

port bri 0 4
  no shutdown

Ich komme trotz der vielen Posts im Moment nicht wirklich weiter. Ich will nur einen Trunk für jeden Port. Das ganze soll als P2P laufen.

Grüße Tk_Boy
 
Warum nehmt ihr denn alle immer die veraltete Firmware 4.2 und nicht das aktuelle R5.2?

Massig gute Beispiele für R4.2, für R5.2 hab ich mich diese Woche fast tot gesucht :)
 
Warum nehmt ihr denn alle immer die veraltete Firmware 4.2 und nicht das aktuelle R5.2?
Da fällt mir spontan auch etwas ähnliches ein:

Warum nehmen denn immer alle Asterisk 1.2.x und nicht das aktuelle 1.4.x?
oder:
Warum nehmen denn immer alle Windows XP und nicht das aktuelle Vista?

:-Ö
 
@Guard-X

Machst du Support beruflich? Wenn ja, kannst du mich mal kontakten? PM.

@Blackvel
Massig gute Beispiele für R4.2, für R5.2 hab ich mich diese Woche fast tot gesucht

Auch ein Grund.

Grüße
 
Ja, ich mache den Support beruflich aber nicht kommerziell sondern nur Inhouse. Ich übergebe das mal an einen Kollegen...
 
@Guard-X:
Ich nehm deshalb Asterisk 1.2.30.2, weil die aktuelle Asterisk 1.4.x zusammen mit dem Patton GW segfaulted :)
Da muß ich noch einen Bug aufmachen, ansonsten steig ich asap auf 1.4 definitiv um!

War nicht weiterhin Asterisk 1.2 als Stable/Prod Release gekennzeichnet?

Bei Patton R4.2 und R5.2 sind doch beide stable/Production?

Grüsse

Blackvel
 
Hast du dann auch eine Beispielkonfiguration bzw. die von dir gefundenen für die Firmware R5.2 oder möchtest du die vorenthalten?
 
Hallo Zusammen

Ich habe zwei SmartNodes bekommen und komme mit beiden nicht weiter. Der kleinere 4552 hatte eine alte 3.x-H323-Software drauf, welche ich durch die 5.2 SIP ersetzt habe. Doch wie ein paar Posts vor mir schon beschreiben, scheint es keine Beispiele für 5.2 zu geben, wie ich das mit Asterisk zum laufen bekomme. Soll ich auf 4.2 downgraden?
Oder hat doch jemand ein Beispiel für die 5.2? Ich habe versucht, mit den verschiedenen Posts hier etwas zu erreichen auf der 5.2, jedoch ohne Erfolg, weder rein noch raus geht etwas.

BeatO
 
Mir hat nur das reindenken und eine Beispielkonfiguration etwas gebracht.

Benutzernamen und Passwörter für SIP-Anmeldungen sind geändert.
Zur Konfiguration:

IF_VOIP_GATEWAY = Gateway von Asterisk zu S0 und zurück (P2P Anschluss)
INTRA_AMT = S0 ISDN Amtsanschluss
INTRA_PSTN = S0 ISDN Telefonanlage

Die Firmwareversion steht im Kopf.

Grüße TK_Boy
 

Anhänge

Hey Tk_Boy

Ich hab doch glatt meinen ersten SmartNode auch zum drehen gekriegt. Tausend Dank, Deine Config hat, nachdem ich das ganze Schritt für Schritt durchgedacht habe, funktioniert!;)
:groesste:

Gut hat Asterisk so schöne Befehle wie sip debug peer 1.2.3.4 ...:-)

Wie gesagt, es läuft, da ich aber Perfektionist bin, hab ich doch noch so ein bisschen Fragen.

Warum hast Du zwei "User-Identitäten" mit dem VOIP_AS_0/1 und VOIP_LS_0/1 gemacht, wenn dann doch beide an den gleichen GW_VOIP gebunden sind? Ich hab momentan nur eine gemacht.
Aber: Ich musste, damit Inbound geht, beim SIP-Eintrag in Asterisk insecure=very setzen. Könnte das damit zu tun haben?

BeatO
 
Hallo

Freut mich, dass es bei dir funktioniert. Habe lange gebraucht, bis ich einigermaßen durchgeblickt habe. Wenn dann nebenbei immer noch das Telefon klingelt, weil einer vergessen hat, die "Num-Lock" Taste zu drücken oder irgend eine Datei gelöscht hat, ist es doppelt schwer.

Warum hast Du zwei "User-Identitäten" mit dem VOIP_AS_0/1 und VOIP_LS_0/1 gemacht, wenn dann doch beide an den gleichen GW_VOIP gebunden sind? Ich hab momentan nur eine gemacht.

Hat interne Gründe. Geht natürlich auch mit einer.

Aber: Ich musste, damit Inbound geht, beim SIP-Eintrag in Asterisk insecure=very setzen. Könnte das damit zu tun haben?
Nein, hat damit nichts zu tun. insecure=very ist OK. Siehe Post von Guard-X.

Grüße Tk_Boy
 
TK_Boy

Ich habe Deine Config zuerst gedruckt, mit Leuchtstift alles das markiert, was ich brauche und dann die Abhängigkeiten schön Schritt für Schritt aufgeschlüsselt und bei mir eingepflegt. Somit weiss ich jetzt auch in etwa, wie es geht, ohne jedoch behaupten zu wollen, dass ich alles verstanden hätte! Und: Ich habe das am Abend zu Hause nach 21h gemacht, ohne Störung!:)

Was ich bei mir noch gemacht habe, ist das dtmf-relay umkonfiguriert, denn sonst hat das bei mir nicht getan. Ich verwende rfc2833 im sip.conf, was im Patton mit folgendem zusammen spielt:
Code:
profile voip default
  codec 1 g711alaw64k rx-length 20 tx-length 20
  codec 2 g711ulaw64k rx-length 20 tx-length 20
  [B]dtmf-relay rtp[/B]

Oliver
 
Kostenlos!

Statistik des Forums

Themen
248,849
Beiträge
2,302,800
Mitglieder
378,498
Neuestes Mitglied
Gerdemha