GETTING STARTED OF TRI ANH PBX (PHASE 1)
Before Get Started
- Setup enviroment
- Kindly setup and run dev enviroment in your localhost. Please refer this docx if you not ready to next step as below link : setup_guide
- Setup sip to your client
- Take information from Tri Anh PBX : Sip address, password, Websocket, Proxy, contact uri.
- Go to Gcalls app. Then click on user icon on the top of corner. Next, click on admin page and click on sip account on the left panel. Then click on new sip accout button on the top right corner and fill information on center modal.
- Go to user tab on the left panel. Next add or change sip on your account as above sip.
- Test a new call. If you get a call then go next step. If not please contact with your CS or Tri Anh PBX to fix.
I. Configure variables capture with client
- Must Have Field (come from jssip newRTCSession event)
- session.remote_identity.display_name: remote phone number ( exp: 039XXXXXX )
- session.remote_identity.uri.user: remote phone number ( exp: 039XXXXXX )
- session.local_identity.uri.user: local user ( exp: 101 )
- session.local_identity.uri.host: local host ( exp: 2-test1.gcalls.vn )
- request.call_id: call id (exp: 99bfa56d-b1a0-123a-99ac-0050568cc136 )
- session.direction: call direction (exp: outgoing)
- originator: call originator (exp: remote)
- cause: call fail cause (exp: busy and come from event "failed")
- Custom variables ( TRI ANH PBX is on process for this variable and it come from invite call, end call)
- Configure System Log with Tri Anh PBX Webhook ( Phase 1 to test connect with Webhook and get information from TriAnh PBX) - TriAnh going to send a json data from WebSocket.
- Go to CallBox.js (exp: sipLogin function ) then adding WebSocket (exp : wss://ccms5.ccms.vn:1104/username=admin&token=f589792203104fe122c662cfe86aa996). Next, test a call and log event from WebSocket.
- For more detail variable mean please refer Tri Anh PBX docx via document. Then login and click on Events tab.
 
- List variable - uuid: variable for get link record (biến dùng để lấy link ghi âm cuộc gọi)
- recordings_url: variable for download a record link (biến dùng để download link ghi âm cuộc gọi)
- playing_recordings_url: variable for play a record ( biến dùng để nghe lại ghi âm cuộc gọi )
- hotline (INVITE message): variable for information client (biến chứa thông tin hotline của tổng đài )
- hotline_outbound: variable for outbound agent hotline (biến hiển thị số hotline mà agent (tổng đài viên) đã thực hiện cuộc gọi ra)
- press (INVITE message): incoming call key (biến hiển thị phím khách hàng bấm khi gọi vào tổng đài khi kịch bản có lời chào báo bấm phím)
- flowid: merge call logs with same call (biến dùng để gom logs cuộc gọi, khi có một cuộc gọi vào đi qua nhiều SIP. Có một SIP bắt máy, các SIP khác bị nhỡ)
- callrate: call rating feature (biến hiển thị phím khách hàng đã bấm khi thực hiện khảo sát tự động sau khi kết thúc cuộc gọi)
 
- Check Must Have Field and Custom variable exist
- Please refer Call_case_excel. Next, go to call cases sheet.
- This document is provide case to check variable before go on next step.
Note: Check variable details at CallBox.js
II. Configure system log (Tri Anh is on process for this step)
- System Log:
- Missed Calllog
- Forward Calllog
- Overtime Calllog
- Configure System Log with webhook (Tri Anh is on process )
- Provide log url to TriAnh PBX : log_url
- Tri Anh PBX going to send a json contain data to show log via webhook.
III. Conclusion call affect (PHASE 1)
- Play record isn't work.
- Record hasn't any link to download.
- Hotline and hotline outbound is not show.
- Merge call logs is not show.
- The system log is now on process development so log line not work.
- Call rate missed.
- System log not work.