1. 电话会议相关接口:
  2. 宁卫通信
  3. 资料中心
  4. FSGui
  5. 电话会议相关接口

电话会议相关接口

这里的会议以3000为主,主被叫号码1002,1003,1000,1004/

1 //创建一个3000名称的会议室,主持人号码是1002,不经过落地网关

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","PhoneNumber":"1002","GatewayName":""}'  -H "Authorization:Nway token" http://192.168.1.115:8082/api/conference_create "/conference_create" 

2 //增加一个成员并呼叫

//由系统呼叫号码为1002的号码,不经过落地网关,IsMute为默认是禁止发方与否

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","PhoneNumber":"1002","GatewayName":"","IsMute":"false"}'  -H "Authorization:Nway token" http://192.168.1.115:8082/api/conference_add "/conference_add" 

3 //获得一个会议中某号码的memberid

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","CallerNumber":"1002"}'  -H "Authorization:Nway token  " http://192.168.1.115:8082/api/conference_memberid "/conference_memberid" 

4 //踢掉所有与会成员

 curl -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_kick_all/3000 "/conference_kick_all/:conference" 

5 //会议自动增益

//param on/off //level a number curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","param":"on","level":"4"}'  -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_agc "/conference_agc" 

6 //检查录音状态

 curl -H "Authorization:Nway token. . " http://192.168.1.115:8082/api/conference_chkrecord/3000 "/conference_chkrecord" 

7 //禁听

//memberid是用getmemberid获得 //Flag |all|last|non_moderator

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Member_id":"3","Flag":""}'  -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_deaf "/conference_deaf" 

8 //发送dtmf到会议成员 //Flag |all|last|non_moderator

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Member_id":"3","Flag":"", "Dtmf":"520"}'  -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_dtmf "/conference_dtmf" 

9 //调整某个会议成员的energy //Flag |all|last|non_moderator //Newval

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Member_id":"3","Flag":"", "Newval":"520"}'  -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_energy "/conference_energy" 

10 //进入会议时的语音 //flag on|off|none|file //Filename Flag为file时有效

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Flag":"3","Filename":""}' -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_enter_sound 

"/conference_enter_sound"

11 //退出会议的语音

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Flag":"3","Filename":""}'  -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_exit_sound "/conference_exit_sound" 

12 // "切换会议人员状态" //Flag member_id|all|last|non_moderator

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Member_id":"3","Flag":""}'  -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_floor "/conference_floor" 

13 //挂断某个member,但不播放退出音

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Member_id":"3","Flag":""}'  -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_hup "/conference_hup" 

14 //挂断某个member,播放退出音

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Member_id":"3","Flag":""}' -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_kick

"/conference_kick" 

15 //列出会议 //Flag [pretty|summary|count|delim ]

curl -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_list/pretty 

"/conference_list/:flag"

16 //锁定某个会议,不允许新的人员进入

 curl -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_lock/3000 "/conference_lock/:conference" 

17 //解锁某个会议,允许新的会议人员进入

 curl  -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_unlock/3000 "/conference_unlock/:conference" ////////////////////////////////////////// 

18 //禁言 //Flag |all|last|non_moderator

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Member_id":"3","Flag":"","Quiet":"quiet"}'  -H "Authorization:Nway token  " http://192.168.1.115:8082/api/conference_mute "/conference_mute" 

19 //允许发言 //Flag |all|last|non_moderator

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Member_id":"3","Flag":"","Quiet":"quiet"}'  -H "Authorization:Nway token  " http://192.168.1.115:8082/api/conference_unmute  "/conference_unmute" 

20 //移除当前会议的录音 //Flag |all

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Flag":"all"}'  -H "Authorization:Nway token  " http://192.168.1.115:8082/api/conference_norecord  "/conference_norecord" 

21 //会议暂停录音 //Flag

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Flag":"all"}'  -H "Authorization:Nway token  " http://192.168.1.115:8082/api/conference_pause  "/conference_pause" 

22 //设置会议呼入时的口令 //Flag

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Flag":"all"}'  -H "Authorization:Nway token  " http://192.168.1.115:8082/api/conference_pin  "/conference_pin" 

23 //播放相关文件给会议 //Flag [{vol=,full-screen=true,png_ms=100}] [async| [nomux]]

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Flag":"all"}'  -H "Authorization:Nway token  " http://192.168.1.115:8082/api/conference_play  "/conference_play" 

24 //会议录音 //Flag

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Flag":"all"}'  -H "Authorization:Nway token  " http://192.168.1.115:8082/api/conference_record  "/conference_record" 

25 //会议录音控制

// recording start

// recording check

// recording stop |all

// recording pause

// recording resume

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Flag":"start","Filename":"/home/recording/abc.wav"}'  -H "Authorization:Nway token  " http://192.168.1.115:8082/api/conference_recording  "/conference_recording" 

26 //恢复会议录音

//Flag

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Flag":"/home/recording/abc.wav"}'  -H "Authorization:Nway token  " http://192.168.1.115:8082/api/conference_resume  "/conference_resume" "/conference_say" 

27 //设置一些会议参数

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Param":"Value","Filename":"/home/recording/abc.wav"}'  -H "Authorization:Nway token  " http://192.168.1.115:8082/api/conference_set  "/conference_set" 

28 //停止播放一些语音 //Flag [current|all] []

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Member_id":"3","Flag":""}'  -H "Authorization:Nway token  " http://192.168.1.115:8082/api/conference_stop  "/conference_stop" 

29 //切换禁言 //Flag |all|last|non_moderator

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Member_id":"3","Flag":"","Quiet":"quiet"}'  -H "Authorization:Nway token  " http://192.168.1.115:8082/api/conference_tmute  "/conference_tmute" 

30 //解除禁听 //Flag |all|last|non_moderator

curl -H "Content-Type: application/json" -d '{"ConferenceName":"3000","Member_id":"3","Flag":""}'  -H "Authorization:Nway token  " http://192.168.1.115:8082/api/conference_undeaf  "/conference_undeaf" ////////////////////////////////////////// 

31 //移除会议口令

 curl -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_nopin/3000 "/conference_nopin/:conference" 

32 //暂停播放

 curl -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_pause_play/3000 "/conference_pause_play/:conference" 

33 //查询所有正在进行中的会议

 curl -H "Authorization:Nway token " http://192.168.1.115:8082/api/conferences 

34//查询某个会议中的成员列表

 curl -H "Authorization:Nway token " http://192.168.1.115:8082/api/conference_members/3000