public SipConnector[] createDefaultSipConnectors(String host, String portnum) throws Exception
{
AbstractSipConnector[] sipConnectors = new AbstractSipConnector[2];
int port = ((portnum==null||portnum.equals(""))?DEFAULT_SIP_PORT:Integer.parseInt(portnum.trim()));
sipConnectors[0] = new UdpConnector();
sipConnectors[1] = new TcpConnector();
if (host != null && !host.trim().equals(""))
{
sipConnectors[0].setHost(host);
sipConnectors[1].setHost(host);