Supprimer un message
rfr
Euh sinon, pour faire des calls avec asterisk, le mieux c'est d'utiliser ça:
OriginateAction action = new OriginateAction();
ManagerResponse response = null;
action.setChannel("SIP/XXXXXXXXX@hg1500");
action.setContext("stations");
action.setPriority(new Integer(1));
action.setExten("2503");
action.setTimeout((long)30000);
response = connection.sendAction(action, 30000);
System.out.println("Result: "+response.getResponse()+" : "+response.getMessage());
connection.logoff();
OriginateAction action = new OriginateAction();
ManagerResponse response = null;
action.setChannel("SIP/XXXXXXXXX@hg1500");
action.setContext("stations");
action.setPriority(new Integer(1));
action.setExten("2503");
action.setTimeout((long)30000);
response = connection.sendAction(action, 30000);
System.out.println("Result: "+response.getResponse()+" : "+response.getMessage());
connection.logoff();