Using PushRegistry

MIDlet may register the URI (sip identity) used to open SipConnectionNotifier either dynamically in the MIDlet code or statically as a JAD parameter.

Dynamic registration, example:

String midletName = "com.company.sip.SIPGame1";
String serverURI = "sip:*;type=\"application/x-chess\"";
SipConnectionNotifier scn = (SipConnectionNotifier) Connector.open(serverURI);
PushRegistry.registerConnection(serverURI, midletName, "*");

Static registration (JAD parameter), example:

MIDlet-Push-1: sip:*;type="application/x-chess", com.company.sip.SIPGame1, *

In this example the request must have THE following header information set:

Accept-Contact: *;type="application/x-chess"