We have a Cisco IP Phone Service for survey's process, when the user accessed the service sends him a phone number to do the survey, we want to make the call and continue with the survey questions but when we do the connection the service closes and the user have to start again, obviously he obtain another phone number.
What i can do to avoid the service exits and be able to continue my process with my call made?
//Call Dial
protected void makecall ()
throws ResourceUnavailableException, InvalidStateException,
PrivilegeViolationException, MethodNotSupportedException,
InvalidPartyException, InvalidArgumentException {
println ( "Making call #" + ++iteration + " from " + srcAddress + " to " + destAddress + " " + Thread.currentThread ().getName () );
Call call = srcAddress.getProvider ().createCall ();
call.connect ( srcAddress.getTerminals ()[0], srcAddress, destAddress );
setCallProgressState ( false );
println ( "Done making call" );
}
Thanks