Re: Re: Incoming SIP message handling

"Jeroen van Bemmel" <[email protected]>
Newsgroups gmane.comp.voip.nist-sip
Message-ID <00bb01c64792$ea3d96e0$31713b51@BEMBUSTER>
Levent,

This would happen if your application is not processing incoming requests 
fast enough, and a retransmission arrives before your application had a 
chance to call 'getNewServerTransaction'

The best thing to do is to call 'getNewServerTransaction' as early as 
possible in your code (i.e. first thing in listener.processRequest), before 
starting expensive processing. This will send '100 trying' which stops 
retransmissions (for INVITE anyway), and will also filter any 
retransmissions such that you don't get this exception

Regards,

jeroen

----- Original Message ----- 
From: "Levent Tinaz" <[email protected]>
To: <[email protected]>
Sent: Tuesday, March 14, 2006 6:04 PM
Subject: [nist-sip] Re: Incoming SIP message handling


>I have a thread problem too. if I process request and response events in 
>worker
> threads, I am getting :
>
> javax.sip.TransactionAlreadyExistsException: server transaction already 
> exists!
>        at
> gov.nist.javax.sip.SipProviderImpl.
>                      getNewServerTransaction(SipProviderImpl.java:400)
>        at redi12.ProxyWorker.forwardRequestFinal(ProxyWorker.java:395)
>        at redi12.ProxyWorker.processRequest(ProxyWorker.java:295)
>        at redi12.ProxyWorker.run(ProxyWorker.java:577)
>
>
> We use JSIP 1.2, and "javax.sip.AUTOMATIC_DIALOG_SUPPORT", "off"
> I investigated the error little bit. It creates a dialog although
> DIALOG_SUPPORT=off
>
> snipped from SipProviderImpl.java
>
> 398 if (sipStack.isDialogCreated(sipRequest.getMethod())) {
> 399  if (sipStack.findTransaction((SIPRequest) request, true) != null)
> 400 throw new TransactionAlreadyExistsException(
> 401 "server transaction already exists!");
>
> Are we missing something here ?
>
>
> _______________________________________________
> nist-sip mailing list
> [email protected]
> http://www-x.antd.nist.gov/mailman/listinfo/nist-sip
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.