123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
-
- var hollyglobal = {
- //注册
- login(extNo) {
-
- hollyglobal.loginUser=extNo
- var actionName = "Login",
- phoneJson = {
- Command: "Action",
- Action: actionName,
- ActionID: actionName + Math.random(),
- Monitor: true,
- ExtenType: hollyglobal.loginExtenType,
- Password: hollyglobal.loginPassword,
- BusyType: hollyglobal.loginBusyType,
- User: hollyglobal.loginUser
- },
- config = {
- proxy_url: hollyglobal.loginProxyUrl,
- user: hollyglobal.loginUser
- };
- holly.phone.phone_register(config, phoneJson);
- },
- reLogin(){
- holly.phone._phone_relogin(false);
- },
- actionEvent:function(type,result){//用来接收设置空闲、挂断等状态 是否执行成功 1空闲 2挂断
- },
- msgEvent:function(msg,id){
- },
- /**
- * call:{//外呼电话内容
- builtId:0,//任务id
- ticketId:0, //工单id:如果是工单发起的外呼 默认0
- customerId:0,//客户id 必传
- mobile:'13262258272',//电话号码
- name:'', //客户名称
- type:'OB',//默认OB
- source:''}//外呼来源:电访任务发起=campaign;工单=ticket
- */
- dialoutEvent:function(call){//外拨公用事件
- },
- /**
- * ticket发起的 不需要调用此方法
- * 电访任务、进电时,保存电访结果时调用此方法,会将工具条从话后=转为空闲
- */
- saveRecordEvent:function(callid){//保存话务记录,每次电访保存时调用;如果是工单发起的外拨,callid=0
- },
- hangupEvent: function (peer) {
- hollyglobal.actionEvent('hangup',peer);
- },
- ringEvent: function (peer) {
- console.dir(peer);
- },
- talkingEvent: function (peer) {
- console.dir(peer);
- },
- loginSuccessCallback: function (peer) {
- },
- loginFailureCallback: function (peer) {
-
- },
- startWith: function (str, prefix) {
- return str.indexOf(prefix) == 0;
- },
- pbxs: [
- {
- PBX: '2.3.1.100',
- pbxNick: '100',
- NickName: '100',
- proxyUrl: "http:/101.201.239.37:7777/"
- }
- ],
- //accountId: 'N000000009418',
- accountId: 'N000000017088',
- sipConfigId: '2.3.1.100',
- monitorPassword: '7pu3refwds98172e',
- monitorUserID: '2387rufhinjvcx73rfws',
- loginBusyType: "0",//0空闲 1忙碌
- // loginUser: "8016@lmzcs",//软电话登录的登录名
- // loginPassword: "123abc",//软电话登录的密码
- // loginExtenType: "sip",//软电话登录的登录方式
- // loginProxyUrl: "http://210.14.88.129",//软电话条需要请求的服务器IP(PBX IP)
- //dep环境账号
- // loginUser: "8001@sunmj1",//软电话登录的登录名
- // loginPassword: "Lirong520",//软电话登录的密码
- // 生产环境账号
- loginUser: "8888@jzsh",//软电话登录的登录名
- loginPassword: "QAZwsx123!",//软电话登录的密码
- loginExtenType: "Local",//软电话登录的登录方式
- // loginProxyUrl: "http://106.14.46.234",//软电话条需要请求的服务器IP(PBX IP)
- loginProxyUrl: "http://a6.7x24cc.com",//软电话条需要请求的服务器IP(PBX IP)
- isDisplayInvestigate: true,//转调查
- isDisplayConsult: false,//咨询
- isHiddenNumber: false,//号码隐藏
- isMonitorPage: false,//
- isDisplayTransfer: false,//转接
- isMonitorJoint: false//是否监控对接
- };
-
|