5: 2009-01-28 (水) 18:40:00 iseki |
現: 2016-05-03 (火) 16:33:49 iseki |
- | * slvoice [#s6bd2633] | + | * SLVoice [#s6bd2633] |
- | ** Viewer Settings [#v3814a00] | + | - Vivox社の Second Life用チャットシステム |
- | ***設定変更 [#we3952e1] | + | - SIPを使用.SIPのパラメータ制御には Vivox Management Server を使用. |
| + | - SL Viewer が自動的に起動し,XML通信によりViewerから制御される. |
| + | |
| + | #br |
| + | ** メモ [#oda708a3] |
| + | - http://wiki.secondlife.com/wiki/Voice |
| + | - http://wiki.secondlife.com/wiki/Voice/Technical |
| + | - SLVoice が繋がろうとするサーバ (STUNサーバじゃん!) |
| + | -- ast5a.vivox.com:3478 (UDP) |
| + | -- ast5ax1.vivox.com:3478 (UDP) |
| + | -[[Vivox SIP memo>./memo]] |
| + | - SLVoiceのデフォルトのポート番号が ''44124'' から ''44125'' に変わった模様 ('09 12/9) |
| + | #br |
| + | **** Viewer Settings for sl_voice_relay[#v3814a00] |
| + Ctrl+Alt+Delete で Advanced モード表示 | | + Ctrl+Alt+Delete で Advanced モード表示 |
| + Advanced -> Debug Setting.... | | + Advanced -> Debug Setting.... |
| + VoiceHost, VoicePort の書き換え | | + VoiceHost, VoicePort の書き換え |
- | - 変更ファイル: C:\Documents and Settings\<username>\Application Data\SecondLife\user_settings\settings.xml | + | + vivoxDebugLevel への追加.(例: ''-1 -i 192.168.27.1:44124'') |
| + | - 設定ファイル:自動的に修正される.~ |
| + | C:\Documents and Settings\<username>\Application Data\SecondLife\user_settings\settings.xml |
| <key>VoiceHost</key> | | <key>VoiceHost</key> |
| <map> | | <map> |
| </map> | | </map> |
| | | |
- | ** XML [#l7c3b8fe] | + | #br |
- | - [[Viewer <--> SLVoice (成功パターン)>./XML_success]] | + | ** 通信プロトコル [#t1cfc82d] |
- | - [[Viewer <--> SLVoice (失敗パターン)>./XML_failure]] | + | *** XML [#b39f4d25] |
- | | + | **** Region(SIM)サーバ [#zd878e70] |
- | | + | - [[Viewer <--> Region(SIM)>./XML_viewer]] |
- | - VIVOX | + | |
- | /+++++++++ Client +++++++++/ | + | |
- | POST /api2/viv_get_prelogin.php HTTP/1.1 | + | |
- | Host: 202.26.159.140:15257 | + | |
- | Accept: */* | + | |
- | Content-Length: 0 | + | |
- | Content-Type: application/x-www-form-urlencoded | + | |
- | | + | |
- | | + | |
- | /+++++++++ Server +++++++++/ | + | |
- | HTTP/1.1 200 OK | + | |
- | Date: Wed, 28 Jan 2009 09:34:31 GMT | + | |
- | Server: Apache/2.0.54 (Fedora) | + | |
- | X-Powered-By: PHP/5.0.4 | + | |
- | Expires: Mon, 26 Jul 1997 05:00:00 GMT | + | |
- | Last-Modified: Wed, 28 Jan 2009 09:34:31 GMT | + | |
- | Cache-Control: no-store, no-cache, must-revalidate | + | |
- | Cache-Control: post-check=0, pre-check=0 | + | |
- | Pragma: no-cache | + | |
- | Content-Length: 1002 | + | |
- | Connection: close | + | |
- | Content-Type: text/xml | + | |
- | Set-Cookie: Coyote-2-462a3e96=462a3e7e:0; path=/ | + | |
- | | + | |
- | <?xml version="1.0" encoding="utf-8"?> | + | |
- | <VCConfiguration> | + | |
- | <DefaultRealm>bhr.vivox.com</DefaultRealm> | + | |
- | <DefaultSIPProxy>proxy.bhr.vivox.com:5062</DefaultSIPProxy> | + | |
- | <DefaultSIPProxy>proxy.bhr.vivox.com:5060</DefaultSIPProxy> | + | |
- | <DefaultAttemptUseSTUN>true</DefaultAttemptUseSTUN> | + | |
- | <DefaultSTUNServer>stun.vivox.com</DefaultSTUNServer> | + | |
- | <DefaultEchoServer>echo2.vivox.com</DefaultEchoServer> | + | |
- | <DefaultEchoPort>50505</DefaultEchoPort> | + | |
- | <DefaultWellKnownIP>64.207.141.79</DefaultWellKnownIP> | + | |
- | <DefaultTimeout>5000</DefaultTimeout> | + | |
- | <SubscribeRetry>120</SubscribeRetry> | + | |
- | <UrlResetPassword>http://www.bhr.vivox.com/api2/viv_request_password.php?user_uri={curruser.uri}&user_email={curruser.email}&nowindow=1</UrlResetPassword> | + | |
- | <!-- Set this to true to disable the Vivox logo in Connector --> | + | |
- | <App.NoBottomLogo>false</App.NoBottomLogo> | + | |
- | <!-- Set this to true to enable the direct call window in Connector --> | + | |
- | <App.DirectDial>false</App.DirectDial> | + | |
- | | + | |
- | </VCConfiguration> | + | |
- | | + | |
- | /+++++++++ Client +++++++++/ | + | |
- | POST /api2/viv_signin.php HTTP/1.1 | + | |
- | Host: 202.26.159.140:15257 | + | |
- | Accept: */* | + | |
- | Content-Length: 60 | + | |
- | Content-Type: application/x-www-form-urlencoded | + | |
- | | + | |
- | userid=xMVjKOM2VSiOeIrVffPimZg==&pwd=uDXQC0R9L00XTLU0SRLX0SS | + | |
- | | + | |
- | /+++++++++ Server +++++++++/ | + | |
- | HTTP/1.1 200 OK | + | |
- | Date: Wed, 28 Jan 2009 09:34:48 GMT | + | |
- | Server: Apache/2.0.54 (Fedora) | + | |
- | X-Powered-By: PHP/5.0.4 | + | |
- | Set-Cookie: PHPSESSID=2u09kp5tjnauhpijo1hv3if3o3; path=/ | + | |
- | Expires: Mon, 26 Jul 1997 05:00:00 GMT | + | |
- | Cache-Control: no-store, no-cache, must-revalidate | + | |
- | Pragma: no-cache | + | |
- | Set-Cookie: lib_session=xMVjKOM2VSiOeIrVffPimZg%3D%3D%3A1283135288%3A9431be208d6b3d6376d48c330e5b6566%3A%3A; path=/ | + | |
- | Last-Modified: Wed, 28 Jan 2009 09:34:48 GMT | + | |
- | Cache-Control: post-check=0, pre-check=0 | + | |
- | Content-Length: 575 | + | |
- | Connection: close | + | |
- | Content-Type: text/xml | + | |
- | Set-Cookie: Coyote-2-462a3e96=462a3e88:0; path=/ | + | |
- | | + | |
- | <?xml version="1.0" encoding="iso-8859-1" ?> | + | |
- | <response xmlns="http://www.vivox.com" | + | |
- | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | + | |
- | xsi:schemaLocation= "/xsd/signin.xsd"> | + | |
- | <level0><status>OK</status><body><status>Ok</status><cookie_name>lib_session</cookie_name><cookie>xMVjKOM2VSiOeIrVffPimZg==:1283135288:9431be208d6b3d6376d48c330e5b6566::</cookie><auth_token>xMVjKOM2VSiOeIrVffPimZg==:1283135288:9431be208d6b3d6376d48c330e5b6566::</auth_token><primary>1</primary><account_id>73512</account_id><displayname>Fumi%20Hax</displayname></body></level0> | + | |
- | </response> | + | |
- | | + | |
- | /+++++++++ Client +++++++++/ | + | |
- | POST /api2/viv_signin.php HTTP/1.1 | + | |
- | Host: 202.26.159.140:15257 | + | |
- | Accept: */* | + | |
- | Content-Length: 60 | + | |
- | Content-Type: application/x-www-form-urlencoded | + | |
| | | |
- | userid=xMVjKOM2VSiOeIrVffPimZg==&pwd=uDXQC0R9L00XTLU0SRLX0SS | + | **** SLVoice [#c31180ff] |
| + | - [[Viewer <--> SLVoice>./XML_slvoice]] |
| | | |
- | /+++++++++ Server +++++++++/ | + | **** Vivox [#fa84bf73] |
- | HTTP/1.1 200 OK | + | - [[SLvoice <--> Vivox>./XML_vivox]]~ |
- | Date: Wed, 28 Jan 2009 09:34:49 GMT | + | ~ |
- | Server: Apache/2.0.54 (Fedora) | + | |
- | X-Powered-By: PHP/5.0.4 | + | |
- | Set-Cookie: PHPSESSID=01rq78ddbj76enqeh8ihifvlf4; path=/ | + | |
- | Expires: Mon, 26 Jul 1997 05:00:00 GMT | + | |
- | Cache-Control: no-store, no-cache, must-revalidate | + | |
- | Pragma: no-cache | + | |
- | Set-Cookie: lib_session=xMVjKOM2VSiOeIrVffPimZg%3D%3D%3A1283135289%3A5e7fa53e859c6c7a124a082acc9ec6b6%3A%3A; path=/ | + | |
- | Last-Modified: Wed, 28 Jan 2009 09:34:49 GMT | + | |
- | Cache-Control: post-check=0, pre-check=0 | + | |
- | Content-Length: 575 | + | |
- | Connection: close | + | |
- | Content-Type: text/xml | + | |
- | Set-Cookie: Coyote-2-462a3e96=462a3e16:0; path=/ | + | |
| | | |
- | <?xml version="1.0" encoding="iso-8859-1" ?> | + | *** SIP [#o056cfa7] |
- | <response xmlns="http://www.vivox.com" | + | **** Vivox [#kec79522] |
- | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | + | - [[Vivox: Sip Request>./SIP_request]]~ |
- | xsi:schemaLocation= "/xsd/signin.xsd"> | + | |
- | <level0><status>OK</status><body><status>Ok</status><cookie_name>lib_session</cookie_name><cookie>xMVjKOM2VSiOeIrVffPimZg==:1283135289:5e7fa53e859c6c7a124a082acc9ec6b6::</cookie><auth_token>xMVjKOM2VSiOeIrVffPimZg==:1283135289:5e7fa53e859c6c7a124a082acc9ec6b6::</auth_token><primary>1</primary><account_id>73512</account_id><displayname>Fumi%20Hax</displayname></body></level0> | + | |
- | </response> | + | |
| | | |
- | ** Source Code [#pbebc777] | + | #br |
- | - linden/indra/newview/llvoiceclient.cpp | + | *** Fig [#sc7f424f] |
- | 1037 void LLVoiceClient::userAuthorized(const std::string& firstName, const std::string& lastName, const LLUUID &agentID) | + | #ref(vivox_sip1.jpg) |
- | 1038 { | + | #br |
- | 1039 mAccountFirstName = firstName; | + | |
- | 1040 mAccountLastName = lastName; | + | |
- | 1041 | + | |
- | 1042 mAccountDisplayName = firstName; | + | |
- | 1043 mAccountDisplayName += " "; | + | |
- | 1044 mAccountDisplayName += lastName; | + | |
- | 1045 | + | |
- | 1046 LL_INFOS("Voice") << "name \"" << mAccountDisplayName << "\" , ID " << agentID << LL_ENDL; | + | |
- | 1047 | + | |
- | 1048 sConnectingToAgni = LLViewerLogin::getInstance()->isInProductionGrid(); | + | |
- | 1049 | + | |
- | 1050 // MBW -- XXX -- Enable this when the bhd.vivox.com server gets a real ssl cert. | + | |
- | 1051 if(sConnectingToAgni) | + | |
- | 1052 { | + | |
- | 1053 // Use the release account server | + | |
- | 1054 mAccountServerName = "bhr.vivox.com"; | + | |
- | 1055 mAccountServerURI = "https://www." + mAccountServerName + "/api2/"; | + | |
- | 1056 } | + | |
- | 1057 else | + | |
- | 1058 { | + | |
- | 1059 // Use the development account server | + | |
- | 1060 mAccountServerName = gSavedSettings.getString("VivoxDebugServerName"); | + | |
- | 1061 mAccountServerURI = "https://www." + mAccountServerName + "/api2/"; | + | |
- | 1062 } | + | |
- | 1063 | + | |
- | 1064 mAccountName = nameFromID(agentID); | + | |
- | 1065 } | + | |
| | | |
- | - app_settings/settings.xml | + | ** [[Sample Source Code>./Sample_Source]] [#pbebc777] |
- | 9610 <key>VivoxDebugServerName</key> | + | #br |
- | 9611 <map> | + | |
- | 9612 <key>Comment</key> | + | |
- | 9613 <string>Hostname of the vivox account server to use for voice when not connected to Agni.</string> | + | |
- | 9614 <key>Persist</key> | + | |
- | 9615 <integer>1</integer> | + | |
- | 9616 <key>Type</key> | + | |
- | 9617 <string>String</string> | + | |
- | 9618 <key>Value</key> | + | |
- | 9619 <string>bhd.vivox.com</string> | + | |
- | 9620 </map> | + | |