Twilio Client hold -


i working node.js , twilio client.

i able place call on hold , retrieve it, however, if wait 6 seconds call disconnect once put in hold enqueue. if try disconnect softphone once caller in hold queue disconnects caller too.

function holdcall(){     console.log(callstatus);     //i passing agents name, , current call status boolean end modify call in hold enqueue         socket.emit('holdcall', {agent: '{{client}}', status: callstatus});     //if call on hold returns true , connect agent custom queue     if(callstatus){         params = {"phonenumber": $("#number").val(), "state": "{{client}}"};          call = twilio.device.connect(params);     //if call not on hold want twilio client disconnect call can taken off hold.     }else{       console.log(call);       call.disconnect();     }     //switch call status     callstatus = !callstatus;     } 

if there better day can modify live call hook client has not disconnected love way

after speaking directly twilio support moved on using conference rooms , working more smoothly no delays.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -