Handle OPTIONS requests. Close all calls and unregister upon exit

cusax-fix
Emil Ivov 19 years ago
parent 320fdc083d
commit bbc3a37bb3

@ -1081,6 +1081,12 @@ public void shutdown()
{
return;
}
logger.trace("Killing the SIP Protocol Provider.");
//kill all active calls
OperationSetBasicTelephonySipImpl telephony
= (OperationSetBasicTelephonySipImpl)getOperationSet(
OperationSetBasicTelephony.class);
telephony.shutdown();
if(isRegistered())
{
@ -1553,6 +1559,9 @@ private void initRegistrarConnection(AccountID accountID)
+ registrarAddress.getHostAddress() + ": "
+ ex.getMessage());
}
//initialize our OPTIONS handler
ClientCapabilities capabilities = new ClientCapabilities(this);
}
/**
@ -1854,4 +1863,13 @@ public void attachToTag(Response response, Dialog containingDialog)
}
}
/**
* Returns a List of Strings corresponding to all methods that we have a
* processor for.
* @return a List of methods that we support.
*/
public List getSupportedMethods()
{
return new ArrayList(methodProcessors.keySet());
}
}

Loading…
Cancel
Save