ã¿ã¹ã¯ïŒMACã¢ãã¬ã¹ã«åºã¥ããŠãã§ããã°ããã€ã¹ãç®±ããåºããã«ãé»è©±ïŒãŸãã¯ä»ã®å å ¥è ããã€ã¹ïŒãèªåçã«ã»ããã¢ããããŸãã
å å ¥è ããã€ã¹ã®äžå åãããæ§æã®ã¢ã€ãã¢ã¯é·ãéç§ã«ãããæçµçã«ãããžã§ã¯ãã®1ã€ã§ãã®å®è£ ãèŠã€ããŸããã æçš¿ã®æåŸã®ãããªã
ç§ãåºäŒã£ãã»ãŒãã¹ãŠã®ïŒCiscoãPolycomãD-LinkãEsceneïŒIPé»è©±ã¯ãäœããã®åœ¢ã§ããµãŒããŒããã®éäžæ§æããµããŒãããŠããŸãã èªåããããžã§ãã³ã°ã«ããèªåããããžã§ãã³ã°ã ãã®å ŽåãPolycomé»è©±ã䜿çšããäŸãæ€èšããŸãããæ¬è³ªçã«ã¯ãåæ§ã®ã¢ãããŒãã«ãããç¹å®ã®èª¿æŽã§ä»»æã®é»è©±ãæ§æã§ããŸãã
ã©ã®ããã«æ©èœããŸããïŒPolycomã«ã€ããŠïŒïŒ
é»è©±æ©ã¯ããã©ã«ãã§ãDHCPãä»ããŠIPã¢ãã¬ã¹ãååŸããããã«èšå®ãããŠããŸããã¢ãã¬ã¹èªäœã«å ããŠãé»è©±æ©ã¯DHCPããå€ãã®ãªãã·ã§ã³ãåãåããŸããéåžžãã²ãŒããŠã§ã€ãããããã¹ã¯ãããã³DNSãµãŒããŒã瀺ãããŸããããã«ãSNTPãµãŒããŒãªã©ãæå®ã§ããŸãã ããªã³ã ã¯ããã©ã«ãã§ãªãã·ã§ã³66ãš160ãèŠãŠãããã§èªåããããžã§ãã³ã°ãµãŒããŒã®ã¢ãã¬ã¹/ååãèŠã€ããããšããŸãã é»è©±æ©ã¯ããµãŒããŒã¢ãã¬ã¹ãæ€åºãããšãããã©ã«ãã§FTPïŒHTTPãHTTPSãTFTPããµããŒãïŒçµç±ã§ãã°ã€ã³ãšãã¹ã¯ãŒããšããŠäœ¿çšããŠæ¥ç¶ãè©Šã¿ãŸãã
ãŠãŒã¶ãŒå
| PlcmSpIp
|
ãã¹ã¯ãŒã
| PlcmSpIp
|
é»è©±æ©ã¯ãµãŒããŒã«ããŒãžã§ã³ïŒsip.verãã¡ã€ã«ïŒãšãã¡ãŒã ãŠã§ã¢ãã¡ã€ã«èªäœããã³æ§æãã¡ã€ã«ãèŠæ±ããŸãã é»è©±æ©ã¯æ°ãããã¡ãŒã ãŠã§ã¢ãããŠã³ããŒãããŠæŽæ°ããåèµ·ååŸã«ãµãŒããŒã«å床æ¥ç¶ãããœãããŠã§ã¢ãæŽæ°ãå¿ èŠãšããªãããšã確èªããXML圢åŒã®æ§æãã¡ã€ã«ãããŠã³ããŒãããŠé©çšããŸãã äžè¬ã«ããã·ã³ã¯æ¬¡ã®ãã¡ã€ã«ãèŠæ±ããŸãã
ãã¡ã€ã«å
| 説æ
|
0000000000.cfg
| äžè¬çãªæ§æãã¡ã€ã«ïŒããŠã³ããŒãããå
容ãšå Žæãæå®ïŒ
|
* .sip.ldïŒåå²çšïŒ
sip.ldïŒçµåçšïŒ* | 察å¿ããã¢ãã«ã®é»è©±ãã¡ãŒã ãŠã§ã¢ïŒ0000000000.cfgããèšå®ïŒã
|
sip.ver
| ãœãããŠã§ã¢ããŒãžã§ã³
|
1234123adba.cfg
| MACã¢ãã¬ã¹1234123adbaã䜿çšããé»è©±èšå®
|
*-Polycomã«ã¯2ã€ã®ããŒãžã§ã³ã®çµ±åãœãããŠã§ã¢ããããŸãïŒããªãã®ééããããŸãïŒ-å šå¡ã«é©ãããåå²-é»è©±ã®è¡ããšã«åå¥ã®å°ããªsip.ldãã¡ã€ã«ããããŸãïŒãããã¯ãŒã¯ã®è² è·ã軜æžããŸãïŒã
ããããã¹ãŠã ãšæããããé»è©±ã¯è¡ãæºåãã§ããŠããŸãïŒ å®éãå°ããªã·ã¹ãã ã®å Žåã¯ãã®ãŸãŸãã€ãŸã ååïŒ
- é»è©±ã®è£œé å ã®Webãµã€ããããã¡ãŒã ãŠã§ã¢ãããŠã³ããŒãããŸãsupport.polycom.com/PolycomService/support/us/support/voice/index.html
- 0000000000.cfgã§ã¯ãé»è©±ããµãŒããŒããããŠã³ããŒãããæ§æãã¡ã€ã«ãæå®ããŸãïŒCONFIG_FILES = "custom.cfg"ïŒãããã§ååã§ãã ããã©ã«ãã§ã
- ãã¹ãŠã®ããã€ã¹ã«å ±éã®èšå®ãå«ãcustom.cfgãäœæããŸãã
- ããã€ã¹<MASAddress> .cfgããšã«è€æ°ã®confãã¡ã€ã«ãäœæããŸããããã«ã¯ãåãµãã¹ã¯ã©ã€ããŒã«åºæã®æ å ±ãå«ãŸããŸãã äžè¬çã«ã圌ã®SIPãã°ã€ã³ãšãã¹ã¯ãŒãã®ã¿ã
ãã®ãœãªã¥ãŒã·ã§ã³ã䜿çšãããšãå°èŠæš¡ãªVoIPã€ã³ãã©ã¹ãã©ã¯ãã£ãè¿ éã«å±éã§ããŸããã倧èŠæš¡ãªã·ã¹ãã ã§ã¯ãåãã¿ã€ãã®ãã¡ã€ã«ãå€æ°äœæããå¿ èŠãããã䟿å©ã§æè»æ§ãããŸããããŸããã ãŸããéå±ã§ãã
ã ããç§ã¯ãã£ãšæŽç·Žãããæ¹æ³ã§è¡ã£ãïŒ
- FTPçµç±ã§ãHTTPãä»ããŠãã¡ã€ã«ãåä¿¡ããããã«é»è©±ãæ§æããŸãïŒ8088
- Asteriskã§ã¯ãphoneprovã䜿çšããŠãusers.confãã¡ã€ã«ã«åºã¥ããŠåé»è©±ã®æ§æãã¡ã€ã«ãåçã«çæããŸãã
ãã®ã»ããã¢ããæ¹æ³ã§ã¯ãMACãusers.confã«è¿œå ããŠæ°ããããã€ã¹ãè¿œå ãããŠãŒã¶ãŒåãšãã¹ã¯ãŒããããã«èšå®ããã ãã§ååã§ããæ®ãã®æ§æã¯èªåçã«è¡ãããŸãã
次ã«ãäœãããå¿ èŠãããããããã«è©³ããæ€èšããŸãã
DHCPã»ããã¢ãã
ãã®å Žåãæ§æãä»ããŠåããã€ã¹ã®éçã¢ãã¬ã¹ãèšå®ããŸãã ããã€ã¹ã¯ã1åç®ãš2åç®ã®ããŒãã§ã®ã¿åçã¢ãã¬ã¹ãå¿ èŠãšãã3åç®ã¯æ¢ã«å®å šã«æ§ââæãããéçIPãæã£ãŠããŸãã ãããã£ãŠãç§ã¯ã¬ã³ã¿ã«æéãèšå®ããŸã-5åã空ã®ã¢ãã¬ã¹ããŒã«ãå æããªãããã«ã äžè¬çãªå ŽåãåMACã«å¯ŸããŠäºçŽãè¡ãããšã«ãããã¢ãã¬ã¹ãåçã«é åžããããšãã§ããŸãã ããã«ãããããžã§ãã³ã°ãµãŒããŒã®ã¢ãã¬ã¹ãå«ããªãã·ã§ã³66ãŸãã¯160ã奜ã¿ã«è¿œå ããå¿ èŠããããŸãã Windowsã§ã¯ãããã¯æ¬¡ã®ããã«è¡ãããŸãã
ç§ã®å ŽåãMikrotikïŒ
ãã®ãããããããžã§ãã³ã°ãµãŒããŒã®ã¢ãã¬ã¹ãå«ãã¢ãã¬ã¹ãšãªãã·ã§ã³66ãåçã«é åžããå¿ èŠããããŸãã ç§ã®å Žåãåçã¢ãã¬ã¹ã®ç¯å²ã¯20ã99ã§ãããéçã¢ãã¬ã¹ã®101ã199ã®ç¯å²ã«ãããå å ¥è ã®å éšçªå·ã¯èªåã®IPãšäžèŽããŸãã
FTPãä»ããé»è©±ã®ã»ããã¢ãã
FTPçµç±ã§èšå®ããã«ã¯ãFTPãå¿ èŠã§ããïŒCentOSïŒãèšå®ããŸãã
yum install -y vsftpd chkconfig vsftpd on service vsftpd start
/etc/vsftpd/vsftpd.confã§èšå®ã§ããŸãã
polycomãæ¥ç¶ãè©Šã¿ããŠãŒã¶ãŒãäœæããŸãã
useradd PlcmSpIp passwd PlcmSpIp
ãã¹ã¯ãŒãã®è€éããèãããšããã®ãŠãŒã¶ãŒãã§ããã ãç¡åã§ããããšã確èªãã䟡å€ããããŸãã
ãã¡ãŒã ãŠã§ã¢ãå«ãã¢ãŒã«ã€ããããŠã³ããŒããã/ home / PlcmSpIpã«è§£åããŸã
ãã¡ãŒã ãŠã§ã¢ãããŠã³ããŒããããšãã¯ãèŠåã泚ææ·±ãèªãã§ãã ãããã»ãšãã©ã®å ŽåãããŒããŒã®æŽæ°ãããŠã³ããŒãããå¿ èŠããããŸãããŸãã/ home / PlcmSpIpãã£ã¬ã¯ããªã«è§£åããŸãã
çŸæç¹ã§ã¯ããããã¯ãŒã¯ã«æ¥ç¶ãããé»è©±æ©ã¯ãé»æºããªã³ã«ãªããšãæ°ããããŒãããŒããŒãšãã¡ãŒã ãŠã§ã¢ããã³ãã¢ãŠããããœãããŠã§ã¢ãæŽæ°ããå¿ èŠããããŸãã
æ§æãã¡ã€ã«ãæäœãã
ãããããç§ã¯æã§XMLãç·šéããããšããŠå€ãã®æéã倱ããŸãããèªè ã®çãããXMLã®äžçã§Obi-Wan-Kenobiã§ãªãå Žåã¯ãããã¹ããšãã£ã¿ãŒã§èšå®ãç·šéããªãã§ãã ããã æ§æãåŠçããããã«ãXML Notepad 2007ã䜿çšããŸãããçµåããŒãžã§ã³ã®ãã¡ãŒã ãŠã§ã¢ãããŠã³ããŒãããå Žåãconfigãã©ã«ããŒã«ã¯ã* .cfgæ¡åŒµåãšpolycomConfig.xsd XMLã¹ããŒããæã€ããã€ãã®æ§æãã¡ã€ã«ããããŸãã
* .cfg-æ§æãã¡ã€ã«ã®äŸã¯ããŒãå¥ã«ã°ã«ãŒãåãããŠããŸã
polycomConfig.xsd
| ã¹ããŒã
|
video-integration.cfg
| ãããªçµ±åã®ã»ããã¢ãã
|
video.cfg
| ãããªãã³ã°ã¢ãŠããèšå®ãã
|
site.cfg
| å€ãã®ããšãããããããããã¹ãŠã®èšå®ããããŸã
|
sip-interop.cfg
| äžå£ãé話ãããŒã³ã®èšå®
|
sip-basic.cfg
| äžå£èšå®
|
region.cfg
| å°åèšå®
|
reg-basic.cfg
| SIPç»é²-åºæ¬
|
reg-advanced.cfg
| SIPç»é²-æ¡åŒµ
|
H323.cfg
| H323èšå®
|
features.cfg
| ä¿ç転éèšå®ã®è»¢é
|
device.cfg
| ããã€ã¹èšå®ããããã¯ãŒã¯ã·ã¹ãã
|
applications.cfg
| ã¢ããªã±ãŒã·ã§ã³èšå®
|
åãã¡ã€ã«ã«ã¯æ¬¡ã®ãããªè¡ããããŸãã
<polycomConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="polycomConfig.xsd">
ã€ãŸããXMLãšãã£ã¿ãŒã§æ§æãã¡ã€ã«ãéããšãåããã©ã«ããŒå ã§polycomConfig.xsdã¹ããŒããã¡ã€ã«ãæ€çŽ¢ãããæ§æãã¡ã€ã«ã®ãã¹ãŠã®å¯èœãªãã£ãŒã«ããšäœ¿çšå¯èœãªå€ã®ãªã¹ããŸãã¯çãã³ã¡ã³ããå«ãŸããŸãã ãã®æ®µéã§ãããŠã³ããŒããHTTPçµç±ã§ããã¹ãããšãããã€ã¹ã«ç€ºããæ§æãã¡ã€ã«ãžã®httpãã¹ãæå®ããå¿ èŠããããŸãã
polycomConfig.xsdããããã©ã«ããŒã§ã次ã®å 容ã®ããã¹ããã¡ã€ã«custom.cfgãäœæããŸãã
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <polycomConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="polycomConfig.xsd"> </polycomConfig>
XMLãšãã£ã¿ãŒã§éããŸãã å«ãŸãããã£ãŒã«ããGoogleã§æ€çŽ¢ãããã管çè ã600ããŒãžã®æ瀺ã䜿çšããŠã¡ãŒã«ãŒã®é»è©±ãèšå®ããå¿ èŠããããŸãã
ããããã»ãšãã©ã®å Žåããã¹ãŠãçŽæçã§ãã æåã«ãpolycomConfigã³ã³ããã¹ãã¡ãã¥ãŒãŸãã¯åã«polycomConfigã«ç«ã£ãŠãããšãã«ctrl + insertã䜿çšããŠãèŠçŽ ïŒããããã»ã¯ã·ã§ã³ãŸãã¯ä»ã®ããšãèšãå¿ èŠããããŸãããç§ã¯ç¥ããªãã®ã§ãXMLãšãã£ã¿ãŒãšåŒã°ããååãä»ããŸãïŒ
ããããããŠã³ãªã¹ãã§ãããã€ã¹ãéžæããŸã deviceèŠçŽ ã«device.dhcpèŠçŽ ãäœæããã®ãšåãæ¹æ³ã§ãããã€ã¹ã®èšå®ã«é¢å¿ããããŸãã
ããã§ãAlt + Insertå±æ§ãäœæããããdevice.dhcpã®ã³ã³ããã¹ãã¡ãã¥ãŒããã䜿çšå¯èœãªå€ã®ããŒã«ãããããããŒãããšã䜿çšå¯èœãªå±æ§ã®ããããããŠã³ãªã¹ããéããŸãã
Staticãèšå®ããŸã-ãã®å Žåãããã¯DHCPãªãã·ã§ã³160ãš66ãç¡èŠãããããšãæå³ããŸãã åãæ¹æ³ã§ä»ã®ãã©ã¡ãŒã¿ãŒãèšå®ãããšã次ã®ãã¡ã€ã«ãäœæãããŸãã
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <polycomConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="polycomConfig.xsd"> <device device.set="1"> <device.dhcp device.dhcp.bootSrvUseOpt="Static" device.dhcp.enabled="1"> <device.dhcp.enabled device.dhcp.enabled.set="1" /> <device.dhcp.bootSrvUseOpt device.dhcp.bootSrvUseOpt.set="1" /> </device.dhcp> <device.prov device.prov.serverName="http://192.168..:8088/phoneprov/" device.prov.serverType="HTTP"> <device.prov.serverName device.prov.serverName.set="1" /> <device.prov.serverType device.prov.serverType.set="1" /> </device.prov> </device> </polycomConfig>
<ããã€ã¹device.set = "1">
| ããã€ã¹èšå®ãèšå®ãã
|
device.dhcp.bootSrvUseOpt = "éç"
| DHCPãªãã·ã§ã³66ããã³160ãç¡èŠãã
|
device.dhcp.enabled = "1"
| DHCPã䜿çšãã
|
<device.dhcp.enabled device.dhcp.enabled.set = "1" />
| èšå®å€dhcp.enabled
|
<device.dhcp.bootSrvUseOpt device.dhcp.bootSrvUseOpt.set = "1" />
| bootSrvUseOptå€ãèšå®ããŸã
|
device.prov.serverName = "httpïŒ//192.168.xxx.xxxïŒ8088 / phoneprov /"
| ãã¡ã€ã«ãã¹
|
device.prov.serverType = "HTTP"
| ããããžã§ãã³ã°ãµãŒããŒã¿ã€ã
|
<device.prov.serverName device.prov.serverName.set = "1" />
| serverNameãèšå®ããŸã
|
<device.prov.serverType device.prov.serverType.set = "1" />
| serverTypeãèšå®ããŸã
|
倪åã®å±æ§ã«ã¯ç¹ã«æ³šæãæãå¿ èŠããããŸããããã¯ã¹ã€ããã®ãããªãã®ã§ãã ãã©ã¡ãŒã¿ã®å€ãå ¥åããã ãã§ã¯ååã§ã¯ãããŸãããå ·äœçã«ãã¯ãããšèšãå¿ èŠããããŸãããã®ãã©ã¡ãŒã¿ãé©çšããå¿ èŠããããŸãã <Device device.set = "1">ã¯ç¹ã«éèŠã§ãã ãã®ãã©ã¡ãŒã¿ãŒã0ã®å Žåãããã€ã¹èŠçŽ ã®ãã¹ãŠã®èšå®ã¯ç¡èŠãããŸãã
ã¢ã¹ã¿ãªã¹ã¯èšå®
ããã§ãèµ·åæã«192.168.xxx.xxxãããã¡ã€ã«ãèŠæ±ããããã«ãªããŸããïŒ8088 / phoneprov /ã ããããç¡ããæè¯ãããå¿ èŠããããŸãã ãã®å€ã«å¯ŸããŠãã¢ã¹ã¿ãªã¹ã¯ã«ã¯ç¹å¥ãªã¢ãžã¥ãŒã«ãããããã³ãã¬ãŒãã«åºã¥ããŠãã¡ã€ã«ãèªåçã«çæããã¢ã¹ã¿ãªã¹ã¯ã®çµã¿èŸŒã¿HTTPãµãŒããŒãä»ããŠããããã¢ããããŒãã§ããŸãã 詳现ã«ã€ããŠã¯ãã¡ããã芧ãã ãã ãç¹ã«æ¬¡ã®ããã«èšèŒãããŠããŸãã
/etc/asterisk/manager.confã«ä»¥äžãå«ãŸããŠããããšã確èªããŠãã ããã
[äžè¬]
enabled = yes; -ããããå¿ èŠã§ãããçç±ã¯ããããŸããã
webenabled = yes; -ããããå¿ èŠã§ãããçç±ã¯ããããŸããã
/etc/asterisk/http.confã«ä»¥äžãå«ãŸããŠããããšã確èªããŠãã ããã
[äžè¬]
enabled = yes; çµã¿èŸŒã¿HTTPãµãŒããŒãå«ã
bindaddr = 192.168.xxx.xxx; IP-ãµãŒããŒãå©çšå¯èœã«ãªã
bindport = 8088; -ãªããªã ããŒã80ã¯Apacheã«ãã£ãŠå æããã8088ã䜿çšããŸã
httpãµãŒããŒãããã¡ã€ã«ãèŠæ±ããå Žåãphoneprovã¯ãã¡ã€ã«ãã³ãã¬ãŒããååŸããusers.confããååŸããå€æ°ã眮ãæããŸããããã¯ç¹ã«äŸ¿å©ã§ããã€ã€ã«ãã©ã³ã®ããã¹ãæ©èœã䜿çšã§ããŸãã ããšãã°ãæ§æãã¡ã€ã«ãå°æåã§ãŠãŒã¶ãŒã®MACã¢ãã¬ã¹ã«åœ¢æããããšããã³ãã¬ãŒãå ã®$ {TOLOWERïŒ$ {MAC}ïŒ}ã眮ãæããããŸãã
次ã®å€æ°ããã³ãã¬ãŒãã§äœ¿çšã§ããŸãã
fullname = User Two ; ${DISPLAY_NAME} secret = test ; ${SECRET} username = 6001 ; ${USERNAME} macaddress = deadbeef4dad ; ${MAC} label = 6001 ; ${LABEL} cid_number = 6001 ; ${CALLERID} : ${SERVER} â phoneprov.conf , bindaddr http.conf ${SERVER_PORT} - bindport sip.conf, , 5060
res_phoneprovèªäœã®æ§æãã¡ã€ã«ã¯/etc/asterisk/phoneprov.confã§ãããã®ãã¡ã€ã«ã§ã¯ããã¹/ var / lib /ã¢ã¹ã¿ãªã¹ã¯/ phoneprov /ã«é¢é£ããéçãã¡ã€ã«ã®ãã£ã¬ã¯ããªãéçãã¡ã€ã«ã®ãªã¹ããåçã«çæããããã¡ã€ã«ã®ãã³ãã¬ãŒãããã³ååãã³ãã¬ãŒãã®ãªã¹ããæå®ããå¿ èŠããããŸãã 以äžã«äŸã瀺ããŸãã
[general] serveraddr=192.168.. ; ${SERVER}. serverport=5060 ; ${SERVER_PORT}. default_profile=polycom ; users.conf [polycom] staticdir => configs/ ; , , , .., /var/lib/asterisk/phoneprov/ mime_type => text/xml static_file => 2345-12345-001.bootrom.ld static_file => 2345-12360-001.bootrom.ld static_file => 2345-12365-001.bootrom.ld static_file => 2345-12365-002.bootrom.ld static_file => 2345-12375-001.bootrom.ld static_file => 2345-12375-002.bootrom.ld static_file => 2345-12450-001.bootrom.ld static_file => 2345-12450-002.bootrom.ld static_file => 2345-12500-001.bootrom.ld static_file => 2345-12560-001.bootrom.ld static_file => 2345-12600-001.bootrom.ld static_file => 2345-12600-002.bootrom.ld static_file => 2345-12670-001.bootrom.ld static_file => 2345-12670-002.bootrom.ld static_file => 3111-15600-001.bootrom.ld static_file => 3111-30900-001.bootrom.ld static_file => 3111-40000-001.bootrom.ld static_file => bootrom.ld static_file => sip.ver static_file => sip.ld static_file => 000000000000-directory.xml ;- static_file => languages/Website_dictionary_language_ru-ru.xml static_file => SoundPointIPLocalization/Russian_Russia/SoundPointIP-dictionary.xml ;------------ ${TOLOWER(${MAC})}.cfg => 000000000000.cfg ; , http://192.168..:8088/phoneprov/111111111111.cfg 000000000000.cfg 111111111111.cfg, users.conf macaddress=111111111111 ${TOLOWER(${MAC})}-custom.cfg => 000000000000-phone.cfg ; http://192.168..:8088/phoneprov/111111111111-custom.cfg 111111111111-custom.cfg users.conf macaddress=111111111111
éçãã¡ã€ã«ã䜿çšãããšããã¹ãŠãç°¡åã«ãªããŸãããã¡ã€ã«ãphoneprov.confã«ç»é²ãããé©åãªã¢ãã¬ã¹ã«é 眮ãããŠããå ŽåãWebãµãŒããŒãã䜿çšã§ããŸãã
ãã€ãããã¯ã§ã¯ãããå°ãè€éã«èŠããŸããããã¹ãŠãæ確ã«ãªããŸãã ãµã³ãã«ãã³ãã¬ãŒãã次ã«ç€ºããŸãã
000000000000.cfg
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <APPLICATION APP_FILE_PATH="sip.ld" CONFIG_FILES="${TOLOWER(${MAC})}-custom.cfg" MISC_FILES="" LOG_FILE_DIRECTORY="" OVERRIDES_DIRECTORY="" CONTACTS_DIRECTORY="" LICENSE_DIRECTORY="" USER_PROFILES_DIRECTORY="" CALL_LISTS_DIRECTORY=""> </APPLICATION>
ããã©ã«ãã§ã¯ããã¹ãŠã®é»è©±ã¯1234123adba.cfgãã¡ã€ã«ãèŠæ±ããŸãã1234123adbaã¯é»è©±ã®MACã¢ãã¬ã¹ã§ãã é»è©±ã¯ãªã¯ãšã¹ãhttpïŒ//192.168.xxxx.xxxïŒ8088 / phoneprov / 1234123adba.cfgãéä¿¡ããŸãã ãã®ãã³ãã¬ãŒãã«ã¯å€æ°ã1ã€ãããªããCONFIG_FILES = "$ {TOLOWERïŒ$ {MAC}ïŒ}-custom.cfg"ãã£ã¬ã¯ãã£ãã¯CONFIG_FILES = "1234123adba-custom.cfg"ã«ãªããèšå®ãã¡ã€ã«1234123adbaãããŠã³ããŒãããå¿ èŠãããããšãé»è©±æ©ã«äŒããŸãã -custom.cfgã é»è©±æ©ã¯ã httpïŒ//192.168.xxx.xxxïŒ8088 / phoneprov / 1234123adba.cfg-custom.cfgãšãããªã¯ãšã¹ããéä¿¡ããŸãããµãŒããŒã¯ã2çªç®ã®ãã³ãã¬ãŒã000000000000-phone.cfgã«åºã¥ããŠå¥ã®åçãã¡ã€ã«ãçæããŸãã
000000000000-phone.cfg
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <polycomConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="polycomConfig.xsd"> <call call.callsPerLineKey="2"></call> <reg reg.1.address="${USERNAME}" reg.1.auth.password="${SECRET}" reg.1.auth.userId="${USERNAME}" reg.1.label="${USERNAME}" reg.1.outboundProxy.address="${SERVER}" reg.1.lineKeys="2" reg.1.auth.domain="${SERVER}" reg.1.displayName="${USERNAME}" reg.1.server.1.address="${SERVER}" reg.1.server.1.register="1"></reg> <device device.set="1"> <device.dhcp device.dhcp.bootSrvUseOpt="Static" device.dhcp.enabled="0"> <device.dhcp.enabled device.dhcp.enabled.set="1" /> <device.dhcp.bootSrvUseOpt device.dhcp.bootSrvUseOpt.set="1" /> </device.dhcp> <device.dns device.dns.serverAddress="192.168.xxx.1" device.dns.altSrvAddress="8.8.8.8"> <device.dns.serverAddress device.dns.serverAddress.set="1" /> </device.dns> <device.prov device.prov.serverName="http://192.168.xxx.xxx:8088/phoneprov/" device.prov.serverType="HTTP"> <device.prov.serverName device.prov.serverName.set="1" /> <device.prov.serverType device.prov.serverType.set="1" /> </device.prov> <device.net device.net.ipAddress="192.168.XXX.${USERNAME}" device.net.subnetMask="255.255.255.0" device.net.IPgateway="192.168.xxx.1"> <device.net.ipAddress device.net.ipAddress.set="1" /> <device.net.subnetMask device.net.subnetMask.set="1" /> <device.net.IPgateway device.net.IPgateway.set="1" /> </device.net> <device.sntp device.sntp.gmtOffset="14400" device.sntp.serverName="pool.ntp.org"> <device.sntp.gmtOffset device.sntp.gmtOffset.set="1" /> <device.sntp.serverName device.sntp.serverName.set="1" /> </device.sntp> </device> <dialplan dialplan.1.digitmap="" dialplan.1.digitmap.timeOut="" dialplan.1.impossibleMatchHandling="2" /> <lcl> <lcl.ml lcl.ml.lang="Russian_Russia" /> </lcl> <tcpIpApp> <tcpIpApp.sntp.daylightSavings tcpIpApp.sntp.daylightSavings.enable="0" /> </tcpIpApp.sntp> </tcpIpApp> </polycomConfig>
ããã§ã¯ããã€ãã®å€æ°ã䜿çšãããŸãïŒ
$ {SECRET}ã¯ãusers.confã®ãããŒ1234123adbaã䜿çšããŠããŠãŒã¶ãŒã®èª¬æã®ç§å¯ã®å€ã眮ãæããŸã
$ {USERNAME}ã¯ããŠãŒã¶ãŒã®èª¬æã®ãŠãŒã¶ãŒåã®å€ããusers.confã®ãããŒ1234123adbaã«çœ®ãæããŸãã
$ {SERVER}ã¯ãphoneprov.confã®å€ã眮ãæããŸã
泚æããŠãã ããïŒ phoneprov.confãå€æŽããåŸãèšå®ãå³ããããããã«ãªããŒããå¿ èŠã§ãã
ãã¹ãŠã®æºåãæŽã£ãããã³ã³ãœãŒã«ã§ç¢ºèªããŸãã
phoneprovã·ã§ãŒã«ãŒã
éçã«ãŒãã衚瀺ããå¿ èŠããããŸããåçã«ãŒãã¯ãusers.confã«autoprov = yesã®ãŠãŒã¶ãŒãšmasã¢ãã¬ã¹ãããå Žåã«ã®ã¿è¡šç€ºãããŸã
users.confã®æ§æ
/etc/asterisk/users.confãäœæããããã®ã»ãšãã©ãã¹ãŠãæ®ã£ãŠããŸãã ããã§ããæé©åã®æ©äŒããããŸããã Androidåãã®zxingã¢ããªã±ãŒã·ã§ã³ã䜿çšããŠãé»è©±æ©ã®ãã¹ãŠã®MACã¢ãã¬ã¹ãããã¯ã¹ããçŽæ¥ã¹ãã£ã³ããåãã¢ããªã±ãŒã·ã§ã³ããã¡ãŒã«ã«éä¿¡ããŸããã å°èŠæš¡ã®å ŽåãåãããŒã«äœããã®ã¢ã«ãŠã³ããé¢é£ä»ããããšãäŸç¶ãšããŠåœãŠã¯ãŸããŸãã åmacaddress = .......ã®ããã«æžãæãã©ããããããç§ã¯ããããããŸããã§ããã 衚圢åŒã®ããŒã¿ã«åºã¥ããŠã¢ã¹ã¿ãªã¹ã¯æ§æãèªåçã«çæããããã®ãã¡ã€ã«ãäœæããŸãããããã«ã¯ãã¹ã¯ãŒããžã§ãã¬ãŒã¿ããããŸãã
åãã³ããŒããŠusers.confã«è²Œãä»ããã ãã§ãã ãã®ãããžã§ã¯ãã®æºåž¯é»è©±ã¯ãã¹ãŠåãã§ããå šå¡ã®ãã³ãã¬ãŒããäœæãããŠãŒã¶ãŒã®èª¬æã«MACãšãã¹ã¯ãŒãã®ã¿ãè¿œå ããã®ãçã«ããªã£ãŠããããã§ãã
/etc/asterisk/users.conf
... [def](!) ;- type=friend fromuser="CPZ" host=dynamic nat=no disallow=all allow=ulaw allow=alaw hasvoicemail = no hassip = yes hasiax = no hash323 = no hasmanager = no qualify=yes autoprov = yes ;- context=full [101](def) secret=XAHNGNCCXGR macaddress=0004f24ab859 [102](def) secret=OSANPHVZIEX macaddress=0004f24abdd6 [103](def) secret=AHUDYLSXFGT macaddress=0004f24ab766 âŠâŠ
ãã¹ãŠã®æºåãæŽã£ãããã³ã³ãœãŒã«ã§ç¢ºèªããŠãã ããïŒphoneprov show routes
éçã«ãŒããšåçã«ãŒãã®äž¡æ¹ã衚瀺ãããã¯ãã§ãã ãã©ãŠã¶192.168.xxxx.xxxããã§ãã¯ããããã«æ®ããŸãïŒ8088 / phoneprov / 1234123adba.cfgããšãã°ãé»è©±ããªã³ã«ãããšããã¹ãŠãèªåçã«è¡ãããŸãã
ã»ãã¥ãªãã£ãå¿ããªãã§ãã ãããã€ã³ãã©ã¹ãã©ã¯ãã£ãå±éããåŸãèšå®ãŸãã¯ãœãããŠã§ã¢ãæŽæ°ããå¿ èŠããããŸã§ãftpãµãŒããŒãç¡å¹ã«ããã¢ã¹ã¿ãªã¹ã¯ã§çµã¿èŸŒã¿WebãµãŒããŒãç¡å¹ã«ããããšããå§ãããŸãã çªç¶æ§æãé »ç¹ã«å€æŽããå¿ èŠãããå Žåã¯ãHTTPSã䜿çšããŠãã ããã