isdnd
—
isdn4bsd ISDN
Àܳ´ÉÍý¥Ç¡¼¥â¥ó
isdnd
[-c
configfile] [-d
debuglevel] [-f
]
[-F
] [-l
]
[-L
logfile]
[-P
] [-r
device] [-s
facility] [-t
terminaltype] [-u
charging unit length] [-m
]
isdnd
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï
isdn4bsd
¥Ñ¥Ã¥±¡¼¥¸¤Î¥Ç¡¼¥â¥ó¤Ç¤¢¤ê¡¢
¤³¤Î¥Ñ¥Ã¥±¡¼¥¸¤¬¥µ¥Ý¡¼¥È¤¹¤ë
ISDN
¥Ç¥Ð¥¤¥¹¤Î¤¹¤Ù¤Æ¤Î
ISDN
´ØÏ¢¤ÎÀܳ¤äÀÚÃǤò´ÉÍý¤·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:
-c
- ¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥¡¥¤¥ë
/etc/isdn/isdnd.rc
¤ÎÂå¤ï¤ê¤Ë¡¢
configfile ¤ò
isdnd
¤Î¼Â¹Ô»þÀßÄê¥Õ¥¡¥¤¥ë̾¤È¤·¤ÆÍѤ¤¤Þ¤¹¡£
-d
isdnd
¤¬¥Ç¥Ð¥Ã¥°µ¡Ç½¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ë¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¡¢
¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ¥Ç¥Ð¥Ã¥°¥ì¥Ù¥ë¤ò»ØÄꤷ¡¢
¤É¤Î¼ïÎà¤Î¥Ç¥Ð¥Ã¥°¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë¤«¤òÀßÄꤷ¤Þ¤¹¡£
¥Ç¥Ð¥Ã¥°¥ì¥Ù¥ë¤Ë¤Ï¼¡¤ÎÃͤÎϤò»ØÄꤷ¤Þ¤¹:
- 0x001
- °ìÈÌŪ¤Ê¥Ç¥Ð¥Ã¥°¡£
- 0x002
- ÎÁ¶â·×»»¡£
- 0x004
- ¥¿¥¤¥ß¥ó¥°·×»»¡£
- 0x008
- ¾õÂְܹԡ£
- 0x010
- ºÆ»î¹ÔÁàºî¡£
- 0x020
- ¥À¥¤¥ä¥ë¡£
- 0x040
- ¥×¥í¥»¥¹Áàºî¡£
- 0x080
- isdn4bsd
¥«¡¼¥Í¥ë¤ÎÆþ½ÐÎϸƤӽФ·¡£
- 0x100
- ¥³¥ó¥È¥í¡¼¥é¤È¥Á¥ã¥Í¥ë¤Î¥Ó¥¸¡¼/¥Õ¥ê¡¼¥á¥Ã¥»¡¼¥¸¡£
- 0x200
- ÀßÄê¥Õ¥¡¥¤¥ë
isdnd.rc
¤Î½èÍý¡£
- 0x400
- ȯ¸Æ¤Îͽ»»½èÍý¡£
- 0x800
- ͸ú¤Ê¥¡¼¥ï¡¼¥É¤ÈµÙÆü¥Õ¥¡¥¤¥ë¤Î½èÍý¡£
¤³¤ÎÃͤλØÄê¤ËºÝ¤·¤Æ¡¢
sscanf(3)
¥é¥¤¥Ö¥é¥ê¥ë¡¼¥Á¥ó¤¬¥µ¥Ý¡¼¥È¤¹¤ë´ð¿ô¤Î¤É¤ì¤Ç¤â»ÈÍѤǤ¤Þ¤¹¡£
¤µ¤é¤Ë¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤Ç¤Ï°ú¿ô¤È¤·¤Æʸ»ú¡Ön¡×¤òÍ¿¤¨¤Æ¡¢
Á´²èÌÌɽ¼¨¤Ë¥Ç¥Ð¥Ã¥°¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤µ¤»¤Ê¤¤¤è¤¦¤Ë¤â¤Ç¤¤Þ¤¹¡£
-f
- ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È¡¢
isdnd
¤ÏÁ´²èÌ̥⡼¥É¤Ç¤ÎÁàºî¤ËÀÚ¤êÂؤï¤ê¤Þ¤¹¡£¤³¤Î¥â¡¼¥É¤ÇÁàºî¤¹¤ë¾ì¹ç¡¢
À©¸æʸ»ú
Control-L
¤òÆþÎϤ¹¤ë¤Èɽ¼¨¤ò¹¹¿·¤·¤Þ¤¹¡£¤Þ¤¿¡¢
Éüµ¢Ê¸»ú
(Carriage-Return) ¤Þ¤¿¤Ï
Enter
¤Ç¥³¥Þ¥ó¥É¥¦¥£¥ó¥É¥¦¤òɽ¼¨¤·¤Þ¤¹¡£
isdnd
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï
¥³¥Þ¥ó¥É¥¦¥£¥ó¥É¥¦¤¬³«¤¤¤Æ¤¤¤ë´Ö¤Ï¥á¥Ã¥»¡¼¥¸¤ò¼õ¤±ÉÕ¤±¤Ê¤¤¤Î¤Ç¡¢
5
Éô֤ɤΥ³¥Þ¥ó¥É¥¡¼¤â²¡¤µ¤ì¤Ê¤±¤ì¤Ð¡¢
¤³¤Î¥³¥Þ¥ó¥É¥¦¥£¥ó¥É¥¦¤Ï¼«Æ°Åª¤ËÊĤ¸¤Þ¤¹¡£
¥³¥Þ¥ó¥É¥¦¥£¥ó¥É¥¦¤¬³«¤¤¤Æ¤¤¤ë»þ¤Ï¡¢
¥¿¥Ö ¤«
¥¹¥Ú¡¼¥¹
¤Ç¼¡¤Î¥á¥Ë¥å¡¼¹àÌܤؿʤߤޤ¹¡£¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤Ë¤Ï¡¢
¥Ï¥¤¥é¥¤¥Èɽ¼¨¤µ¤ì¤¿¥á¥Ë¥å¡¼¹àÌܤËÂФ·
Return ¤« Enter
¤òÆþÎϤ¹¤ë¤«¡¢¼Â¹Ô¤¹¤ë¹àÌܤËÂбþ¤¹¤ë¿ô»ú¤òÆþÎϤ¹¤ë¤«¡¢
¥á¥Ë¥å¡¼¹àÌܵ½Ò¤ÎÂçʸ»ú¤òÆþÎϤ·¤Æ²¼¤µ¤¤¡£
-l
- ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤ë¤È¡¢¥í¥°¤Ï
syslogd(8)
¥Õ¥¡¥·¥ê¥Æ¥£·Ðͳ¤Ç¤Ï¤Ê¤¯¡¢¥Õ¥¡¥¤¥ë¤ËÄɲýñ¤¤µ¤ì¤Þ¤¹¡£
-L
- ¥ª¥×¥·¥ç¥ó
-l
¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë»þ¤Ë»ÈÍѤµ¤ì¤ë¥í¥°¥Õ¥¡¥¤¥ë¤Î̾Á°¤ò»ØÄꤷ¤Þ¤¹¡£
isdnd.rc(5)
¤Î¥·¥¹¥Æ¥à¥»¥¯¥·¥ç¥ó¤Î¥¡¼¥ï¡¼¥É
rotatesuffix
¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
-P
- ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢²òÀϤµ¤ì͸ú¤Ë¤Ê¤Ã¤¿
isdnd ¤ÎÀßÄê¤ò
isdnd.rc
¥Õ¥¡¥¤¥ë¤ÈƱ¤¸½ñ¼°¤Ç½ÐÎϤ·¤Þ¤¹¡£
¤³¤Î½ÐÎϤÏ
isdnd.rc
¥Õ¥¡¥¤¥ë¤È¤·¤ÆÍøÍѤǤ¤Þ¤¹¡£
isdnd.rc
¤ò¥Ç¥Ð¥Ã¥°¤¹¤ëºÝ¤Ë¡¢
isdnd.rc
ÆþÎÏ¥Õ¥¡¥¤¥ëÃæ¤ÇÀßÄꤷ¤Æ¤¤¤Ê¤¤¥ª¥×¥·¥ç¥ó¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤Ï
²¿¤«¤òÄ´¤Ù¤ë¾ì¹ç¡¢¤³¤Îµ¡Ç½¤ÏÆäËÍÍѤǤ¹¡£
½ÐÎϤò½ª¤¨¤ë¤È¡¢
isdnd
¤Ï½ªÎ»¤·¤Þ¤¹¡£
-F
- ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢
isdnd
¤¬À©¸æüËö¤«¤éÎ¥¤ì¤Æ¥Ç¡¼¥â¥ó¤Ë¤Ê¤é¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£
-r
-t
¥ª¥×¥·¥ç¥ó¤È¤È¤â¤ËÍѤ¤¤é¤ì¡¢
device
¤ÇüËö¥Ç¥Ð¥¤¥¹¤ò»ØÄꤷ¤Þ¤¹¡£¤³¤ì¤¬
isdnd
¤ÎÀ©¸æüËö¤È¤Ê¤ê¡¢¤³¤³¤ËÁ´²èÌ̥⡼¥É¤Î½ÐÎϤ¬É½¼¨¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
-s
- syslog(3)
¤Ë¤è¤ë¥í¥°¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Æ¡¢
¥Ç¥Õ¥©¥ë¥È¤Î
LOCAL0
¥Õ¥¡¥·¥ê¥Æ¥£°Ê³°¤Î¥Õ¥¡¥·¥ê¥Æ¥£¤ò»È¤¤¤¿¤¤¾ì¹ç¤Ë¡¢
¤³¤Î¥ª¥×¥·¥ç¥ó¤òÍѤ¤¤Æ¥í¥°¥Õ¥¡¥·¥ê¥Æ¥£¤ò»ØÄê¤Ç¤¤Þ¤¹¡£
¥Õ¥¡¥·¥ê¥Æ¥£¤Ï
0-11 ¤Þ¤¿¤Ï 16-23
¤ÎÈϰϤÎÀ°¿ô¤Ç»ØÄꤷ¤Þ¤¹
(¥Õ¥¡¥¤¥ë
/usr/include/syslog.h
¤ò»²¾È)¡£
-t
- ¥ª¥×¥·¥ç¥ó
-f
¤È -r
¤È¶¦¤ËÍѤ¤¤é¤ì¡¢
isdnd
¤ÎÁ´²èÌ̽ÐÎϤ˻Ȥï¤ì¤ë¥Ç¥Ð¥¤¥¹¤ÎüËö¥¿¥¤¥×¤«
termcap
¥¨¥ó¥È¥ê̾
(vt220 ¤Ê¤É) ¤ò
terminaltype
¤Ç»ØÄꤷ¤Þ¤¹¡£
¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢´Ä¶ÊÑ¿ô
TERM
¤¬Â¸ºß¤·¤Ê¤¤¡¢Ì¤»ÈÍѤÎ
(getty
¤¬Æ°¤¤¤Æ¤¤¤Ê¤¤)
tty ²óÀþ¤ò
Á´²èÌ̽ÐÎϤ˻Ȥ¦¾ì¹ç¤ËÍÍѤǤ¹¡£
-u
- ÀßÄê¥Õ¥¡¥¤¥ë¤Î¥¨¥ó¥È¥ê¥¡¼¥ï¡¼¥É
unitlenghtsrc ¤¬ cmdl
¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¡¢²Ý¶âñ°Ì¤ÎŤµ¤ò»ØÄꤷ¤Þ¤¹¡£
-m
- isdn
¥Ç¡¼¥â¥ó¤¬¡¢¥í¡¼¥«¥ë´Æ»ë¤Þ¤¿¤Ï¥ê¥â¡¼¥È´Æ»ë¤ò
¥µ¥Ý¡¼¥È¤·¤Æ¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢
¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï´Æ»ë¥¢¥¯¥»¥¹¤ò¤¹¤Ù¤Æ̵¸ú¤Ë¤·¤Þ¤¹¡£
¤³¤ì¤ÏÀßÄê¥Õ¥¡¥¤¥ë¤Î¥ª¥×¥·¥ç¥ó
monitor-allowed
¤è¤ê¤âÍ¥À褵¤ì¤Þ¤¹¡£
isdnd
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï
isdn4bsd
¤Î¥«¡¼¥Í¥ëÉôʬ¤ÈÄÌ¿®¤·¤Æ¡¢
¾õÂ֤䥤¥Ù¥ó¥È¥á¥Ã¥»¡¼¥¸¤ò¼õ¤±¤È¤Ã¤¿¤ê
(¥Ç¥Ð¥¤¥¹ /dev/i4b
¤«¤é
read(2)
¤·¤Þ¤¹)¡¢
¥³¥Þ¥ó¥É¤ä±þÅú¤òÁ÷¤ê¤Þ¤¹
(¥Ç¥Ð¥¤¥¹ /dev/i4b
¤«¤é
ioctl(2)
¤·¤Þ¤¹)¡£
¥á¥Ã¥»¡¼¥¸¤ª¤è¤Ó¥á¥Ã¥»¡¼¥¸¥Ñ¥é¥á¡¼¥¿¤Ï¡¢¥¤¥ó¥¯¥ë¡¼¥É¥Õ¥¡¥¤¥ë
/usr/include/machine/i4b_ioctl.h
¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¥«¡¼¥Í¥ë¤Ø¤Î¥³¥Þ¥ó¥É¤È±þÅú¥á¥Ã¥»¡¼¥¸
(ioctl)
¤Ï¼¡¤Î¤â¤Î¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹:
- I4B_CDID_REQ
- ¸ò´¹¶É¤È¤Î¥í¡¼¥«¥ë
D
¥Á¥ã¥Í¥ë¤Îñ°ì¤Î¤ä¤ê¤È¤ê¤ò°ì°Õ¤Ë¼±Ê̤¹¤ë
¸Æµ½Ò¼±ÊÌ»Ò
(CDID: Call Description IDentifier)
¤òÍ׵ᤷ¤Þ¤¹¡£
- I4B_CONNECT_REQ
- ¸ÆÀßÄê (call setup)
¤ò¥ê¥â¡¼¥È
ISDN ²ÃÆþ¼Ô (subscriber)
¤ËǽưŪ¤ËÍ׵ᤷ¤Þ¤¹¡£
- I4B_CONNECT_RESP
- Ãå¸Æ (incoming call)
¤ËÂФ·¡¢¼õ¤±Æþ¤ì¡¢µñÈÝ¡¢¤Þ¤¿¤Ï̵»ë¤¹¤ë¤È±þÅú¤·¤Þ¤¹¡£
- I4B_DISCONNECT_REQ
- ǽưŪ¤Ë¸Æ¤ò½ªÎ»¤µ¤»¤Þ¤¹¡£
- I4B_CTRL_INFO_REQ
- ÀßÃÖ¤µ¤ì¤Æ¤¤¤ë
ISDN
¥³¥ó¥È¥í¡¼¥é¥«¡¼¥É¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤òÍ׵ᤷ¤Þ¤¹¡£
- I4B_DIALOUT_RESP
- ¥À¥¤¥ä¥ë¥¢¥¦¥È¤òÍ׵ᤷ¤Æ¤¤¿¥É¥é¥¤¥Ð¤ËÂФ·¡¢
¸ÆÀßÄê¤Ë´Ø¤¹¤ë¾ðÊó¤òÍ¿¤¨¤Þ¤¹¡£
- I4B_TIMEOUT_UPD
- ưŪ¤Ë·×»»¤µ¤ì¤ë¥·¥ç¡¼¥È¥Û¡¼¥ë¥É¥â¡¼¥É¤Î¥¿¥¤¥ß¥ó¥°¤¬ÊѤï¤Ã¤¿¾ì¹ç¤Ë¡¢
¥«¡¼¥Í¥ë¤Î¥¿¥¤¥à¥¢¥¦¥ÈÃͤò¹¹¿·¤·¤Þ¤¹¡£
- I4B_UPDOWN_IND
- ¥«¡¼¥Í¥ë¤Î¥æ¡¼¥¶¥é¥ó¥É¥É¥é¥¤¥Ð¤Ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Î¥½¥Õ¥ÈŪ
¥¢¥Ã¥×/¥À¥¦¥ó¾õÂÖÊѲ½¤òÃΤ餻¤Þ¤¹¡£
- I4B_CTRL_DOWNLOAD
- ¥¢¥¯¥Æ¥£¥Ö¤Ê¥«¡¼¥É¤Ë¥Õ¥¡¡¼¥à¥¦¥§¥¢¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Þ¤¹¡£
- I4B_ACTIVE_DIAGNOSTIC
- ¥¢¥¯¥Æ¥£¥Ö¤Ê¥«¡¼¥É¤«¤é¤Î¿ÇÃǾðÊó¤òÊÖ¤·¤Þ¤¹¡£
¥«¡¼¥Í¥ë¤«¤éÁ÷¤é¤ì¤ë¾õÂÖ¥á¥Ã¥»¡¼¥¸¤È¥¤¥Ù¥ó¥È¥á¥Ã¥»¡¼¥¸¤Ï¡¢
¼¡¤Î¤â¤Î¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹:
- MSG_CONNECT_IND
- ¥ê¥â¡¼¥È¤Î
ISDN
¥æ¡¼¥¶¤«¤é¤ÎÃå¸Æ¤ò¼¨¤·¤Þ¤¹¡£
- MSG_CONNECT_ACTIVE_IND
- Ãå¸Æ¤¬¥í¡¼¥«¥ë¤Ç¼õ¤±Æþ¤ì¤é¤ì¤¿¸å¡¢
¤¢¤ë¤¤¤Ïȯ¸Æ
(outgoing call)
¤¬¥ê¥â¡¼¥È¤Ë¼õ¤±Æþ¤ì¤é¤ì¤¿¸å¤Ç¡¢
¸ò´¹¶É¤¬¥¢¥¯¥Æ¥£¥ÖÀܳ¤òÄÌÃΤ·¤Þ¤·¤¿¡£
Âбþ¤¹¤ë B
¥Á¥ã¥Í¥ë¤¬¸ò´¹¤µ¤ì¤Þ¤¹¡£
- MSG_DISCONNECT_IND
- ¸Æ¤Ï½ªÎ»¤·¤Þ¤·¤¿¡£
- MSG_DIALOUT_IND
- ¥æ¡¼¥¶¥é¥ó¥É¥¤¥ó¥¿¥Õ¥§¡¼¥¹¥É¥é¥¤¥Ð¤¬¥Ç¡¼¥â¥ó¤Ë
¥À¥¤¥ä¥ë¥¢¥¦¥È¤¹¤ë¤è¤¦Í׵ᤷ¤Þ¤¹
(ŵ·¿Åª¤Ë¤Ï¡¢¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ÎÁ÷¿®¥¥å¡¼¤Ë¥Ñ¥±¥Ã¥È¤¬ÆϤ¯»þ¤Ç¤¹)¡£
- MSG_IDLE_TIMEOUT_IND
- B
¥Á¥ã¥Í¥ë¤Î¥¢¥¤¥É¥ë¥¿¥¤¥à¥¢¥¦¥È¤¬µ¯¤³¤Ã¤¿¤¿¤á¤Ë¡¢
isdn4bsd
¥«¡¼¥Í¥ë¥É¥é¥¤¥Ð¤¬¸Æ¤ò½ªÎ»¤µ¤»¤Þ¤·¤¿¡£
- MSG_ACCT_IND
- ¥Í¥Ã¥È¥ï¡¼¥¯¥É¥é¥¤¥Ð¤«¤é¤Î¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¾ðÊó¤Ç¤¹¡£
- MSG_CHARGING_IND
- ¥«¡¼¥Í¥ë¤«¤é¤Î²Ý¶â¾ðÊó¤Ç¤¹¡£
¸½ºß¤Î¤È¤³¤í¡¢È¯¸Æ¤òµ¯¤³¤¹Í£°ì¤Î²ÄǽÀ¤Ï¡¢
isdn4bsd
¥Í¥Ã¥È¥ï¡¼¥¯¥É¥é¥¤¥Ð
(ipr<n>) ¤¬
MSG_DIALOUT_IND ¤ò
isdnd
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ËÁ÷¤ë¤³¤È¤Ç¤¹¡£
¥Ç¡¼¥â¥ó¤Ï
ioctl
¥á¥Ã¥»¡¼¥¸
I4B_CDID_REQ
¤òÍѤ¤¤Æ¡¢¥«¡¼¥Í¥ë¤«¤é¿·¤·¤¤
CDID
¤òÍ׵ᤷ¤Þ¤¹¡£
°Ê¸å¤³¤Î CDID
¤Ï¡¢ÀÚÃǤ¬µ¯¤³¤ë¤Þ¤Ç¡¢¥«¡¼¥Í¥ë¤È¤Î¤ä¤ê¤È¤ê¤¹¤Ù¤Æ¤Ë¤ª¤¤¤Æ¡¢
¤³¤Îñ°ì¤Î¸Æ¤ò¼±Ê̤¹¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£
CDID
¤ò¼èÆÀ¤·¤¿¸å¡¢
¥Ç¡¼¥â¥ó¤Ï¤½¤ÎÀܳ¤ËÂбþ¤¹¤ëÀßÄê¤Î¥¨¥ó¥È¥ê¥»¥¯¥·¥ç¥ó¤«¤é
ÄɲþðÊó¤ò¤¤¤¯¤Ä¤«Ä´¤Ù¡¢ioctl
¥á¥Ã¥»¡¼¥¸
I4B_CONNECT_REQ
¤ò¥«¡¼¥Í¥ë¤Ëȯ¹Ô¤·¤Þ¤¹¡£
¤³¤³¤Ç¥«¡¼¥Í¥ë¤Ï¥ê¥â¡¼¥È¦¤Ø¥À¥¤¥ä¥ë¤·¡¢
¥ê¥â¡¼¥È¦¤¬¸Æ¤ò¼õ¤±Æþ¤ì¤ë¤È¡¢¥«¡¼¥Í¥ë¤Ï¥Ç¡¼¥â¥ó¤Ø
MSG_CONNECT_ACTIVE_IND
¤òÁ÷¤ê¤Þ¤¹¡£
¥í¡¼¥«¥ë¥µ¥¤¥È¤¬¥¿¥¤¥à¥¢¥¦¥È¤¹¤ë¤«¥ê¥â¡¼¥È¦¤¬Àܳ¤òÀڤ롢
¤¢¤ë¤¤¤Ï¥í¡¼¥«¥ë¦¤¬Ç½Æ°Åª¤Ë
ioctl
¥á¥Ã¥»¡¼¥¸
I4B_DISCONNECT_REQ
¤òÁ÷¤ë¤³¤È¤Ç¡¢¸Æ¤Ï½ªÎ»¤·¤Þ¤¹¡£
¤¤¤º¤ì¤Î¥¤¥Ù¥ó¥È¤â¡¢¥«¡¼¥Í¥ë¤¬
I4B_DISCONNECT_IND
¥á¥Ã¥»¡¼¥¸¤òÁ÷¤Ã¤Æ
isdnd
¤ËÄÌÃΤµ¤ì¤Þ¤¹¡£¤Þ¤¿¡¢¤½¤Î¸Æ¤ËÂбþ¤¹¤ë
CDID
¤Ï̵¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£
Ãå¸Æ¤Ï¡¢¥«¡¼¥Í¥ë¤¬
MSG_CONNECT_IND
¥á¥Ã¥»¡¼¥¸¤òÁ÷¤Ã¤Æ
isdnd
¤ËÄÌÃΤ·¤Þ¤¹¡£
isdnd
¤Ï¡¢¤³¤Î¥á¥Ã¥»¡¼¥¸¤Ë´Þ¤Þ¤ì¤ë¾ðÊó¤ò»È¤Ã¤Æ
ÀßÄê¥Ç¡¼¥¿¥Ù¡¼¥¹¤Î¥¨¥ó¥È¥ê¥»¥¯¥·¥ç¥ó¤òõ¤·¡¢
¥Þ¥Ã¥Á¤·¤¿¾ì¹ç¤Ë¤Ï¤½¤Î¸Æ¤ò¼õ¤±Æþ¤ì¤ë¡¢¤Þ¤¿¤ÏµñÈݤ·¡¢
¥Þ¥Ã¥Á¤·¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï¤½¤Î¸Æ¤ò̵»ë¤·¤Þ¤¹¡£
¤¤¤º¤ì¤Î¾ì¹ç¤Ë¤â
ioctl
¥á¥Ã¥»¡¼¥¸
I4B_CONNECT_RESP
¤ËŬÀڤʥѥé¥á¡¼¥¿¤ò»ØÄꤷ¤Æ¡¢¥«¡¼¥Í¥ë¤Ëȯ¹Ô¤·¤Þ¤¹¡£
¥Ç¡¼¥â¥ó¤¬¸Æ¤Î¼õ¤±Æþ¤ì¤ò·è¤á¤¿¾ì¹ç¡¢¥«¡¼¥Í¥ë¤Ï
MSG_CONNECT_ACTIVE_IND
¥á¥Ã¥»¡¼¥¸¤ò¥Ç¡¼¥â¥ó¤ËÁ÷¤Ã¤Æ¡¢¤³¤Î¤³¤È¤òÄÌÃΤ·¤Þ¤¹¡£
¥í¡¼¥«¥ë¥µ¥¤¥È¤¬¥¿¥¤¥à¥¢¥¦¥È¤¹¤ë¤«¥ê¥â¡¼¥È¦¤¬Àܳ¤òÀڤ롢
¤¢¤ë¤¤¤Ï¥í¡¼¥«¥ë¦¤¬Ç½Æ°Åª¤Ë
ioctl
¥á¥Ã¥»¡¼¥¸
I4B_DISCONNECT_REQ
¤òÁ÷¤ë¤³¤È¤Ç¡¢¸Æ¤Ï½ªÎ»¤·¤Þ¤¹¡£
¤¤¤º¤ì¤Î¥¤¥Ù¥ó¥È¤â¡¢¥«¡¼¥Í¥ë¤¬
I4B_DISCONNECT_IND
¥á¥Ã¥»¡¼¥¸¤òÁ÷¤Ã¤Æ
isdnd
¤ËÄÌÃΤµ¤ì¤Þ¤¹¡£¤Þ¤¿¡¢¤½¤Î¸Æ¤ËÂбþ¤¹¤ë
CDID
¤Ï̵¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£
HUP
¥·¥°¥Ê¥ë¤ò
isdnd
¤ËÁ÷¤ë¤È¡¢³«¤¤¤Æ¤¤¤ëÀܳ¤ò¤¹¤Ù¤Æ½ªÎ»¤µ¤»¡¢ÀßÄê¥Õ¥¡¥¤¥ë¤òÆɤßľ¤·¤Þ¤¹¡£
¥¨¥¤¥ê¥¢¥¹¥Õ¥¡¥¤¥ëÁàºî¤¬Í¸ú¤Ê¾ì¹ç¡¢¥¨¥¤¥ê¥¢¥¹¥Õ¥¡¥¤¥ë¤âÆɤßľ¤·¤Þ¤¹¡£
USR1
¥·¥°¥Ê¥ë¤ò
isdnd
¤ËÁ÷¤ë¤È¡¢¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¥Õ¥¡¥¤¥ë¤È
(
syslog(3)
¥Õ¥¡¥·¥ê¥Æ¥£·Ðͳ¤Î¥í¥°¤ÎÂå¤ï¤ê¤Ë¥Õ¥¡¥¤¥ë¤Ø¥í¥°¤¬Á÷¤é¤ì¤ë¾ì¹ç¤Ï)
¥í¥°¥Õ¥¡¥¤¥ë¤¬¥¯¥í¡¼¥º¤µ¤ì¡¢ºÆ¥ª¡¼¥×¥ó¤µ¤ì¤Æ¡¢¥í¥°¥Õ¥¡¥¤¥ë¤Î
¸ò´¹¤ò²Äǽ¤È¤·¤Þ¤¹¡£
¼¡¤Î´Ä¶ÊÑ¿ô¤¬
isdnd
¤Î¼Â¹Ô¤Ë±Æ¶Á¤·¤Þ¤¹:
TERM
- Á´²èÌÌɽ¼¨¥â¡¼¥É¤Ç¼Â¹Ô¤µ¤ì¤ë»þ¤ÎüËö¥¿¥¤¥×¤Ç¤¹¡£
¤è¤ê¾Ü¤·¤¯¤Ï
environ(7)
¤ò»²¾È¤·¤Æ²¼¤µ¤¤¡£
- /dev/i4b
- ¥«¡¼¥Í¥ë¤Î
ISDN
¥É¥é¥¤¥Ð¥µ¥Ö¥·¥¹¥Æ¥à¤ÈÄÌ¿®¤¹¤ë¤¿¤á¤Î¥Ç¥Ð¥¤¥¹¥Õ¥¡¥¤¥ë¡£
- /var/log/messages
- syslogd
¥í¥°¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë»þ¤ÎÆ°ºîµÏ¿¡£
- /var/log/isdnd.acct
- ¥Ç¥Õ¥©¥ë¥È¤Î¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¾ðÊó¥Õ¥¡¥¤¥ë̾
(¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç)¡£
- /var/log/isdnd.log
- ¥Ç¥Õ¥©¥ë¥È¤Î¥í¥°¥Õ¥¡¥¤¥ë̾
(¥Õ¥¡¥¤¥ë¤Ø¤Î¥í¥°¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç)¡£
- /var/run/isdnd.pid
- isdn
¥Ç¡¼¥â¥ó¤Î¥×¥í¥»¥¹
ID (isdnd ¤Ç¤Ï "lockfile"
¤È¤â¸Æ¤Ð¤ì¡¢Â¿½Å¤Ë¸Æ¤Ó½Ð¤µ¤ì¤ë¤Î¤òËɤ®¤Þ¤¹)¡£
- /usr/local/lib/isdn
-
- /etc/isdn
- α¼éÈÖÅÅÏäò¥µ¥Ý¡¼¥È¤¹¤ë¤¿¤á¤ÎÊä½õŪ¤Ê¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ä¥×¥í¥°¥é¥à¤¬
ÃÖ¤«¤ì¤Æ¤¤¤ë¤³¤È¤ò
isdnd
¤¬´üÂÔ¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¡£
- /etc/isdn/isdnd.rc
- ¥Ç¥Õ¥©¥ë¥È¤Î¼Â¹Ô»þÀßÄê¥Õ¥¡¥¤¥ë¡£
- /etc/isdn/isdnd.rates
- ¥Ç¥Õ¥©¥ë¥È¤Î²Ý¶âñ°ÌÎÁ¶âµ½Ò¥Õ¥¡¥¤¥ë¡£
- /etc/isdn/isdntel.alias
- (¥¨¥¤¥ê¥¢¥¹¤¬Í¸ú¤Ê¾ì¹ç)
ÅÅÏÃÈÖ¹æ¤òÄÌÏüԤÎ̾Á°¤ËÊÑ´¹¤¹¤ë¥Ç¥Õ¥©¥ë¥È¤Îɽ¡£
ºÇ½é¤Ë»î¤µ¤ì¤ë¤È¤¤Ï¡¢ÀßÄê¤ò¤¦¤Þ¤¯¥Ç¥Ð¥Ã¥°¤¹¤ë¤¿¤á¤Ë¡¢
¼¡¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ
isdnd
¤ò¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¥â¡¼¥É¤Çµ¯Æ°¤¹¤ë¤Î¤¬Îɤ¤¤Ç¤·¤ç¤¦:
¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢isdnd
¤òÂÅÅö¤Ê¥Ç¥Ð¥Ã¥°ÀßÄê¤Çµ¯Æ°¤·¡¢
¸½ºß¤ÎüËö¤Ë½ÐÎϤòÀ¸À®¤·¤Þ¤¹¡£
isdnd
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¤½¤Î¸å
Control-C
¤ÎÆþÎϤǽªÎ»¤Ç¤¤Þ¤¹¡£
Ê̤ÎÎã¤È¤·¤Æ¡¢¥³¥Þ¥ó¥É:
isdnd -d0xf9 -f -r /dev/ttyv3 -t vt100
¤Ï¡¢ÂÅÅö¤Ê¥Ç¥Ð¥Ã¥°¥á¥Ã¥»¡¼¥¸¤ò͸ú¤Ë¤·¡¢Á´²èÌ̥⡼¥É¤ÎÆ°ºî¡¢
Á´²èÌÌɽ¼¨¤Ï
/dev/ttyv3
¤Ë¥ê¥À¥¤¥ì¥¯¥È¡¢¤½¤Îɽ¼¨¤Ë¤Ï
vt100 ÍѤΠtermcap
¥¨¥ó¥È¥ê¤ò»È¤Ã¤Æ
isdnd
¤òµ¯Æ°¤·¤Þ¤¹¡£
½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤ÏÀ®¸ù»þ¤Ë¤Ï
0¡¢¥¨¥é¡¼»þ¤Ë¤Ï
1 ¤Ç¤¹¡£
¤Þ¤À 1
¤Ä°Ê¾å»Ä¤Ã¤Æ¤¤¤Þ¤¹¡£
isdnd
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ÈËܥޥ˥奢¥ë¥Ú¡¼¥¸¤Ï
Hellmuth Michaelis ⟨hm@FreeBSD.org⟩
¤¬ºîÀ®¤·¤Þ¤·¤¿¡£