Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:custom_development_guide:how_to_use_http_push_sample_page_to_receive_system_events [2013/02/10 00:33]
solo created
en:custom_development_guide:how_to_use_http_push_sample_page_to_receive_system_events [2017/12/12 11:05] (current)
Line 1: Line 1:
 ====== how to use http_push sampl page to receive system events ====== ====== how to use http_push sampl page to receive system events ======
 In order to allow third-party programs to be able to accept astercc events, we need to config team API domain and Push event key In order to allow third-party programs to be able to accept astercc events, we need to config team API domain and Push event key
 +===== Config Team =====
     * Login as admin, go to [User] -> [team], [Advanced]     * Login as admin, go to [User] -> [team], [Advanced]
     * Fill "Push event key", in this case, we use temp123     * Fill "Push event key", in this case, we use temp123
     * Fill "API Domain",​ because nginx and systems on the same server, we put 127.0.0.1     * Fill "API Domain",​ because nginx and systems on the same server, we put 127.0.0.1
 +{{:​en:​custom_development_guide:​team_config.jpg?​650|}}
  
   * login from SSH, restart asterccd   * login from SSH, restart asterccd
Line 10: Line 11:
 service asterccd restart service asterccd restart
 </​code>​ </​code>​
 +{{:​en:​custom_development_guide:​ssh_asterccd_restart.jpg?​650|}}
  
-===== Config Team ===== 
 ===== Sample Page ===== ===== Sample Page =====
 +system provides a sample page which is using http push to receiving call events
 +  * login as agent and then check-in
 +{{:​en:​custom_development_guide:​portal_check_in.jpg?​650|}}
 +  * click [Menu] → [http_push get call events], open the sample page
 +{{:​en:​custom_development_guide:​portal_http_push.jpg?​650|}}
 +{{:​en:​custom_development_guide:​portal_http_push_blank.jpg?​650|}}
 +  * to get a specific agent events, we need put
 +<​code>​
 +astercc_ip:​asterCC server ip
 +astercc_identity:​ identity of the team of the agent
 +astercc_agentno:​ put the agent no, you want to get events
 +astercc_pwd:​ password of the agent, it is supposed to be in md5, say the agent password is temp123, the md5 string will be cca8dd8babd4c9996c8dfee788a49d18
 +</​code>​
 +{{:​en:​custom_development_guide:​agent_config.jpg?​650|}}
 +  * click "Start receiving events",​ now if you make a call from agent, you can see events output
 +{{:​en:​custom_development_guide:​portal_http_push_agent_start.jpg?​650|}}
 +  * To receive all events in a team, we don't need put agent no., but we need put md5 format of "Push event key", we used temp123, so the md5 is cca8dd8babd4c9996c8dfee788a49d18
 +{{:​en:​custom_development_guide:​portal_http_push_start.jpg?​650|}}
 +
en/custom_development_guide/how_to_use_http_push_sample_page_to_receive_system_events.txt · Last modified: 2017/12/12 11:05 (external edit)
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki