Archives

How to generate keys and setup Pusher for real-time chat?

STEP 1: Login / Register to Pusher Account. Visit: https://pusher.com/

Screenshot_68

STEP 2:  At Channels  > click on “Get started“

Screenshot_69

STEP 3:  At Welcome to Pusher Channels! pop-up, Click “Create app” button

Screenshot_71

STEP 4: App Settings

1. Click App Settings

2. Turn on Force TLS

3. Turn on Enable client events

Screenshot_72

STEP 5:  Click on App Keys then please note App_id, key, secret and cluster

Screenshot_73

 STEP 6:   Access Admin Dashboard => Plugins Manager => Message => Genaral tab

Setting:

– Enable Pusher = yes

– Force TLS = yes

– Input App_id, key, secret and cluster from STEP 5 to the fields

Then click Save Setting

After saving, the chat will activate in real-time, and a “User is typing” notification will appear in the chat room.

Screenshot_76

 

How to Calculate Call Service Costs?

Step 1: Check Agora’s Pricing

Please check the pricing from Agora here

Agora’s pricing for call services is as follows:

  • Audio Calls: $0.99 per 1,000 participant minutes$0.00099 per participant per minute.
  • Video Calls (up to 2K resolution): $15.99 per 1,000 participant minutes$0.01599 per participant per minute.

Note: In typical usage, video calls do not exceed 2K resolution, so this pricing is the most appropriate choice.


Step 2: Calculate the Cost of Voice/Video Calls

Voice Call Cost Calculation

For a call with 2 participants:

  • Cost per minute = $0.00099 × 2 = $0.00198.

Video Call Cost Calculation (2K Resolution)

For a call with 2 participants:

  • Cost per minute = $0.01599 × 2 = $0.03198.

Note: This is the base cost you pay to Agora. To determine the final price for users, consider adding platform fees and profit.


Step 3: Convert Cost to Credits

Our system uses Credits as a currency for payments.

Set the Exchange Rate

  1. Go to Admin DashboardPlugin ManagerCredit.
  2. Set the Currency exchange (e.g., 1,000 Credits = $1).
  3. Click Save Settings.

Convert Call Costs to Credits

  • Voice Call: $0.00198 × 1,000 = 1.98 Credits per minute.
  • Video Call (2K): $0.03198 × 1,000 = 31.98 Credits per minute.


Step 4: Set Call Costs for Different User Roles

To customize call pricing for different user roles:

  1. Go to Admin DashboardPlugin ManagerMessage.
  2. Open the Permission tab.
  3. Set the price (in Credits) for Audio/Video calls based on user roles.


 Step 5: Save and Apply Changes

  1. Click Save.
  2. Clear the global cache to ensure the new settings take effect.

How to enable and set pricing for Audio & Video call?

How to enable Audio & Video call?

Step 1: Access to Admin Dashboard => Plugin Manager => Message => Video & Audio settings tab.

Step 2: Set the filed as shown below

(1) Enable Video calls = yes

(2) Enable Audio calls = yes

(3) Input Agora App ID

(4) Input Certificate

Step 3:  Click Save Settings (5)

Note: For generate Agora App ID & Primary Certiicate, please read “How to generate Agora App ID & Primary Certificate?

Screenshot_134

How to set prices for Audio & Video call?

Step 1: Access to Admin Dashboard => Plugin Manager => Message => Permission tab.

Step 2: Input the price (in credit) and time to Audio call & Video call column for each role.

Example: 0.99 credit / 1 minute

Step 3: Click Save button then clear global cache

Note: input 0 (zero) = Free

Screenshot_135

How to allow sending attachments in messages?

STEP 1: Access to Admin Dashboard => Plugin Manager => Message => General tab.

Screenshot_268

STEP 2: at “Allowed file extension” field, input the file type that allow to send in messages

Example: mp4,zip,txt

Note: Blank = no allow send any attachment in messages

STEP 3: Click “Save Setting” then clear global cache

 

How to enable Message plugin and limit sending messages?

1. How to Enable the Message plugin? 

STEP 1: Access to Admin Dashboard => Plugin Manager => Message => General tab.

STEP 2: Setting Enable Message = Yes

Screenshot_136

STEP 3: Click Save Settings then Clear global cache

2. How to limit sending messages? 

STEP 1: Access to Admin Dashboard => Plugin Manager => Message => Permission tab.

STEP 2: There are 3 types of limits: limit users, limit messages and allow chat

(1) For limit users can chat with, Input a number to “How many users can chat with (-1 is unlimited)” column

Example: Input 10 to member role, this role can chat with 10 users only.

(2) For limit messages can chat with, Input a number to “How many message can chat with (-1 is unlimited)” column

Example: Input 10 to member role, this role can send total 10 messages.

(3) For Allow or un-allow chat,  Check/Un-check to box for each role in “Allow chat” column

Note: 

Input -1 = Unlimited messaging or chatting with users

Input (Zero) 0 = Can’t chat but can see received messages

Un-allow chat = Can’t not open messages page, can not see anything in massages

Screenshot_267

Step 3: Click Save then Clear global cache