asteriskami - how hold /unhold call with Asterisk-java? -



asteriskami - how hold /unhold call with Asterisk-java? -

once connected ami using java-asterisk create phone call :

originateaction originateaction; managerresponse originateresponse; getevent event = new getevent(); sipshowpeeraction peer = new sipshowpeeraction(); peer.setpeer("phone1"); managerconnection.addeventlistener(event); originateaction = new originateaction(); parkaction park = new parkaction(); originateaction.setchannel("sip/mark"); originateaction.setcallerid("<6002>"); originateaction.setcontext("default"); originateaction.setpriority(new integer(1)); originateaction.setexten("1304"); managerconnection.login(); managerconnection.addeventlistener(event); originateresponse = managerconnection.sendaction(peer); originateresponse = managerconnection.sendaction(originateaction, 30000); thread.sleep(3000); park.setactionid(originateaction.getactionid()); managerconnection.logoff();

i want hold , unhold current phone call using asterisk-java , checket in net found have utilize parkaction dont understand concept ? if have thought ?

java asteriskami

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -