I am running into the next problem related to the @SipApplicationKey
method. It seems SipServletRequest.getSubscriberURI() method returns
null when called from inside the @SAK method. However, when the
container subsequently calls the doInvite() method, getSubscriberURI()
returns the correct value.
e.g.
@SipApplicationKey
public static String sipApplicationKey(SipServletRequest req) {
URI subscriberURI = req.getSubscriberURI();
// in MSS, this returns null.
returns subscriberURI.toString();
}
public void doInvite(SipServletRequest req) {
URI subscriberURI = req.getSubscriberURI();
// This returns the correct value
...
}
This is a problem because in many cases, the subscriber URI is a good
key to use.
Thanks
Eric