2009-04-17 11:57:08 UTC
Thank you very much :) Handled erverything fine!
Here the code if there are other who need things like that:
SipPhone tempPhone = a.getParent();
tempPhone.listenRequestMessage();
//Process INFO-Message
RequestEvent event = tempPhone.waitRequest(1000); //wait a second
if(event != null){
Request tReq = event.getRequest();
parent.v("INFO-Message:\n"+tReq.toString());
if(tReq.toString().indexOf("INFO") >= 0){
tempPhone.sendReply(event, SipResponse.OK, "OK",
null, null, 0, null, null, null, null, null);
}
if(tReq.toString().indexOf("BYE") >= 0){
// Process your BYE...
}
}
greetz rul4