last week i described how to set up asterisk & opensim. a rather useful tool to test the whole setup is libsecondlife’s TestClient which (as of release 1758) contains commands to retrieve the voice account details and also to obtain the voice parcel info.
you start up your freshly compiled TestClient1…
% mono --debug TestClient --first Foo --last Bar --pass secret
...
1 avatars online>
and then you issue the voiceaccount command to obtain the voice account credentials:4
1 avatars online> voiceaccount
DEBUG [libsecondlife]: New CAPS request to
https://sim4042.agni.lindenlab.com:1204/cap/.... initiated
Voice Account for Ghostly Writer:
user "x2MOzi4T1Sq-qsfh77_Mnag==",
password "XXXXXXXXXXXXXXX"
1 avatars online> DEBUG [Ghostly Writer]: Voice version 1 verified
…this tells us the voice account user name2 and password3. next you can issue the voiceparcel command to obtain the parce voice info details for the parcel you are currently on…
1 avatars online> voiceparcel
DEBUG [libsecondlife]: New CAPS request to
https://sim4042.agni.lindenlab.com:12043/cap/... initiated
Parcel Voice Info request for Ghostly Writer:
region name "Zurela",
parcel local id 26,
channel URI sip:confctl-243489@bhr.vivox.com
…which returns the region, parcel local ID, and the channel URI (the “conf call”) for that parcel.
repeating the whole exercise with OpenSim gives us this output:
% mono TestClient.exe --first Foo --last Bar --pass secret \
--loginuri http://127.0.0.1:9000/
DEBUG [libsecondlife]: New CAPS request to http://127.0.0.1:9000/ initiated
DEBUG [Foo Bar]: Setting InventoryRoot to d8913a4b-...
DEBUG [Foo Bar]: Login status: ConnectingToSim: Connecting to simulator...
INFO [Foo Bar]: Connecting to (127.0.0.1:9000)
INFO [Foo Bar]: Received a region handshake for user error (127.0.0.1:9000)
DEBUG [libsecondlife]: New CAPS request to
http://127.0.0.1:9000/CAPS/... initiated
DEBUG [Foo Bar]: Login status: Success: Welcome to OpenSim
Logged in Foo Bar
Type quit to exit. Type help for a command list.
1 avatars online> DEBUG [Foo Bar]: Got capabilities:
UpdateNotecardAgentInventory
NewFileAgentInventory
FetchInventoryDescendents
MapLayer UpdateScriptTaskInventory
UpdateScriptAgentInventory ParcelVoiceInfoRequest
ProvisionVoiceAccountRequest
INFO [Foo Bar]: Connecting to (127.0.0.1:19999)
INFO [Foo Bar]: Received a region handshake for solid (127.0.0.1:19999)
1 avatars online>
1 avatars online> voiceaccount
DEBUG [libsecondlife]: New CAPS request to
http://127.0.0.1:9000/CAPS/... initiated
Voice Account for Foo Bar:
user "xJ_Mn9bMsTkWxiduZkM4zSw==",
password "$1$a857bc518438f33c16504831a5a47dd0"
and voiceparcel:
1 avatars online> voiceparcel
DEBUG [libsecondlife]: New CAPS request to
http://127.0.0.1:9000/CAPS/... initiated
Parcel Voice Info request for Foo Bar:
region name "user error",
parcel local id 1,
channel URI sip:54a9888b-...-85d45956bc1b@secondlife.zurich.ibm.com
a bit different, but in essence the same.
-
it needs to be compiled from the libsecondlife subversion code base. ↩
-
the UUID of your avatar, base-64 encoded…and, yes, i cheated. can you find out which avatar i logged in for this example? ;-) ↩
-
X-ed out here. ↩
-
i’ve changed the formatting to fit the output within the blog space, so the real output is a bit differently formatted. ↩
