Re: RE: ServerTransaction=null
"Jeroen van Bemmel" <[email protected]>
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <001201c6dc7a$4ec5bb20$0601a8c0@BEMBUSTER> |
Santosh, You need to do something like: ServerTransaction st = requestEvent.getServerTransaction(); if (st==null) st = sipProvider.getNewServerTransaction(req); Regards, Jeroen ----- Original Message ----- From: "Santosh Kakde" <[email protected]> To: "M. (Neo-Ranga) Ranganathan" <[email protected]> Cc: <[email protected]> Sent: Tuesday, September 19, 2006 6:52 AM Subject: [nist-sip] RE: ServerTransaction=null > > Hi, > > I tried by creating a new server transaction but in that case it is > giving following exception: > > javax.sip.TransactionAlreadyExistsException: Transaction exists! > at > gov.nist.javax.sip.SipProviderImpl.getNewServerTransaction(SipProvide > rImpl.java:421) > at > techmahindra.SeamlessAgent.processRequest(SeamlessAgent.java:505) > at > gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:185) > at gov.nist.javax.sip.EventScanner.run(EventScanner.java:324) > at java.lang.Thread.run(Unknown Source) > > > -----Original Message----- > From: M. (Neo-Ranga) Ranganathan [mailto:[email protected]] > Sent: Monday, September 18, 2006 7:57 PM > To: Santosh Kakde > Cc: [email protected] > Subject: Re: ServerTransaction=null > > Hi > > You can create a new server transaction to handle your request by > using the SipProvider. The SipProvider is the event source for your > RequestEvent. You may want to look at examples/subsnotify > > Regards > > Ranga > > On 9/18/06, Santosh Kakde <[email protected]> wrote: >> >> Hi, >> >> >> >> I am getting Server Transaction = null some time in my application. > When >> application send the SUBSCRIBE message to presence server It sends >> NOTIFY to my application. For sending 200 OK for NOTIFY message >> application is trying to take server transaction from request event > i.e. >> requestEvent.getServerTransaction (), for this some time application > is >> getting server transaction =Null. Can u tell me the solution for this > & >> why server transaction is null. >> >> >> >> -santosh Kakde >> >> >> >> > ======================================================================== > ==================================================== >> >> Tech Mahindra, formerly Mahindra-British Telecom. >> >> Disclaimer: >> >> This message and the information contained herein is proprietary and >> confidential and subject to the Tech Mahindra policy statement, you > may >> review at <a >> > href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahind > ra.com/Disclaimer.html</a> >> externally and <a >> > href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahind > ra.com/Disclaimer.html</a> >> internally within Tech Mahindra. >> >> > ======================================================================== > ==================================================== >> > > > -- > M. Ranganathan > "There are two ways to write error-free programs; only the third one > works." -- Alan Perlis > > ============================================================================================================================ > > Tech Mahindra, formerly Mahindra-British Telecom. > > Disclaimer: > > This message and the information contained herein is proprietary and > confidential and subject to the Tech Mahindra policy statement, you may > review at <a > href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> > externally and <a > href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> > internally within Tech Mahindra. > > ============================================================================================================================ > > _______________________________________________ > nist-sip mailing list > [email protected] > http://www-x.antd.nist.gov/mailman/listinfo/nist-sip