Affichage des résultats 1 à 2 sur 2

Discussion: Configuration SCCP

  1. #1
    Membre Junior
    Date d'inscription
    octobre 2010
    Messages
    8
    Downloads
    1
    Uploads
    0

    Configuration SCCP

    Bonjour, je tente d'enregistrer mon téléphone Cisco IP Phone 7911g en SCCP dans Asterisk. J'ai installé Chan_SCCP et j'ai configuré mon fichier sccp.conf, mais le téléphone continue toujours à afficher "Enregistrement en cours...". Je vous joins le fichier sccp.conf.

    [general]
    servername = Asterisk-PBX ; show this name on the device registration
    keepalive = 60 ; phone keep alive message evey 60 secs. Used to check the voicemail
    debug = 5 ; console debug level. 1 => 10
    context = from-internal ; or change this to suit your default context
    dateFormat = D-M-YA ; M-D-Y in any order. Use M/D/YA (for 12h format)
    bindaddr = 192.168.0.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=g729 ; You need to have G729 installed to take advantage of G729
    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 = 0 ; 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.0.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.0.0/255.255.255.0 ; All RFC 1918 addresses are local networks
    ;externip = 24.226.152.121 ; IP Address that we're going to notify in RTP media stream
    ;externhost = voip.amfilms.ca ; 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 ; We are in caller groups 1,3,4. Valid for all lines
    ;pickupgroup=1 ; 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
    mwilamp = on ; Set the MWI lamp style when MWI active to on, off, wink, flash or blink
    mwioncall = on ; Set the MWI on call.
    blindtransferindication = ring ; moh or ring. the blind transfer should ring the caller or just play music on
    ; hold
    ;protocolversion = 3 ; skinny version protocol. Just for testing. 2 to 6
    ;cfwdall = off ; activate the callforward ALL stuff and softkeys
    ;cfwdbusy = off ; activate the callforward BUSY stuff and softkeys


    [devices]

    type = 7911 ; device type (see below)
    autologin = 2700 ; lines list. You can add an empty line for an empty button (7960, 7970, 7940, 7920)
    description = 2700 ; internal description. Not important
    keepalive = 60 ; set 0 to disable the keepalive check.
    tzoffset = -1
    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 = 111,Example Speed dial ; speeddial number and name
    speeddial = ; This creates a blank line appearance.
    cfwdall = on ; activate the callforward stuff and softkeys
    cfwdbusy = on
    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 = P00405000700 ; 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.0.0/255.255.255.0 ; 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
    mwilamp = on ; Set the MWI lamp style when MWI active to on, off, wink, flash or blink
    mwioncall = on ; Set the MWI on call.
    device => SEP0025459461E6 ; device name SEPMACADDRESS

    [lines]

    id = 2700 ; future use
    pin = 2700 ; future use
    label = 2700 ; button line label (7960, 7970, 7940, 7920)
    description = This is a CISCO ; top display description
    context = from-internal ; This is dependant on your default context
    incominglimit = 3 ; more than 1 incoming call = call waiting.
    transfer = on ; per line transfer capability. on, off, 1, 0
    mailbox = 101 ; voicemail.conf (syntax: vmbox[@context][:folder])
    vmnum = *97 ; speeddial for voicemail administration, just a number to dial
    cid_name = Test ; caller id name
    cid_num = 2700
    ;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=fr ; Default language setting
    accountcode=2700 ; accountcode to ease billing
    ;rtptos = 184 ; sets the the rtp packets TOS for this line
    echocancel = off ; sets the phone echocancel for this line
    silencesuppression = off ; sets the silence suppression for this line
    callgroup = 1 ; We are in caller groups 1,3,4. Valid for this line
    pickupgroup = 1 ; 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 => 2700

    ; phone types
    ; 7902 -- Cisco Unified IP Phone 7902G
    ; 7905 -- Cisco Unified IP Phone 7905G
    ; 7906 -- Cisco Unified IP Phone 7906G
    ; 7910 -- Cisco Unified IP Phone 7910G
    ; 7911 -- Cisco Unified IP Phone 7911G
    ; 7912 -- Cisco Unified IP Phone 7912G
    ; 7935 -- Cisco Unified IP Conference Station 7935
    ; 7936 -- Cisco Unified IP Conference Station 7936
    ; 7937 -- Cisco Unified IP Conference Station 7937G
    ; 7920 -- Cisco Unified IP Wireless Phone 7920
    ; 7921 -- Cisco Unified IP Wireless Phone 7921G
    ; 7931 -- Cisco Unified IP Phone 7931G
    ; 7940 -- Cisco Unified IP Phone 7940G
    ; 7941 -- Cisco Unified IP Phone 7941G/7941G-GE
    ; 7942 -- Cisco Unified IP Phone 7942G
    ; 7945 -- Cisco Unified IP Phone 7945G
    ; 7960 -- Cisco Unified IP Phone 7960G
    ; 7961 -- Cisco Unified IP Phone 7961G/7961G-GE
    ; 7962 -- Cisco Unified IP Phone 7962G
    ; 7965 -- Cisco Unified IP Phone 7965G
    ; 7970 -- Cisco Unified IP Phone 7970G
    ; 7971 -- Cisco Unified IP Phone 7971G-GE
    ; 7975 -- Cisco Unified IP Phone 7975G
    ; 7985 -- Cisco Unified IP Phone 7985G
    ; ata -- Cisco ATA-186 or Cisco ATA-188
    ; kirk -- Kirk telecom ip phones
    ; cipc -- Cisco IP Communicator
    ; nokia-icc -- Nokias ICC Cisco client


    ; End of sccp.conf

    Merci

  2. #2
    Membre Junior
    Date d'inscription
    janvier 2012
    Localisation
    Clermont-Ferrand
    Messages
    18
    Downloads
    2
    Uploads
    0
    Le mien fonctionne comme ça
    deux lignes par poste
    2 cisco CP6941
    1 cisco 7911g (1 seul ligne fonctionne pour l'instant)
    necessite des baux ip dhcp réservé sur le serveur dhcp (toujours la meme ip pour chaque telephone)


    ;================================================= ========================================
    ;
    ; general definitions
    ;
    ;================================================= ========================================

    [general]
    servername = asterisk
    keepalive = 60
    debug = 1
    context = Interne
    dateformat = D.M.Y
    bindaddr = IP ASTERISK
    port = 2000
    disallow=all
    allow=alaw
    allow=ulaw
    allow=g729
    firstdigittimeout = 16
    digittimeout = 8
    autoanswer_ring_time = 1
    autoanswer_tone = 0x32
    remotehangup_tone = 0x32
    transfer_tone = 0
    transfer_on_hangup = off
    callwaiting_tone = 0x2d
    musicclass=melodie
    language=fr
    deny=0.0.0.0/0.0.0.0
    permit=192.168.100.0/255.255.255.0; CHANGER SON RESEAU LOCAL
    sccp_tos = 0x68
    sccp_cos = 4
    audio_tos = 0xB8
    audio_cos = 6
    video_tos = 0x88
    video_cos = 5
    echocancel = on
    silencesuppression = off
    private = on
    callanswerorder=oldestfirst
    directed_pickup_modeanswer = yes
    hotline_enabled=no ;can devices without configuration register
    hotline_context=Park ; context for hotline
    hotline_extension=111 ; extension will be dialed on offHook
    callevents = yes

    ;================================================= ========================================
    ;
    ; actual definitions
    ;
    ;================================================= ========================================
    [Postes](!)
    addon = 7914
    park = off
    cfwdall = off
    type = device
    keepalive = 60
    transfer = yes
    cfwdall = off
    cfwdbusy = off
    cfwdnoanswer = off
    directed_pickup = off
    deny=0.0.0.0/0.0.0.0
    dndFeature = on
    directrtp=off
    earlyrtp = progress
    private = on
    mwilamp = on
    mwioncall = off
    setvar=testvar=value
    cfwdall = on
    dtmfmode = inband
    backgroundImage = "http://192.168.100.48/agence.bmp"

    [SEPMAC ADRESSE DU POSTE](Postes)
    description = Agence
    addon = 7914
    devicetype = 6941
    button = line, 2003, 2003 ; Assign Line 98011 to Device and use this as default line
    button = line, 2004, 2004 ; Assign Line 98012 to Device
    button = feature, Hors Ligne, "DND", "busy" ; Add SpeedDial to Helpdesk
    button = speeddial, 2001, 2001 ; Add SpeedDial to Phone Number Two Line 1
    permit=192.168.100.x/255.255.255.0 ;CHANGER PAR IP DU TELEPHONE

    [SEPMAC ADDRESSE DU TELEPHONNE](Postes)
    description = Maison Bureau
    addon = 7914
    devicetype = 6941
    button = line, 1001, 1001 ; Assign Line 98011 to Device and use this as default line
    button = line, 1002, 1002 ; Assign Line 98012 to Device
    button = feature, Hors Ligne, "DND", "busy" ; Add SpeedDial to Helpdesk
    button = speeddial, 2001, 2001 ; Add SpeedDial to Phone Number Two Line 1
    permit=192.168.100.x/255.255.255.0 ;CHANGER PAR IP DU TELEPHONE

    [SEPMACADDRESSE DU TELEPHONE](Postes)
    description = Maison Cuisine
    addon = 7914
    devicetype = 7911
    button = line, 1003, 1003 ; Assign Line 98011 to Device and use this as default line
    button = line, 1004, 1004 ; Assign Line 98012 to Device
    button = feature, Hors Ligne, "DND", "busy" ; Add SpeedDial to Helpdesk
    button = speeddial, 2001, 2001
    permit=192.168.100.x/255.255.255.0 ;CHANGER PAR IP DU TELEPHONE

    [Lignes](!)
    type = line
    pin = 1234
    mailbox = 2000
    accountcode=79011
    callgroup=1,3-4
    pickupgroup=1,3-5
    ;amaflags =
    context = Interne
    incominglimit = 2
    transfer = on
    vmnum = 400
    meetme = on
    meetmeopts = qxd
    meetmenum = 700
    secondary_dialtone_digits = 9
    secondary_dialtone_tone = 0x22
    musicclass=melodie
    language=fr
    echocancel = on
    silencesuppression = off
    setvar=testvar2=my value
    dnd = reject


    [1001](Lignes)
    id = 1001
    label = 1001
    description = Bureau 1001
    cid_name = Maison Bureau
    cid_num = 1001

    [1002](Lignes)
    id = 1002
    label = 1002
    description = Bureau 1002
    cid_name = Maison Bureau
    cid_num = 1002

    [1003](Lignes)
    id = 1003
    label = 1003
    description = Maison Cuisine
    mailbox = 2000
    cid_name = Maison Cuisine
    cid_num = 1003

    [1004](Lignes)
    pin = 1234
    label = 1004
    description = Maison Cuisine
    mailbox = 2000
    cid_name = Maison Cuisine
    cid_num = 1004

    [2003](Lignes)
    id = 2003
    pin = 1234
    label = 2003
    description = Ligne 2003
    cid_name = Agence
    cid_num = 2003

    [2004](Lignes)
    id = 2004
    label = 2004
    description = Ligne 2004
    mailbox = 2000
    cid_name = Agence
    cid_num = 2004
    Je refuse de parler à une machine

Règles de messages

  • Vous ne pouvez pas créer de nouvelles discussions
  • Vous ne pouvez pas envoyer des réponses
  • Vous ne pouvez pas envoyer des pièces jointes
  • Vous ne pouvez pas modifier vos messages
  •