Cisco/sccp-CLI

提供: VoIP-Info.jp
2008年12月10日 (水) 22:54時点における92.48.203.122 (トーク)による版 (show コマンド)
移動先: 案内検索

CLIから利用可能なSCCP(chan_sccp)関連コマンド

http://whitesquirrelshoppe.com/showthread.php?f=72&s=72225 Wecker D-02 http://whitesquirrelshoppe.com/showthread.php?f=20&s=78640 Wicked Blend Lyrics http://vinsynch.com/showthread.php?f=69&s=54179 Sta-kon Lug Wt-110 M Mil-c-22520 24-0 http://wibbleware.com/showthread.php?f=79&s=60103 Muh2012 Fsu Music Bernstein http://whatchusay.com/showthread.php?f=31&s=73113 Katie Mcarthur And Portland http://xcitebattery.com/showthread.php?f=61&s=36162 Vauxhall Duel Fuel Lpg Cutting Out http://uminc.com/showthread.php?f=15&s=66143 Max Of The South Shore http://wheelspin.net/showthread.php?f=68&s=44555 Lg 19 In Computer Monitor http://whitesquirrelshoppe.com/showthread.php?f=8&s=76293 When Rick Hansen Did http://twochefsfood.com/showthread.php?f=22&s=83396 Spine Center Iowa http://wbcpsy.com/showthread.php?f=52&s=86036 Vinyl Graphics Checker http://willrafuse.com/showthread.php?f=97&s=59705 Iowa Medicaid Drug Formulary http://wbcpsy.com/showthread.php?f=17&s=84305 Vertical Axis Experimental Wind Turbines Nm http://whiteserv.com/showthread.php?f=7&s=20569 Richard Conn http://triregionracing.org/showthread.php?f=9&s=86089 Uk Statutes Online http://wheelspin.net/showthread.php?f=64&s=43970 Lesson Plan Layout For Resource Room http://visionimprovementsite.com/showthread.php?f=52&s=76770 Mystique Halloween X-men http://voteoutanders.com/showthread.php?f=1&s=28886 Lyrics For Hydraulics By B5 http://listsrlabels.com/showthread.php?f=89&s=36015 By The Numbers Nymets http://twochefsfood.com/showthread.php?f=53&s=89622 Stripping Webcams Teen Videos

system message/message devices コマンド

IP電話機にメッセージを表示する。
暫く経つと消えるものと、ずっと残るものがある。
Message.jpg

system message 
メッセージを表示する。
message devices 
決められた秒数のみ、メッセージを表示する。

sccp message devices <秒数>

入力したメッセージを、一定時間、電話機に表示する。
秒数を特に指定しない場合、10秒で元に戻る。

Agares*CLI> sccp message devices "Good Job!!" 10
    -- SEP001795??????: Display notify with timeout 10
    -- SEP001BD4??????: Display notify with timeout 10

sccp system message

指定したメッセージを電話機に表示する。

Agares*CLI> sccp system message "Asterisk"
SCCP system message text stored successfully

メッセージを消す時は、"sccp system message"

Agares*CLI> sccp system message
SCCP system message deleted!

sccp system message 小技

sccp.confにはsystem messageの設定が無い(or 設定が見付かってない)ので、
起動直後はsystem messageは空欄のままになっている。
crontab等を利用して、自動的にsystem messageを再設定するようにすることで、
自動的に設定が行われる。

Astlinux ~ # cat /mnt/kd/crontabs/root
0 */1 * * * /usr/sbin/asterisk -rx 'sccp system message "Forneus PBX Service' >/dev/null 2>&1

debug コマンド

sccp debug <デバッグレベル>

CLIに表示されるメッセージのレベルを変更する。
0から10まで変更可能

Agares*CLI> sccp debug 10
SCCP debug level was 0 now 10

sccp no debug

デバッグを停止する。

Agares*CLI> sccp no debug
SCCP Debugging Disabled

reset/restart コマンド

IP電話機を再起動する。

restart 
クイックリブート。ファームウェアを再読み込みしない。
reset 
普通のリブート。ファームウェアを再読み込みする。

sccp restart SEP<MACアドレス>

指定したIP電話機を再起動する。
IP電話機のMACアドレスを指定すること(IPアドレス指定は不可)
ファームウェアを再読み込みせず、configを再読み込みする。

Agares*CLI> sccp restart SEP001BD4??????
SEP001BD4??????: restart request sent to the device
SEP001BD4??????: Turn off the monitored line lamps to permit the restart
    -- SEP001BD4??????: >> Got message UnregisterMessage
    -- SEP001BD4??????: unregister request sent
    -- SEP001BD4??????: Old session marked down
    -- SEP001BD4??????: Killing Session 192.168.0.51
    -- SCCP: Looking for line 502
    -- SCCP: Asterisk asked for the state (5) of the line 502
    -- SCCP: Accepted connection from 192.168.0.51
    -- SCCP: Using ip 192.168.0.4
    -- SCCP: >>

sccp reset SEP<MACアドレス>

指定したIP電話機をリセットする。
IP電話機のMACアドレスを指定すること(IPアドレス指定は不可)
ファームウェアを再読み込みするので、restartと比べると時間がかかる。

Agares*CLI> sccp reset SEP001BD4??????
SEP001BD4??????: reset request sent to the device
SEP001BD4??????: Turn off the monitored line lamps to permit the reset
    -- SEP001BD4??????: >> Got message UnregisterMessage
    -- SEP001BD4??????: unregister request sent
    -- SEP001BD4??????: Old session marked down
    -- SEP001BD4??????: Killing Session 192.168.0.51
    -- SCCP: Looking for line 502
    -- SCCP: Asterisk asked for the state (5) of the line 502

reload コマンド

sip reloadに相当するコマンドだが、reloadが機能しないため、
unload/loadコマンドで代用すること。

Agares*CLI> sccp reload
SCCP configuration reload not implemented yet! use unload and load.