FreeSWITCH及VOIP,Openser,电话机器人等产品中文技术资讯、交流、沟通、培训、咨询、服务一体化网络。QQ群:293697898
ws://ip:8086/fsgui-ws ,将可以由websocket直接控制,且由websocket直接将事件或话单推送至登录的分机上,数据皆为json
``` "Command":"Login","username":"lihao","password":"18621575908"
"Command":"Logout"
"Command":"originate","caller":"1000","callee":"18621575908","a_effective_caller_id_num":"1862575908","b_effective_caller_id_num":"02112345678","a_external":"no","b_external":"yes","ring_id":"51"
"Command":"call","callee":"18621575908","b_effective_caller_id_num":"02112345678","b_external":"yes","ring_id":"51"
"Command":"extension_info"
"Command":"extension_seatstatus","status":"idle"/"busy"
"Command":"extension_seatstate","state":"up"/"down"
"Command":"extension_callstate","state":"ring"/"ready"/"talking"/"ivr"
"Command":"hangup"
"Command":"hold"
"Command":"unhold"
"Command":"intercept"
"Command":"eavesdrop","eaved":"1006"
"Command":"threeway","phone":"1006"
"Command":"whisper","phone":"1006"
"Command":"transfer","caller":"1006","callee":"8000","display_number":"1006","a_external":"false"
```
事件推送
type NwayWSEventExt struct {
Evt_name ,Callin_number, Dest_number, Domain, Dtmf, Gateway, Originate_number, Direction string
}
话单推送
type NwayWSCdrExt struct {
Caller_number, Dest_number, Gateway_name, Origination_name, Direction string
Start_time, Answer_time, Hangup_time string
Record_file string
}