This is a documentation for Flashphoner version 1.0.5.973
We recommend you upgrade to the last version and check the actual documentation

Loadtest

Load-tests supported since Flashphoner-client-1.0.124.
You can create own simple load test using Flashphoner Javascript phone and Autologin feature.

Test scheme:

  1. You open several windows with Javascript phone.
  2. Every window
    • does auto-login
    • calls to Asterisk echo extension
    • starts video
    • plays remote video
    • hangups call after 5 econds
    • call again after 5 seconds

Please, watch the movie how it works:

Steps:

Asterisk configuring

Install Asterisk 1.6 or Asterisk 1.8
If you install Asterisk 1.8, please read this article
We used make samples command to get standard samples for Asterisk 1.8
Then, you should configure /etc/asterisk/sip.conf  and /etc/asterisk/extensions.conf files as attachments below:

  • Here we create 2001-2099 SIP accounts
    sip.conf
  • Here we create Echo extension. It means, if you call to 4001, you talk with youself, you hear your voice, you see your video, but all media streams goes via asterisk server.
    extensions.conf

Autologin authentication script

You can use PHP, ASP, JSP or other server-side script to generate authentication page.
We used Apache Tomcat for this purpose:

You should see something like that:

<?xml version="1.0" encoding="UTF-8"?><root auth="true" sip_login="2023" sip_password="2023" sip_server="my.asterisk.ip"/>

So, authentication script is ready. This script returns authentication XML using "+1" scheme. It returns 2001 account for first user, then returns 2002 account for second user, and so on.
See also - Autologin feature.

Configuring Flashphoner server

Edit flashphoner properties and set auto_login_url=mytomcatip:8080/auth.jsp

Start test

Download  and install latest version of Flashphoner-client
Thus, all you need to open 10 or more windows with PhoneJS-autologin-loadtest.html and press Allow. 
Every window will be auto-logged(registered) on Asterisk server and will do call / startvideo / hangup / call cycle.
Then you can monitor server performance.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.