Board logo

標題: Skype to Asterisk-GUI via Windows siptosis [打印本頁]

作者: 角色    時間: 2013-2-12 19:11     標題: Skype to Asterisk-GUI via Windows siptosis

本帖最後由 角色 於 2013-2-12 19:31 編輯

Skype to Asterisk via Linux siptosis在其他文章已经说了很多,但是siptosis在Windows下,怎样连接Asterisk-GUI呢就很少文章提及过。希望通过下面的文章可以教大家怎样利用Windows siptosis,把Skype连接到Asterisk-GUI server里。

目的:用Skype Client拨打另外一个Skype Client,然后连到另外一个Asterisk(-GUI)Server,再通过IVR接到其他extensions,落地trunk。

为什么要用Skype?你可以可以用SIP Client,但是很多地方对SIP Client有限制,很多时候都打不通,再加上codec问题,导致不太流畅。特别在网络环境不太好,VoIP blocking的地区为甚的地方。而Skype有本身的自己的SILK codec,在这种不太好的情况下也能发挥得非常好!

坊间有不少的Skype-to-Asterisk的gateway,但是以siptosis最为简单而易用,最重要是免费。
作者: 角色    時間: 2013-2-12 19:11

本帖最後由 角色 於 2013-2-12 19:50 編輯

我们所需要的软件:

软件;
1. Siptosis :http://www.mhspot.com/sts/siptosis_download.php
2. Skype Client (Windows) :www.skype.com
3. Java JRE : JRE6
4. Asterisk-GUI Server (see other thread)
作者: 角色    時間: 2013-2-12 19:11

本帖最後由 角色 於 2013-2-12 21:00 編輯

Siptosis :http://www.mhspot.com/sts/siptosis_download.php

1. 下载SipToSis software

1003.gif

2. 然后把它放在适合的位置,再解压,里面的contents:

1004.gif

3. Read the readme:
  1. Copyright (C) 2009 Greg Dorfuss - mhspot.com

  2. SipToSis is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; either version 3 of the License, or
  5. (at your option) any later version.

  6. SipToSis is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9. GNU General Public License for more details.

  10. You should have received a copy of the GNU General Public License
  11. along with this source code; if not, write to the Free Software
  12. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

  13. Based on mjsip 1.6 software.
  14. Uses skype4java and log4j libraries.
  15. mjsip, skype4java and log4j have their own license agreements.

  16. This product uses the Skype API but is not endorsed, certified or otherwise approved in any way by Skype

  17. Installation:

  18. Install SUN's java 1.5 or higher for your platform - make sure it is available in the system path.
  19. OSX MUST use 32 bit java since there is no 64 bit OSX native connector. Windows and Linux can use either 32 or 64 bit.
  20. You can check the version from a command prompt like this: java -version


  21. For new install:
  22.     Windows/Linux:
  23.            Unzip the siptosis archive into a folder called siptosis or other folder name.

  24. Startup Skype (must be the same computer).

  25. Windows:
  26.         double click SipToSis_win.bat
  27.         If you get warning about JAVAEXEPATH on Windows 64 bit with 64 bit Java:
  28.           edit SipToSis_win.bat and uncomment the line "set JAVAEXEPATH" - make sure it points to your JRE or JDK bin folder.
  29.        
  30. The Skype program may ask if access should be allowed. If you don't authorize it, it will not work.
  31. You usually have to go into the Skype client and manually authorize it in the options screen
  32. (Even though you clicked allow access - some sort of skype bug - depends on skype version).
  33. Your Skype User Id should appear on the console. If not stop and fix problem.

  34. If the SipToSis console shows a contact_url of 127.0.0.1 instead of the machine's actual IP address,
  35. edit the siptosis.cfg file, comment out the "#Sample AUTO config with NO registration" section
  36. and setup the "#Sample config with NO registration" section by setting 127.0.0.1 to the SipToSis machine's IP address
  37. and also set the via_addr. If you know what you are doing, you can enable one of the other registration sections instead.


  38. Now setup your VOIP/SIP adapter or PBX to call the SipToSis Computer.

  39. SPA-3102 Dial Plan Example and other Linksys sipura devices:
  40.         (<#1:>xx.<:@siptosisIpAddress:siptosisHostPort>|originaldialplan)
  41.         At this point, dialing #155 should get you the Skype Echo Test service.
  42.         Only the Skype Echo Test service and PSTN is callable at this point.
  43.         You will customize this later on.
  44.        
  45. Asterisk Peer Example:
  46. In sip.conf       
  47. [siptosisuser]
  48. username=siptosisuser
  49. type=friend
  50. context=default
  51. secret=siptosisregpassword
  52. host=dynamic
  53. nat=no
  54. dtmfmode=auto
  55. ;canreinvite=yes (use only if you understand what it does - does not work well with ilbc and speex codecs)
  56. canreinvite=no
  57. ;port should not be needed if you register with the PBX - some have said it's needed??
  58. ;port=siptosishostport
  59. qualify=yes
  60. defaultip=siptosisip
  61. incominglimit=1
  62. outgoinglimit=1
  63. call-limit=1
  64. busylevel=1

  65. Asterisk Single channel config that can be put in extensions.conf
  66. exten => _7X.,1,Dial(SIP/siptosisuser/${EXTEN:1})
  67. ;you would then dial 7 and the number you want to call

  68. ** Customize and authorize for regular dialing:
  69.    Assign speed dial numbers in the Skype client to each Skype contact you want to call.
  70.    or create mappings in SipToSkypeAuths.props.
  71.    You don't need to do this if using only skypeout.
  72.    If using a PBX you could map extensions to Skype users there instead.

  73.    Edit SipToSkypeAuth.props to forward and authorize SIP calls to desired Skype destinations. (Most users will only use: *,*,localnet,calleeid)
  74.    Edit SkypeOutDialingRules.props for any Skype dialing rules/transforms wanted.
  75.    Edit SkypeToSipAuth.props to forward skype calls to SIP destinations (failure to do this step will cause all incoming Skype calls to get the invalid destination message).

  76. At this point, you should be able to make and receive skype calls. The remainder of this document contains
  77. some optional configuration and troubleshooting instructions. More documentation is available on http://mhspot.com


  78. CallBack config:
  79.    *** CHECK LEGALITY OF USING CALLBACK FOR YOUR COUNTRY *** USE AT YOUR OWN RISK ***
  80.    Compatability:
  81.      Windows client 4.1.0.141 works fine.
  82.    Callbacks can be initiated from SIP and Skype DIDs assuming Caller Id works with the DID or can be initiated from Skype User.
  83.    See sample files SipToSkypeAuth.props,SkypeOutDialingRules.props,SkypeToSipAuth.props for examples.
  84.    Two stage dialing requires the SkypeInBand decoder turned on:
  85.       enableSkypeDtmfDetector=yes
  86.       inbandFullTimeDtmfDetection=yes

  87. Conference Calls:
  88.    Compatability:
  89.      Windows client 4.1.0.141 works fine.
  90.    See sample files SipToSkypeAuth.props and SkypeOutDialingRules.props for examples.

  91. Codec Configuration:
  92.   GSM Codec:
  93.     To use Tritonus download tritonus_gsm-0.3.6.jar and tritonus_share-0.3.6.jar from tritonus.org and put in same folder.
  94.     To use Sun's JMF , download Sun's Java Media Framework and put jmf.jar in same folder.
  95.   PCMU(u-law),PCMA(a-law),iLBC Codecs
  96.     Already built in

  97.   See the siptosis.cfg file and look for audio_codec= to configure codecs and sound volume.

  98. You can specify a different config file like this:
  99.    SipToSis_win.bat myotherconfig.cfg       

  100. For a multi channel trunk, you might want to try stsTrunkBuilder.
  101.    
  102. To see full debug information set the following in siptosis.cfg
  103. logConfigFile=log_debug.properties
  104. and for Skype API tracing:
  105. skypeAPITrace=yes

  106. On Windows:
  107.      If you get the unsatisfied link error "Can't load IA 32-bit .dll on a AMD 64-bit platform"
  108.      delete skype.dll and let the installer copy the correct one in.
複製代碼


圖片附件: 1003.gif (2013-2-12 19:59, 31.98 KB) / 下載次數 776
http://telecom-cafe.com/forum/attachment.php?aid=2212&k=68cd9093c62c61a62c9c680ba68f74bd&t=1732359710&sid=p6orP5



圖片附件: 1004.gif (2013-2-12 20:51, 35.82 KB) / 下載次數 774
http://telecom-cafe.com/forum/attachment.php?aid=2213&k=849710e086a36754f58be62ab84f9132&t=1732359710&sid=p6orP5


作者: 角色    時間: 2013-2-12 19:11

本帖最後由 角色 於 2013-2-12 20:59 編輯

readme content是:
  1. Copyright (C) 2009 Greg Dorfuss - mhspot.com

  2. SipToSis is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; either version 3 of the License, or
  5. (at your option) any later version.

  6. SipToSis is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9. GNU General Public License for more details.

  10. You should have received a copy of the GNU General Public License
  11. along with this source code; if not, write to the Free Software
  12. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

  13. Based on mjsip 1.6 software.
  14. Uses skype4java and log4j libraries.
  15. mjsip, skype4java and log4j have their own license agreements.

  16. This product uses the Skype API but is not endorsed, certified or otherwise approved in any way by Skype

  17. Installation:

  18. Install SUN's java 1.5 or higher for your platform - make sure it is available in the system path.
  19. OSX MUST use 32 bit java since there is no 64 bit OSX native connector. Windows and Linux can use either 32 or 64 bit.
  20. You can check the version from a command prompt like this: java -version


  21. For new install:
  22.     Windows/Linux:
  23.            Unzip the siptosis archive into a folder called siptosis or other folder name.

  24. Startup Skype (must be the same computer).

  25. Windows:
  26.         double click SipToSis_win.bat
  27.         If you get warning about JAVAEXEPATH on Windows 64 bit with 64 bit Java:
  28.           edit SipToSis_win.bat and uncomment the line "set JAVAEXEPATH" - make sure it points to your JRE or JDK bin folder.
  29.        
  30. The Skype program may ask if access should be allowed. If you don't authorize it, it will not work.
  31. You usually have to go into the Skype client and manually authorize it in the options screen
  32. (Even though you clicked allow access - some sort of skype bug - depends on skype version).
  33. Your Skype User Id should appear on the console. If not stop and fix problem.

  34. If the SipToSis console shows a contact_url of 127.0.0.1 instead of the machine's actual IP address,
  35. edit the siptosis.cfg file, comment out the "#Sample AUTO config with NO registration" section
  36. and setup the "#Sample config with NO registration" section by setting 127.0.0.1 to the SipToSis machine's IP address
  37. and also set the via_addr. If you know what you are doing, you can enable one of the other registration sections instead.


  38. Now setup your VOIP/SIP adapter or PBX to call the SipToSis Computer.

  39. SPA-3102 Dial Plan Example and other Linksys sipura devices:
  40.         (<#1:>xx.<:@siptosisIpAddress:siptosisHostPort>|originaldialplan)
  41.         At this point, dialing #155 should get you the Skype Echo Test service.
  42.         Only the Skype Echo Test service and PSTN is callable at this point.
  43.         You will customize this later on.
  44.        
  45. Asterisk Peer Example:
  46. In sip.conf       
  47. [siptosisuser]
  48. username=siptosisuser
  49. type=friend
  50. context=default
  51. secret=siptosisregpassword
  52. host=dynamic
  53. nat=no
  54. dtmfmode=auto
  55. ;canreinvite=yes (use only if you understand what it does - does not work well with ilbc and speex codecs)
  56. canreinvite=no
  57. ;port should not be needed if you register with the PBX - some have said it's needed??
  58. ;port=siptosishostport
  59. qualify=yes
  60. defaultip=siptosisip
  61. incominglimit=1
  62. outgoinglimit=1
  63. call-limit=1
  64. busylevel=1

  65. Asterisk Single channel config that can be put in extensions.conf
  66. exten => _7X.,1,Dial(SIP/siptosisuser/${EXTEN:1})
  67. ;you would then dial 7 and the number you want to call

  68. ** Customize and authorize for regular dialing:
  69.    Assign speed dial numbers in the Skype client to each Skype contact you want to call.
  70.    or create mappings in SipToSkypeAuths.props.
  71.    You don't need to do this if using only skypeout.
  72.    If using a PBX you could map extensions to Skype users there instead.

  73.    Edit SipToSkypeAuth.props to forward and authorize SIP calls to desired Skype destinations. (Most users will only use: *,*,localnet,calleeid)
  74.    Edit SkypeOutDialingRules.props for any Skype dialing rules/transforms wanted.
  75.    Edit SkypeToSipAuth.props to forward skype calls to SIP destinations (failure to do this step will cause all incoming Skype calls to get the invalid destination message).

  76. At this point, you should be able to make and receive skype calls. The remainder of this document contains
  77. some optional configuration and troubleshooting instructions. More documentation is available on http://mhspot.com


  78. CallBack config:
  79.    *** CHECK LEGALITY OF USING CALLBACK FOR YOUR COUNTRY *** USE AT YOUR OWN RISK ***
  80.    Compatability:
  81.      Windows client 4.1.0.141 works fine.
  82.    Callbacks can be initiated from SIP and Skype DIDs assuming Caller Id works with the DID or can be initiated from Skype User.
  83.    See sample files SipToSkypeAuth.props,SkypeOutDialingRules.props,SkypeToSipAuth.props for examples.
  84.    Two stage dialing requires the SkypeInBand decoder turned on:
  85.       enableSkypeDtmfDetector=yes
  86.       inbandFullTimeDtmfDetection=yes

  87. Conference Calls:
  88.    Compatability:
  89.      Windows client 4.1.0.141 works fine.
  90.    See sample files SipToSkypeAuth.props and SkypeOutDialingRules.props for examples.

  91. Codec Configuration:
  92.   GSM Codec:
  93.     To use Tritonus download tritonus_gsm-0.3.6.jar and tritonus_share-0.3.6.jar from tritonus.org and put in same folder.
  94.     To use Sun's JMF , download Sun's Java Media Framework and put jmf.jar in same folder.
  95.   PCMU(u-law),PCMA(a-law),iLBC Codecs
  96.     Already built in

  97.   See the siptosis.cfg file and look for audio_codec= to configure codecs and sound volume.

  98. You can specify a different config file like this:
  99.    SipToSis_win.bat myotherconfig.cfg       

  100. For a multi channel trunk, you might want to try stsTrunkBuilder.
  101.    
  102. To see full debug information set the following in siptosis.cfg
  103. logConfigFile=log_debug.properties
  104. and for Skype API tracing:
  105. skypeAPITrace=yes

  106. On Windows:
  107.      If you get the unsatisfied link error "Can't load IA 32-bit .dll on a AMD 64-bit platform"
  108.      delete skype.dll and let the installer copy the correct one in.
複製代碼

作者: 角色    時間: 2013-2-12 19:11

备用帖子。。。
作者: 角色    時間: 2013-2-12 19:32

备用帖子。。。
作者: 角色    時間: 2013-2-12 19:34

备用帖子。。。
作者: 角色    時間: 2013-2-12 19:35

备用帖子。。。
作者: 角色    時間: 2013-2-12 19:35

备用帖子。。。
作者: 角色    時間: 2013-2-12 19:35

备用帖子。。。
作者: 雯雯    時間: 2013-2-12 19:44

我想我知道其中1個原因了, 我沒有在VM裏set sound card.
作者: 角色    時間: 2013-2-12 19:51

回復 11# 雯雯

其实你要再VM上,看是你用Skype Client是否能城市使用呢?这个非常关键!
作者: 浮雲1965    時間: 2013-3-20 16:14

請問角色兄:
是不是“Skype to Asterisk-GUI via Windows siptosis” 是需要一臺電腦跑windows, 然后在上面跑siptosis ?
因為我們的Elastix是在linux上的,那是不是如果用 “Skype to Asterisk-GUI via Linux siptosis”, 就可以在架設Elastix的同一臺機器上跑siptosis? 從而完成Skype的接入?

謝謝!
作者: ckleea    時間: 2013-3-20 17:56

用 linux 會方便 D
作者: 浮雲1965    時間: 2013-3-20 19:38

用 linux 會方便 D
ckleea 發表於 2013-3-20 17:56



我在壇內找到一些教程,不知道是否update? 這個siptosis還是免費的嗎?

謝謝!
作者: 角色    時間: 2013-3-20 22:29

回復 15# 浮雲1965

Siptosis可以在Linux运行都没有问题,但是要安装JRE。




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2