Re: question about SimpleCallSetup

niepin <[email protected]> Tue, 16 Jan 2007 10:26:38 +0000 (UTC)
Newsgroups gmane.comp.voip.nist-sip
Message-ID <[email protected]>
Ryan Li <lxinyi <at> gmail.com> writes:

> 
> Hi, allI am new to JAIN SIP.In the SimpleCallSetup example, after the request
is constructed and sent by callinginviteTid.sendRequest();The code call dialog =
inviteTid.getDialog(); and terminate.But the dialog need to take some time to be
established.
> From the documentation, nether Transaction.sendRequest() nor
Transaction.getDialog() will block until some event happned.The question is how
the sip stack guarantees that the status of dialog is updated when calling 
> Transaction.getDialog()?Best Regards,Ryan
> 
> _______________________________________________
> nist-sip mailing list
> nist-sip <at> antd.nist.gov
> http://www-x.antd.nist.gov/mailman/listinfo/nist-sip
> 

Hi,
In the JAIN SIP API, interfaces -> Dialog, it clearly states there is a state
mechine bound with the dialog. Transaction.getDialog() is just an object
associated with the transaction. Its own states should not be blocked
externally, but only by the message sequence, which is guaranteed by the
underlying listener.

BR

niepin