org.mitre.jsip
Clase Sip
- public class Sip
Sip
public Sip()
- Sip
getMethodString
public static String getMethodString(int m)
- getMethodString
- Parameters:
m
-
- Returns:
- String
matchMethod
public static int matchMethod(String m)
- matchMethod
- Parameters:
m
-
- Returns:
- Method
getLocalAddress
public static String getLocalAddress()
- getLocalAddress
- Returns:
- String
getLocalPort
public static int getLocalPort()
- Get the port we will be listening to
- Returns:
- a sip port number
setLocalAddress
public static void setLocalAddress(String localaddr)
- setLocalAddress
- Parameters:
localaddr
-
getDigestResponse
public static String getDigestResponse(String user,
String password,
String method,
String requri,
String authstr)
- getDigestResponse
- Parameters:
user
-
password
-
method
-
requri
-
authstr
-
- Returns:
- String
getBasicResponse
public static String getBasicResponse(String user,
String password)
- getBasicResponse
- Parameters:
user
-
password
-
- Returns:
- String