What is the Provider method for creating dialogs?
One of the new features added to JSIP-1.2 is to allow applications the ability to have control over dialog creation. To enable, you have to set AUTOMATIC_DIALOG_SUPPORT=”off” when you create the stack. You may also disable automatic dialog support on a per-provider basis. Then use the method. SipProvider.getNewDialog(tansaction) to create a dialog. Under the stack configuration parameter, AUTOMATIC_DIALOG_SUPPORT=”on” , Dialog creation and destruction is managed by the stack. When the client transcaction is created, a Dialog is associated with it but not mapped (its state is null). When you complete the transaction successfully it actually gets mapped and a valid state is assigned to it. On the server side, when you get the request, provided the method of the request has the ability to create a Dialog, you can elect to create a Dialog by creating a new Server Transaction at which point the stack automatically creates a Dialog for transaction but defers actually mapping it until a final