Cisco 7970 per SCCP an OpenWRT / SIP nach aussen

jeronimo

Neuer User
Mitglied seit
6 Feb 2006
Beiträge
15
Punkte für Reaktionen
0
Punkte
0
Hallo zusammen,

ich versuche grad ein Cisco 7970 an Asterisk zu betreiben, welches in OpenWRT (whiterussian rc6 mit asterisk 1.2.1 backport) läuft und lediglich nach aussen SIP machen soll. TFTP und so funktioniert, also das Telefon bootet.

Benutzt hab ich das chan_sccp.so Modul von http://www.spblinux.de/fbox/ welches sich mit folgender Versionsnummer meldet:
OpenWrt*CLI> sccp show version
SCCP channel version: 20060408

Das Problem ist, wenn ich den Hörer abnehm hör ich das Freizeichen, beim Drücken einer Taste schmiert Asterisk dann jedoch ohne Kommentar ob.
Code:
    -- SEP00XXXXXXXXX: New call on line 79701
    -- SEP00XXXXXXXXX: Cisco Digit: 00000006 (6) on line 79701
OpenWrt*CLI>
Disconnected from Asterisk server

chan_skinny (welches es auch für OpenWRT als Paket gibt) hatte ich vorher mal versucht, aber das hat Asterisk nur nochfrüher zum Absturz gebracht.

An meiner extensions.conf kann net viel falsch sein, ist das Default von sipgate. Aber ich muss zugeben, ist das erste mal dass ich asterisk benutz.
Code:
[sipout]
exten => _X.,1,SetCallerId,5551359
exten => _X.,2,Dial(SIP/${EXTEN}@sipgate-out,30,trg)
exten => _X.,3,Hangup
und die sccp.conf ist an die angelehnt die es hier gibt: http://www.chan-sccp.org/index.php?display=config
BTW hab ich es ohne das SIP Modul probiert, dann stürzt es immer noch ab.

Wo denkt Ihr ist das Problem!? chan_sccp? Wer hat so ein Setup mim Linksys, Openwrt, asterisk etc. am laufen?

Das allerletzte was ich im DEbug Modus sehe ist übrigens:
Code:
    -- SEP00XXXXXXXXX: Channel SCCP/79701-00000003, capabilities: DEVICE 0x10c (ulaw|alaw|g729) NATIVE 0x10c (ulaw|alaw|g729) BEST 8 (alaw)
    -- SEP00XXXXXXXXX: Allocated asterisk channel 79701-3
    -- SCCP: Looking for line 79701
    -- SEP00XXXXXXXXX: found line 79701
    -- SCCP: Asterisk asked for the state (2) of the line 79701
    -- SEP00XXXXXXXXX: Set asterisk state OffHook (2) for call 3
    -- SEP00XXXXXXXXX: New call on line 79701
    -- SEP00XXXXXXXXX: Set callingParty Name 7970 CID on channel 3
    -- SEP00XXXXXXXXX: Set callingParty Number 79701 on channel 3
    -- SEP00XXXXXXXXX: Waiting for the number to dial on channel 79701-3
    -- SEP00XXXXXXXXX: >> Got message KeypadButtonMessage
    -- SEP00XXXXXXXXX: Looking for line by instance 1
    -- SEP00XXXXXXXXX: Found line 79701
    -- SCCP: Looking for channel by id 3
    -- SEP00XXXXXXXXX: Found channel (3)
    -- SEP00XXXXXXXXX: Cisco Digit: 00000009 (9) on line 79701
OpenWrt*CLI>
Disconnected from Asterisk server

Gruss,
marc
 
Hi,

hast du das chan_sccp.so den in Deiner OpenWrt / Linksys Umgebung ( mit den entsprechenden Patches ) neu kompiliert ?

Bei mir läuft der chan_sccp.so an der FBF eigentlich recht stabil - bis auf ein Problem, bei dem sich der chan_sccp.so bei zu schneller Eingabe von DTMF Tönen einfach verschluckt und in einem Endless Loop endet )
 
dynamic schrieb:
hast du das chan_sccp.so den in Deiner OpenWrt / Linksys Umgebung ( mit den entsprechenden Patches ) neu kompiliert ?

Ehm... muss ich das? Wenn ja, wie und wieso? :noidea:

Gruss,
Marc


Nachtrag: Ich hab jetz mal auf Whiterussian 0.9 geupgraded, vorher war das noch RC6, jetzt geht das Modul leider gar nicht mehr. Muss wohl doch der Crosscompiler her...
 
Zuletzt bearbeitet:
jeronimo schrieb:
Ehm... muss ich das? Wenn ja, wie und wieso?
Ich gehe schon davon aus, daß Du den chan_sccp.so für den Linksys neu x-kompilieren musst.
Auch wenn ich den Linksys nicht genau kenne, würde es mich wundern, wenn diese zur FBF binärkompatibel wäre.
 
Naja bis zum Wählen ging ja alles gut (asterisk 1.2.1) und dann schmierte alles ab.

Mit asterisk 1.2.14 hat das FBF Modul übrigens gar nit mehr funktioniert und ich hab gestern Nacht dann noch eins fürn Linksys kompiliert, Resultat: das gleiche.

Ich nehm an da ist noch einfach was an der Config was dem Asterisk gar nit schmeckt, damit werd ich mich jetzt erst mal vertrauter machen.
 
Welchen output erhältst Du bei der Eingabe von "show sccp devices" im * prompt ?

Poste hier auch mal Dein sccp.conf, vielleicht kann man da was sehen.

Ausserdem, fallst Du evtl. den chan_skinny.so aus der Openwrt noch aktiv hast - das ist ein NO NO ! Dieser darf in keinem Fall parallel zum chan_sccp.so laufen.
Entweder aus der modules komplett löschen löschen bzw. in der modules.conf via "noload => chan_skinny.so" explizit stillegen.
 
dynamic schrieb:
Welchen output erhältst Du bei der Eingabe von "show sccp devices" im * prompt ?

Code:
OpenWrt*CLI> sccp show devices
OpenWrt*CLI>
NAME             ADDRESS         MAC              Reg. State
================ =============== ================ ==========
Phone7970        192.168.1.141   SEP0018BAXXXXXX  Ok

Poste hier auch mal Dein sccp.conf, vielleicht kann man da was sehen.

Code:
[general]
keepalive = 120                         ; phone keep alive message evey
                                        ; 60 secs. Used to check the voicemail
debug = 1                               ; console debug level. 1 => 10
context = sccp
dateFormat = D/M/Y                      ; M-D-Y in any order. Use M/D/YA (for
                                        ; 12h format)
bindaddr = 192.168.1.1                  ; replace with the ip address of the
                                        ; asterisk server (RTP important param)
port = 2000                             ; listen on port 2000 (Skinny, default)
disallow=all                            ; First disallow all codecs
allow=alaw                              ; Allow codecs in order of preference
allow=ulaw                              ;
firstdigittimeout = 16                  ; dialing timeout for the 1st digit
digittimeout = 8                        ; more digits
;digittimeoutchar = #                   ; you can force the channel to dial
                                        ; with this char in the dialing state
autoanswer_ring_time = 1                ; ringing time in seconds for the
                                        ; autoanswer, the default is 0
autoanswer_tone = 0x32                  ; autoanswer confirmation tone. For a
                                        ; complete list of tones: grep
                                        ; SKINNY_TONE sccp_protocol.h
                                        ; not all the tones can be played in a
                                        ; connected state, so you have to try.
remotehangup_tone = 0x32                ; passive hangup notification. 0 for
                                        ; none
transfer_tone = 0                       ; confirmation tone on transfer. Works
                                        ; only between SCCP devices
callwaiting_tone = 0x2d                 ; sets to 0 to disable the callwaiting
                                        ; tone
musicclass=default                      ; Sets the default music on hold class
language=en                             ; Default language setting
;accountcode=skinny                     ; accountcode to ease billing
deny=0.0.0.0/0.0.0.0                    ; Deny every address except for the
                                        ; only one allowed.
permit=192.168.1.0/255.255.255.0        ; Accept class C 192.168.1.0
                                        ; You may have multiple rules for
                                        ; masking traffic.
                                        ; Rules are processed from the first to
                                        ; the last.
                                        ; This General rule is valid for all
                                        ; incoming connections. It's the 1st
                                        ; filter.

;localnet = 192.168.1.0/255.255.255.0   ; All RFC 1918 addresses are local
                                        ; networks
;externip = 1.2.3.4                     ; IP Address that we're going to notify
                                        ; in RTP media stream
;externhost = mydomain.dyndns.org       ; Hostname (if dynamic) that we're
                                        ; going to notify in RTP media stream
; externrefresh = 60                    ; expire time in seconds for the
                                        ; hostname (dns resolution)
dnd = on                                ; turn on the dnd softkey for all
                                        ; devices. Valid values are "off", "on"
                                        ; (busy signal), "reject" (busy
                                        ; signal), "silent" (ringer = silent)
rtptos = 184                            ; sets the default rtp packets TOS
echocancel = on                         ; sets the phone echocancel for all
                                        ; devices
silencesuppression = off                ; sets the silence suppression for all
                                        ; devices
;callgroup=1,3-4                        ; We are in caller groups 1,3,4. Valid
                                        ; for all lines
;pickupgroup=1,3-5                      ; We can do call pick-p for call group
                                        ; 1,3,4,5. Valid for all lines
;amaflags =                             ; Sets the default AMA flag code stored
                                        ; in the CDR record
trustphoneip = no                       ; The phone has a ip address. It could
                                        ; be private, so if the phone is behind
                                        ; NAT
                                        ; we don't have to trust the phone ip
                                        ; address, but the ip address of the
                                        ; connection
tos = 0x68                              ; call control packets tos (0x68
                                        ; Assured forwarding)
;earlyrtp = none                        ; valid options: none, offhook, dial,
                                        ; ringout. default is none.
                                        ; The audio strem will be open in the
                                        ; progress and connected state.
private = on                            ; permit the private function softkey



[devices]

type        = 7970                      ; device type (see below)
autologin   = 79701     ; lines list. You can add an empty line
                                        ; for an empty button (7960, 7970,
                                        ; 7940, 7920)
description = Phone7970                 ; internal description. Not important
;tzoffset  = +2
transfer = on                           ; enable or disable the transfer
                                        ; capability. It does remove the
                                        ; transfer softkey
park = on                               ; take a look to the compile howto.
                                        ; Park stuff is not compiled by default
speeddial =                             ; you can add an empty speedial if you
                                        ; want an empty button (7960, 7970,
                                        ; 7920)
speeddial = 1000,name                   ; speeddial number and name
cfwdall = off                           ; activate the callforward stuff and
                                        ; softkeys
cfwdbusy = off
dtmfmode = inband                       ; inband or outofband. outofband is the
                                        ; native cisco dtmf tone play.
                                        ; Some phone model does not play dtmf
                                        ; tones while connected (bug?), so the
                                        ; default is inband
imageversion = TERM70.DEFAULT           ; useful to upgrade old firmwares (the
                                        ; ones that do not load *.xml from the
                                        ; tftp server)
deny=0.0.0.0/0.0.0.0                    ; Same as general
permit=192.168.1.141/255.255.255.255    ; This device can register only using
                                        ; this ip address
dnd = on                                ; turn on the dnd softkey for this
                                        ; device. Valid values are "off", "on"
                                        ; (busy signal), "reject" (busy
                                        ; signal), "silent" (ringer = silent)
trustphoneip = no                       ; The phone has a ip address. It could
                                        ; be private, so if the phone is behind
                                        ; NAT
                                        ; we don't have to trust the phone ip
                                        ; address, but the ip address of the
                                        ; connection
;earlyrtp = none                        ; valid options: none, offhook, dial,
                                        ; ringout. default is none.
                                        ; The audio strem will be open in the
                                        ; progress and connected state.
private = on                            ; permit the private function softkey
                                        ; for this device
device => SEP0018BAXXXXXX               ; device name SEP<MAC>

[lines]

id          = 1                 ; future use
pin         = 1234                      ; future use
label       = 79701                     ; button line label (7960, 7970, 7940,
                                        ; 7920)
description = Line 79701                ; top diplay description
context     = sccp
incominglimit = 2                       ; more than 1 incoming call = call
                                        ; waiting.
transfer = on                           ; per line transfer capability. on,
                                        ; off, 1, 0
mailbox = 1001                          ; voicemail.conf (syntax:
                                        ; vmbox[@context][:folder])
vmnum = 600                             ; speeddial for voicemail
                                        ; administration, just a number to dial
cid_name = 7970 CID                     ; caller id name
cid_num = 79701
trnsfvm = 1000                          ; extension to redirect the caller (e.g
                                        ; for voicemail)
secondary_dialtone_digits = 9           ; digits for the secondary dialtone
                                        ; (max 9 digits)
secondary_dialtone_tone = 0x22          ; outside dialtone
musicclass=default                      ; Sets the default music on hold class
language=en                             ; Default language setting
;accountcode=79501                      ; accountcode to ease billing
;rtptos = 184                           ; sets the the rtp packets TOS for this
                                        ; line
echocancel = on                         ; sets the phone echocancel for this
                                        ; line
silencesuppression = off                ; sets the silence suppression for this
                                        ; line
;callgroup=1,3-4                        ; We are in caller groups 1,3,4. Valid
                                        ; for this line
;pickupgroup=1,3-5                      ; We can do call pick-p for call group
                                        ; 1,3,4,5. Valid for this line
;amaflags =                             ; Sets the default AMA flag code stored
                                        ; in the CDR record for this line
line => 79701

Ausserdem, fallst Du evtl. den chan_skinny.so aus der Openwrt noch aktiv hast - das ist ein NO NO !
Klar! Ist auch net drin.

Ich vermute mal eher, ich hab sonst irgendwas triviales an Asterisk übersehen, weil benutze ich den Shortcut der "1000" wählt (s. Config) dann kommt das Besetztzeichen weil es die Nebenstelle ja net gibt, und während diesem Besetztzeichen kann ich auch soviel Tasten drücken wie ich will und die werden auch alle von Asterisk angezeigt und nix schmiert ab. Ich glaube mittlerweile nicht mehr dass SCCP dran Schuld ist, und ich werd mich in den nächsten Tagen mal mit dem Rest auseinandersetzen.

Falls aber trotzdem jemand sich denken kann wo das Problem ist, vielen Dank schonmal für Eure Hilfe ;)

Gruss,
Marc
 
So, also ich hab jetzt mal noch ein bisschen weitergemacht.
Das einzige was funktioniert ist das raustelefonieren über eine Speeddial Taste. Ich kann weder einfach so eine Nummer wählen, noch eingehende Anrufe entgegen nehmen. In beiden Fällen schmiert Asterisk ab und hinterlässt auch nix im Debug Modus. Ich hab momentan auch keine Möglichkeit das Corefile, das ja unter MIPS generiert wird mir anzuschauen.

Ich poste nochmal meine Configs, vielleicht liegt es ja doch daran:

extensions.conf
Code:
[general]
static=yes
writeprotect=no

[sipgate-out]
exten => _X.,1,Dial,SIP/${EXTEN}@sipgate-de-out|45|r

[sipgate-in]
exten => 555XXXX,1,Dial,SCCP/797|30|r

[default]
include => sipgate-out

sip.conf
Code:
[general]
context=incoming                        ; Default context for incoming calls
bindport=5060                   ; UDP Port to bind to (SIP standard port is 5060
bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes                   ; Enable DNS SRV lookups on outbound calls
                                ; Note: Asterisk only uses the first host
                                ; in SRV records
                                ; Disabling DNS SRV lookups disables the
                                ; ability to place SIP calls based on domain
                                ; names to some other SIP users on the Internet
register => 555XXXX:[email protected]/555XXXX

[sipgate-de-out]
type=peer
insecure=very ; otherwise I get authentication errors
nat=yes
username=555XXXX
fromuser=555XXXX
fromdomain=sipgate.de
secret=XXX
host=sipgate.de
qualify=yes
canreinvite=no
disallow=all
allow=alaw

[sipgate-de-in]
type=peer
fromdomain=sipgate.de
host=sipgate.de
disallow=all
allow=alaw
context=sipgate-in

sccp.conf
Code:
[general]
keepalive = 120                         ; phone keep alive message evey
                                        ; 60 secs. Used to check the voicemail
debug = 1                               ; console debug level. 1 => 10
context = default
dateFormat = D/M/Y                      ; M-D-Y in any order. Use M/D/YA (for
                                        ; 12h format)
bindaddr = 192.168.1.1                  ; replace with the ip address of the
                                        ; asterisk server (RTP important param)
port = 2000                             ; listen on port 2000 (Skinny, default)
disallow=all                            ; First disallow all codecs
allow=alaw                              ; Allow codecs in order of preference
firstdigittimeout = 16                  ; dialing timeout for the 1st digit
digittimeout = 8                        ; more digits
autoanswer_ring_time = 1                ; ringing time in seconds for the
                                        ; autoanswer, the default is 0
autoanswer_tone = 0x32                  ; autoanswer confirmation tone. For a
                                        ; complete list of tones: grep
                                        ; SKINNY_TONE sccp_protocol.h
                                        ; not all the tones can be played in a
                                        ; connected state, so you have to try.
remotehangup_tone = 0x32                ; passive hangup notification. 0 for
                                        ; none
transfer_tone = 0                       ; confirmation tone on transfer. Works
                                        ; only between SCCP devices
callwaiting_tone = 0x2d                 ; sets to 0 to disable the callwaiting
                                        ; tone
musicclass=default                      ; Sets the default music on hold class
language=en                             ; Default language setting
deny=0.0.0.0/0.0.0.0                    ; Deny every address except for the
                                        ; only one allowed.
permit=192.168.1.0/255.255.255.0        ; Accept class C 192.168.1.0
                                        ; You may have multiple rules for
                                        ; masking traffic.
                                        ; Rules are processed from the first to
                                        ; the last.
                                        ; This General rule is valid for all
                                        ; incoming connections. It's the 1st
                                        ; filter.
dnd = on                                ; turn on the dnd softkey for all
                                        ; devices. Valid values are "off", "on"
                                        ; (busy signal), "reject" (busy
                                        ; signal), "silent" (ringer = silent)
rtptos = 184                            ; sets the default rtp packets TOS
echocancel = on                         ; sets the phone echocancel for all
                                        ; devices
silencesuppression = off                ; sets the silence suppression for all
                                        ; devices
trustphoneip = no                       ; The phone has a ip address. It could
                                        ; be private, so if the phone is behind
                                        ; NAT
                                        ; we don't have to trust the phone ip
                                        ; address, but the ip address of the
                                        ; connection
tos = 0x68                              ; call control packets tos (0x68
                                        ; Assured forwarding)
private = on                            ; permit the private function softkey

[devices]
type        = 7970                      ; device type (see below)
autologin   = 797       ; lines list. You can add an empty line
                                        ; for an empty button (7960, 7970,
                                        ; 7940, 7920)
description = Phone7970                 ; internal description. Not important
transfer = on                           ; enable or disable the transfer
                                        ; capability. It does remove the
                                        ; transfer softkey
park = on                               ; take a look to the compile howto.
                                        ; Park stuff is not compiled by default
speeddial =                             ; you can add an empty speedial if you
                                        ; want an empty button (7960, 7970,
                                        ; 7920)
speeddial = 0178XXX, HANDY
cfwdall = off                           ; activate the callforward stuff and
                                        ; softkeys
cfwdbusy = off
dtmfmode = inband                       ; inband or outofband. outofband is the
                                        ; native cisco dtmf tone play.
                                        ; Some phone model does not play dtmf
                                        ; tones while connected (bug?), so the
                                        ; default is inband
imageversion = TERM70.DEFAULT           ; useful to upgrade old firmwares (the
                                        ; ones that do not load *.xml from the
                                        ; tftp server)
deny=0.0.0.0/0.0.0.0                    ; Same as general
permit=192.168.1.141/255.255.255.255    ; This device can register only using
                                        ; this ip address
dnd = on                                ; turn on the dnd softkey for this
                                        ; device. Valid values are "off", "on"
                                        ; (busy signal), "reject" (busy
                                        ; signal), "silent" (ringer = silent)
trustphoneip = no                       ; The phone has a ip address. It could
                                        ; be private, so if the phone is behind
                                        ; NAT
                                        ; we don't have to trust the phone ip
                                        ; address, but the ip address of the
                                        ; connection
private = on                            ; permit the private function softkey
                                        ; for this device
device => SEP0018BAXXXX               ; device name SEP<MAC>

[lines]
id          = 1                 ; future use
pin         = 1234                      ; future use
label       = 797-1                     ; button line label (7960, 7970, 7940,
                                        ; 7920)
description = Extension 797             ; top diplay description
context     = default
incominglimit = 2                       ; more than 1 incoming call = call
                                        ; waiting.
transfer = on                           ; per line transfer capability. on,
                                        ; off, 1, 0
vmnum = 600                             ; speeddial for voicemail
                                        ; administration, just a number to dial
cid_name = 7970 CID                     ; caller id name
cid_num = 79701
trnsfvm = 1000                          ; extension to redirect the caller (e.g
                                        ; for voicemail)
secondary_dialtone_digits = 9           ; digits for the secondary dialtone
                                        ; (max 9 digits)
secondary_dialtone_tone = 0x22          ; outside dialtone
musicclass=default                      ; Sets the default music on hold class
language=en                             ; Default language setting
echocancel = on                         ; sets the phone echocancel for this
                                        ; line
silencesuppression = on         ; sets the silence suppression for this
                                        ; line
line => 797

output der Console
Code:
=========================================================================
Connected to Asterisk 1.2.14 currently running on OpenWrt (pid = 4745)
OpenWrt*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
sipgate-de-in              217.10.79.9                 5060     Unmonitored
sipgate-de-out/555XXXX     217.10.79.9          N      5060     OK (15 ms)
2 sip peers [2 online , 0 offline]
OpenWrt*CLI> sip show registry
Host                            Username       Refresh State
sipgate.de:5060                 555XXXX            105 Registered
OpenWrt*CLI> sccp show devices
OpenWrt*CLI>
NAME             ADDRESS         MAC              Reg. State
================ =============== ================ ==========
Phone7970        192.168.1.141   SEP0018BAXXXX  Ok

Ausserdem ist mir aufgefallen, wenn ich dann raus anrufe und schnell wieder auflege, dann hört die Gegenseite gar nicht mehr auf mit klingeln...

Alles in allem funktioniert also nicht sehr viel :heul:

Gruss,
Marc
 
Hat keiner eine Idee bzw. sowas am Laufen? :confused: :(

Also ich hab jetz mal ein 7940 zu Testzwecken dazu angeschlossen. Ich kann ohne Probleme (mit den Schnellwahltasten) zwischen den Telefonen hin- und hertelefonieren, auch kann ich mit Asterisk über sipgate mit der Aussenwelt telefonieren.

Was ich nicht kann ist:
- irgendeine Nummer *wählen* mit den ganz normalen Ziffern
- von aussen angerufen werden
Das Resultat ist immer eine Segmentation Fault in Asterisk. (mit dem 7970 *und* dem 7940)

Ich hab zwar auch ein schönes Core-File, aber die Mühe mir mit dem Crosscompiler ein MIPS Asterisk mit Debug Symbolen zu bauen hab ich mir dann doch noch nicht gemacht.

Wer weiss Rat um noch grösseres Rumgehacke zu vermeiden? Betreibt denn keiner sowas? Nochmal zur Zusammenfassung: Asterisk 1.2.14 Backport für Whiterussian 0.9 auf WRT54GS mit selbstkompiliertem chan_sccp funzt nicht so ganz...

Viele Grüsse,
marc
 
Hi jeronimo,

Probleme "nicht wählen zu können" hatte ich bei fehlendem DRdialplan.xml. Bei mir ist zwar nicht der * gecored, aber das Ergebnis war das gleiche :-).

Hast Du ein DRdialplan.xml / drdialplan.xml in Deinem TFTP Directory ?

Code:
<DIALTEMPLATE>
	<TEMPLATE MATCH="." TIMEOUT="15" User="Phone"/>
	<TEMPLATE MATCH="06.........." TIMEOUT="1" User="Phone"/>
	<TEMPLATE MATCH="0........." TIMEOUT="2" User="Phone"/>
</DIALTEMPLATE>

Ansonsten fällt mir auch nicht viel mehr dazu ein :noidea:

Bei mir hat der chan_sccp.so lediglich Probleme bei zu schneller Eingabe von DTMF Codes, bei denen der * in eine Endless-Loop geht und error-messages raussschreibt. Es hilft dann nur noch kill -9.
 
Nö also um die Datei hab ich mir noch nie Gedanken gemacht, weil das Telefon beim Booten auch gar net nach der Datei sucht. Sowieso dachte ich die sei nur relevant falls man eine SIP Firmware installiert hat... :confused:
 
jeronimo schrieb:
Sowieso dachte ich die sei nur relevant falls man eine SIP Firmware installiert hat... :confused:

WUnderte mich auch schon, weil unter SCCP brrauchen die Telefone ja keine Dialplan.xml . Wozu auch ? Der Asterisk / Callmanager übernimmt diesbezüglich alles notwendige, nur unter SIP, insbesondere wenn man ohne Asterisk oder ähnlichem telefoniert und das Telefon direkt an den VoIP-Provider hängt, ist ein Dialplan, der die Wählvorgänge regelt, direkt im Telefon von Nöten. :-)

CTU
 
jeronimo schrieb:
Hat keiner eine Idee bzw. sowas am Laufen? :confused: :(

Das Problem ist zu 99,9%, das die Asterisk Version nicht zu der sccp Version passt. Das passier meist, wenn Du sccp auf einen anderen System mit anderen Asterisk Headerdateien kompilierst.

Bei mir läuf sccp mit Asterisk und Cisco 7970 perfekt, seit fast ca. 2 Jahren.

Aktuell: "Asterisk 1.2.14-BRIstuffed-0.3.0-PRE-1y" mit "SCCP channel version: 20060408" leider noch mit einer uralt Firmware auf dem Telefon, da ich die Firmware nicht mehr einzeln bekomme.

Raffi
 
Echt komisch.
Am Anfang hatte ich ja das MIPS-Binary von chan_sccp.so das man irgendwo für die FritzBox findet mit * 1.2.1 benutzt, und das produzierte das Problem.
Dann hab ich auf 1.2.14 geupgraded, mir selber ein chan_sccp.so gebaut mit Hilfe des OpenWRT SDKs (http://wiki.openwrt.org/BuildingPackagesHowTo) und es ist wieder genau das Gleiche dabei rausgekommen. :noidea:
Also: wer nutzt Whiterussian 0.9 mit * 1.2.14 und chan_sccp? (zwecks Config und Dateiabgleich) :)
Gruss,
Marc

PS. @dynamic: danke für Deine Tips, aber wieso schreibst du was von dialplan.xml und chan_sccp wenn du ein SIP Telefon hast (wenn ich mir deinen Footer ankuck) .. würd mich nur mal interessieren (keine angst, wir sind alle mal verwirrt) :p
 
So, ich hab jetzt mal weiter rumgespielt.
Wenn ich chan_sccp nur mit Park-Funktion und ohne Pickup-Funktion kompiliere, kann ich auch Nummern frei wählen. *froi*
Angerufen werden kann ich aber immer noch nicht:

Code:
<-- SIP read from 217.10.79.9:5060:
INVITE sip:[email protected] SIP/2.0
Record-Route: <sip:217.10.79.9;lr=on>
Record-Route: <sip:217.10.79.8;ftag=as0b61c25d;lr=on>
Via: SIP/2.0/UDP 217.10.79.9;branch=z9hG4bKc27b.b99360b3.0
Via: SIP/2.0/UDP 217.10.79.8;branch=z9hG4bKc27b.3f038263.0
Via: SIP/2.0/UDP 217.10.67.14:5060;branch=z9hG4bK1c821ff4;rport=5060
From: 0178503xxxx <sip:[email protected]>;tag=as0b61c25d
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 INVITE
User-Agent: sipgate asterisk
Max-Forwards: 15
Date: Sun, 11 Mar 2007 02:06:49 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
Content-Length: 364

v=0
o=root 23566 23566 IN IP4 217.10.67.14
s=session
c=IN IP4 217.10.67.14
t=0 0
m=audio 15026 RTP/AVP 8 0 3 97 18 111 5 110
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:111 G726-32/8000
a=rtpmap:5 DVI4/8000
a=rtpmap:110 speex/8000
a=silenceSupp:off - - - -

--- (17 headers 16 lines) ---
Using INVITE request as basis request - [email protected]
Sending to 217.10.79.9 : 5060 (non-NAT)
Found peer 'sipgate-de-in'
Found RTP audio format 8
Found RTP audio format 0
Found RTP audio format 3
Found RTP audio format 97
Found RTP audio format 18
Found RTP audio format 111
Found RTP audio format 5
Found RTP audio format 110
Peer audio RTP is at port 217.10.67.14:15026
Found description format PCMA
Found description format PCMU
Found description format GSM
Found description format iLBC
Found description format G729
Found description format G726-32
Found description format DVI4
Found description format speex
Capabilities: us - 0x8 (alaw), peer - audio=0x73e (gsm|ulaw|alaw|g726|adpcm|g729|speex|ilbc)/video=0x0 (nothing), combined - 0x8 (alaw)
Non-codec capabilities: us - 0x1 (telephone-event), peer - 0x0 (nothing), combined - 0x0 (nothing)
Looking for 555xxxx in sipgate-in (domain 91.65.67.46)
list_route: hop: <sip:217.10.79.9;lr=on>
list_route: hop: <sip:217.10.79.8;ftag=as0b61c25d;lr=on>
Transmitting (no NAT) to 217.10.79.9:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 217.10.79.9;branch=z9hG4bKc27b.b99360b3.0;received=217.10.79.9
Via: SIP/2.0/UDP 217.10.79.8;branch=z9hG4bKc27b.3f038263.0
Via: SIP/2.0/UDP 217.10.67.14:5060;branch=z9hG4bK1c821ff4;rport=5060
From: 0178503xxxx <sip:[email protected]>;tag=as0b61c25d
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:[email protected]>
Content-Length: 0


---
OpenWrt*CLI>
Disconnected from Asterisk server

in meiner sip.conf steht
Code:
[sipgate-de-in]
type=peer
fromdomain=sipgate.de
host=sipgate.de
disallow=all
allow=alaw
context=sipgate-in

und in extensions.conf
Code:
[sipgate-in]
exten => 555xxxx,1,Dial,SCCP/797|30|r

Abstürzen tut es auch noch manchmal, wenn ich abhebe, eine Nummer am wählen bin, mich dann dennoch für "End Call" entscheide... naja sind ja schon fast Details ;)

Super, dass es net einfach Fehlermeldungen geben kann anstatt radikal abzustürzen.


UPDATE 4:12AM : Ich hab jetzt auf meinem (Intel) Rootserver testweise ein Asterisk installiert, dort funktioniert die gezeigte Konfig sofort, und auch eingehende Anrufe funzen. Ist also wohl ein echtes MIPS-spezifisches Problem. Was für ein Mist, das kann doch nicht sein...

UPDATE 4:51AM : Momentan scheint alles (!?) zu funktionieren. Naja ich halte euch auf dem laufenden ;)
 
Zuletzt bearbeitet:
Um der Sache hier mal einen Abschluss zu verpassen: ich weiss nicht genau was ich schlussendlich gemacht hab, aber es funktioniert seit dem letzten Posting.
Ich hab jedenfalls jetzt ein chan_sccp.so ohne Pickup Funktion. Aber ich hab das Gefühl daran lag es nicht. Ausserdem hab ich alles ausser die noload Befehle aus der modules.conf entfernt. Weil autoload=yes. Vielleicht wurde echt was 2x geladen und dass hat Abstürze verursacht. Ich kann es aber wie gesagt nicht mehr mit Bestimmtheit sagen.
Trotzdem Danke für Eure Hilfe.
Gruss,
Marc
 
Kostenlos!

Zurzeit aktive Besucher

Keine Mitglieder online.

Statistik des Forums

Themen
247,210
Beiträge
2,263,848
Mitglieder
375,705
Neuestes Mitglied
fraserarturas