public class WscUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WscUtils.Log
Log handler for groovy.
|
Constructor and Description |
---|
WscUtils() |
Modifier and Type | Method and Description |
---|---|
static javax.servlet.sip.Address |
getFromAddress(TemplateContext context)
Returns the SIP address of the Initiator.
|
static String |
getInitiator(TemplateContext context)
Returns an initiator based on a normalized data header.
|
static String |
getPublicId(String webId,
String domainName)
Derive the public ID from a web ID.
|
static javax.servlet.sip.Address |
getToAddress(TemplateContext context)
Returns the To SIP Address based on "target" or "initiator'.
|
static boolean |
isSdpExchangeComplete(TemplateContext context)
Returns whether the SDP exchange is complete for the current call in context.
|
static boolean |
isSdpExchangePending(TemplateContext context)
Returns whether the SDP exchange is pending for the current call in context.
|
static String |
sipAddressToString(javax.servlet.sip.Address address)
Returns a string representation of a SIP Address URI.
|
public static String sipAddressToString(javax.servlet.sip.Address address)
address
- the addresspublic static String getInitiator(TemplateContext context)
context
- TemplateContextpublic static javax.servlet.sip.Address getFromAddress(TemplateContext context)
context
- TemplateContextpublic static javax.servlet.sip.Address getToAddress(TemplateContext context)
context
- TemplateContextpublic static boolean isSdpExchangeComplete(TemplateContext context)
context
- TemplateContextpublic static boolean isSdpExchangePending(TemplateContext context)
context
- TemplateContext