1¡¢ÒýÈë
Ëæ×ÅͨÐÅIP»¯µÄ·¢Õ¹£¬IP´«ÊäµÄ¸ß´ø¿í¡¢µÍ³É±¾µÈÓÅÊÆʹµÃÔ½À´Ô½¶àµÄÆóÒµ¡¢µçÐÅÔËÓªÉ̼ӿ콨Éè»ùÓÚIPµÄ¸÷ÖÖͨÐÅÓ¦Óá£ÔÚͨÐÅÐÒéIP»¯·¢Õ¹ÖУ¬SIPÐÒéºÁÎÞÕùÒéµØ³ÉΪ¸÷´óµçÐÅÔËÓªÉ̹¹½¨ÆäδÀ´ÍøÂçµÄ»ù´¡ÐÒ飬ԽÀ´Ô½¶àµÄSIPÈí¼þ²úÆ·Ò²²»¶Ï³öÏÖÔÚÐÐÒµÓ¦ÓÃÖС£SIPÐÒéµÄ±ê×¼»¯£¬Í¬Ê±Ò²Ôì¾ÍÁËÒ»´óÅúÓÅÐãµÄ¿ªÔ´Èí¼þ²úÆ·£¬°üÀ¨Asterisk¡¢SipXecs¡¢FreeSWITCH¡¢OpenSIPSµÈSIP·þÎñ¶ËÈí¼þ£¬Ò²°üÀ¨X-lite¡¢LinPhone¡¢eyeBeamµÈSIP¿Í»§¶ËÈí¼þ¡£±¾ÎĽéÉÜÁ˹úÍâ³ÉÊìµÄSIPServer¿ªÔ´ÏîÄ¿OpenSIPS£¬²¢½áºÏÆäËüͨÐÅ·½ÃæµÄ¿ªÔ´ÏîÄ¿¶ÔÆäÓ¦ÓÃÇé¿ö½øÐÐÁËһЩ½éÉÜ¡£
2¡¢OpenSIPS½éÉÜ
OpenSIPSÊÇÒ»¸ö³ÉÊìµÄ¿ªÔ´SIP·þÎñÆ÷£¬³ýÁËÌṩ»ù±¾µÄSIP´úÀí¼°SIP·Óɹ¦ÄÜÍ⣬»¹ÌṩÁËһЩӦÓü¶µÄ¹¦ÄÜ¡£OpenSIPSµÄ½á¹¹·Ç³£Áé»î£¬ÆäºËÐÄ·Óɹ¦ÄÜÍêȫͨ¹ý½Å±¾À´ÊµÏÖ£¬¿ÉÁé»î¶¨ÖƸ÷ÖÖ·ÓɲßÂÔ£¬¿ÉÁé»îÓ¦ÓÃÓÚÓïÒô¡¢ÊÓƵͨÐÅ¡¢IMÒÔ¼°PresenceµÈ¶àÖÖÓ¦Óá£Í¬Ê±OpenSIPSÐÔÄÜÉÏÊÇÄ¿Ç°×î¿ìµÄSIP·þÎñÆ÷Ö®Ò»£¬¿ÉÓÃÓÚµçÐż¶²úÆ·¹¹½¨¡£
2.1¡¢¹¦ÄÜÌصã
ƾ½èÆä¿ÉÀ©Õ¹¡¢Ä£¿é»¯µÄϵͳ¼Ü¹¹£¬OpenSIPSÌṩÁËÒ»¸ö¸ß¶ÈÁé»îµÄ¡¢Óû§¿ÉÅäÖõÄ·ÓÉÒýÇ棬¿ÉÒÔΪvoice¡¢video¡¢IMºÍpresenceµÈ·þÎñÌṩǿ´ó¸ßЧµÄ·ÓÉ¡¢¼øȨ¡¢NAT¡¢Íø¹ØÐÒéת»¯µÈ¹¦ÄÜ¡£ÓÉÓÚÆäÎȶ¨¸ßЧµÈÌص㣬OpenSIPSÒѾ±»Öî¶àµçÐÅÔËÓªÉÌÓ¦ÓÃÔÚ×Ô¼ºµÄÍøÂçÌåϵÖС£ÆäÖ÷Òª¹¦ÄÜÈçÏ£º
SIP×¢²á·þÎñÆ÷/´úÀí·þÎñÆ÷£¨lcr¡¢dynamic routing¡¢dialplan£©/Öض¨Ïò·þÎñÆ÷
SIP presence agent
SIP B2BUA
SIP IM Server
SIP to SMS/XMPPÍø¹Ø
SIP to XMPPÍø¹Ø
SIP ¸ºÔؾùºâ
SIP NAT traversal
2.2¡¢»ù±¾Ó¦ÓÃÅäÖÃ
OpenSIPS²»µ«ÌṩÁ˷ḻµÄ¹¦ÄÜ£¬»¹¾ßÓвÙ×÷¼òµ¥µÄÌص㡣ËùÓÐOpenSIPSµÄÓ¦Óù¦Äܶ¼¿ÉÒÔͨ¹ýÒ»¸öÅäÖÃÎļþopensips.cfgÀ´ÊµÏֵġ£¸ÃÅäÖÃÎļþÖ÷Òª·ÖΪÈý¸ö²¿·Ö£¬µÚÒ»²¿·ÖÖ÷ÒªÊÇÈ«¾Ö±äÁ¿µÄÉèÖ㻵ڶþ²¿·ÖÖ÷ÒªÊǼÓÔØÄ£¿é£¬²¢ÉèÖÃÄ£¿éµÄÏàÓ¦²ÎÊý£»µÚÈý²¿·ÖÖ÷ÒªÊÇ·ÓɵIJßÂԺ͹¦ÄÜÓ¦Óá£ÎªÁ˸üÇåÎúµÄ³ÊÏÖopensips.cfgÅäÖÃÎļþ´øÀ´µÄÇ¿´ó¹¦ÄÜ£¬½ÓÏÂÀ´¶ÔÕâÈý¸ö²¿·ÖÒÔ¼òµ¥µÄʾÀý½øÒ»²½ËµÃ÷¡£
µÚÒ»²¿·ÖÈ«¾Ö±äÁ¿µÄÉèÖã¬Í¨¹ýÒ»ÌõÓï¾ä¾ÍÄÜÖ¸¶¨ÓÃÓÚÕìÌý½ÓÊÕsipÏûÏ¢µÄ¶Ë¿ÚºÍ´«Êä²ãÐÒé¡£
µÚ¶þ²¿·Ö¸ºÔðÄ£¿éµÄ¼ÓÔغͲÎÊýÅäÖá£ÒÔ֮ǰµÄOpenSIPSµÄ¸ºÔؾùºâ¹¦ÄÜÅäÖÃΪÀý£¬ÐèÒª¼ÓÔØload_balancerÄ£¿é£¬²¢½øÐÐÅäÖá£
µÚÈý²¿·ÖÊÇsipÏûÏ¢µÄ·Óɺ͹¦ÄÜÓ¦Ó᣻¹ÊÇÒÔOpenSIPSµÄ¸ºÔؾùºâ¹¦ÄÜΪÀý¡£
´ÓÒÔÉÏÓ¦ÓÃʾÀý¿ÉÒÔ¿´µ½£¬Í¨¹ýÔÚopensips.cfgÖнøÐмòµ¥µÄÅäÖ㬾ÍÄÜʵÏÖÇ¿´óµÄ¹¦ÄÜ¡£