I just upgraded to mobicents 1.2.0 CR1 w/ Sip Servlet 0.5 and my app
stopped working ... It was working in Sip Servlet 0.4.1.
What happens is that mobicents invalidates my Sip Session when it
receives the 200/OK message back. The flow is like this:
1. I send out an INVITE and gets several 183 responses until the user
picks up the phone. The 183 responses are routed correctly.
18:45:05,791 INFO [ResponseDispatcher] route response on following
session (sip:5731...@sip.future-nine.com,
3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com
,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/2.0
183 Session Progress
2. Then, the 200/OK comes and the server suddenly decides the
invalidate the application session. My SipServlet methods are not
executed here.
18:45:09,082 INFO [SipApplicationDispatcherImpl] Dialog Terminated => f898bc4e6851f6c9...@10.251.210.195
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com
,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com
,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com
,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com
,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:09,082 INFO [SipApplicationSessionImpl] Invalidating the
following sip application session (f898bc4e6851f6c9...@10.251.210.195
,RingfulSip)
18:45:22,163 INFO [SIP-Servlet-Tomcat-Server] <message
from="64.251.23.244:5060"
to="10.251.210.195:5080"
time="1219362322163"
isSender="false"
transactionId="z9hg4bk76481606673f62da64458f6ed809ebb7"
callId="f898bc4e6851f6c9...@10.251.210.195"
firstLine="SIP/2.0 200 OK"
... ...
3. The remote server keeps sending 200/OK since it did not get ACK,
and mobicents just drops them due to lack of active session.
18:45:22,168 ERROR [ResponseDispatcher] Dropping the response since no
active sip session has been found for it : SIP/2.0 200 OK
Any ideas what I did wrong? Thanks a lot!
cheers
Michael
Folks,
I just upgraded to mobicents 1.2.0 CR1 w/ Sip Servlet 0.5 and my app stopped working ... It was working in Sip Servlet 0.4.1.
What happens is that mobicents invalidates my Sip Session when it receives the 200/OK message back. The flow is like this:
1. I send out an INVITE and gets several 183 responses until the user picks up the phone. The 183 responses are routed correctly.
18:45:05,791 INFO [ResponseDispatcher] route response on following session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/2.0 183 Session Progress
2. Then, the 200/OK comes and the server suddenly decides the invalidate the application session. My SipServlet methods are not executed here.
18:45:09,082 INFO [SipApplicationDispatcherImpl] Dialog Terminated => f898bc4e6851f6c9...@10.251.210.195
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
cheers
Michael
The 183 and 200 responses are right next to each other ... I notice that there is a "Dialog Terminated" message right before the invalidation. That message is also present in 0.4.1. Could that be the cause? Thanks.
cheers
Michael
On Aug 21, 2008, at 10:51 PM, Vladimir Ralev wrote:
Are you sure there hasn't been a negative response other than the subsequient 200 OK? May be a full log would show the cause. The new session invalidation in 0.5 tries to remove unused sessions asap, but i dont see how it can invalidate an active session like this. As a workaround you should be able to override this behaviour by doing setInvalidateWhenReady(false) on your sip and app sessions (this mode is similar to the behaviour in 0.4)
On Fri, Aug 22, 2008 at 3:14 AM, Michael Yuan <mic...@michaelyuan.com> wrote:
Folks,
I just upgraded to mobicents 1.2.0 CR1 w/ Sip Servlet 0.5 and my app stopped working ... It was working in Sip Servlet 0.4.1.
What happens is that mobicents invalidates my Sip Session when it receives the 200/OK message back. The flow is like this:
1. I send out an INVITE and gets several 183 responses until the user picks up the phone. The 183 responses are routed correctly.
18:45:05,791 INFO [ResponseDispatcher] route response on following session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/2.0 183 Session Progress
2. Then, the 200/OK comes and the server suddenly decides the invalidate the application session. My SipServlet methods are not executed here.
18:45:09,082 INFO [SipApplicationDispatcherImpl] Dialog Terminated => f898bc4e6851f6c9...@10.251.210.195
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
I attached the log here. As you can see the Sip response right before
the invalidation is simply a 183 response. Without attaching a very
lengthy log, the flow is like this:
1. INVITE
2. 407 Proxy Authentication Required
3. 100 Trying
4. 183 Session in Progress
5. session invalidation
6. 200 OK
Is the 407 an issue here? thanks
cheers
Michael
18:45:05,786 INFO [SIP-Servlet-Tomcat-Server] <message
from="64.251.23.244:5060"
to="10.251.210.195:5080"
time="1219362305786"
isSender="false"
transactionId="z9hg4bk76481606673f62da64458f6ed809ebb7"
callId="f898bc4e6851f6c9...@10.251.210.195"
firstLine="SIP/2.0 183 Session Progress"
>
<![CDATA[SIP/2.0 183 Session Progress^M
Via: SIP/2.0/UDP
10.251.210.195
:
5080
;received
=
75.101.145.243
;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
From: <sip:5731...@sip.future-
nine
.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
To: <sip:15123...@sip.future-nine.com>;tag=as503e3bd2^M
Call-ID: f898bc4e6851f6c9...@10.251.210.195^M
CSeq: 2 INVITE^M
User-Agent: Asterisk PBX^M
Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,SUBSCRIBE,NOTIFY^M
Supported: replaces^M
Contact: <sip:15123...@64.251.23.244>^M
Content-Type: application/sdp^M
Content-Length: 318^M
^M
v=0^M
o=root 2850 2850 IN IP4 64.251.23.244^M
s=session^M
c=IN IP4 64.251.23.244^M
t=0 0^M
m=audio 10806 RTP/AVP 0 18 111 101^M
a=rtpmap:0 PCMU/8000^M
a=rtpmap:18 G729/8000^M
a=fmtp:18 annexb=no^M
a=rtpmap:111 G726-32/8000^M
a=rtpmap:101 telephone-event/8000^M
a=fmtp:101 0-16^M
a=silenceSupp:off - - - -^M
a=ptime:20^M
a=sendrecv^M
]]>
</message>
18:45:05,791 INFO [SipApplicationDispatcherImpl] Response SIP/2.0 183
Session Progress^M
Via: SIP/2.0/UDP
10.251.210.195
:
5080
;received
=
75.101.145.243
;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
From: <sip:5731...@sip.future-
nine
.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
To: <sip:15123...@sip.future-nine.com>;tag=as503e3bd2^M
Call-ID: f898bc4e6851f6c9...@10.251.210.195^M
CSeq: 2 INVITE^M
User-Agent: Asterisk PBX^M
Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,SUBSCRIBE,NOTIFY^M
Supported: replaces^M
Contact: <sip:15123...@64.251.23.244>^M
Content-Type: application/sdp^M
Content-Length: 318^M
^M
v=0^M
o=root 2850 2850 IN IP4 64.251.23.244^M
s=session^M
c=IN IP4 64.251.23.244^M
t=0 0^M
m=audio 10806 RTP/AVP 0 18 111 101^M
a=rtpmap:0 PCMU/8000^M
a=rtpmap:18 G729/8000^M
a=fmtp:18 annexb=no^M
a=rtpmap:111 G726-32/8000^M
a=rtpmap:101 telephone-event/8000^M
a=fmtp:101 0-16^M
a=silenceSupp:off - - - -^M
a=ptime:20^M
a=sendrecv^M
18:45:05,791 INFO [ResponseDispatcher] viaHeader = Via: SIP/2.0/UDP
10.251.210.195
:
5080
;received
=
75.101.145.243
;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
18:45:05,791 INFO [ResponseDispatcher] route response on following
session (sip:5731...@sip.future-nine.com,
3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com
,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/2.0
183 Session Progress^M
Via: SIP/2.0/UDP
10.251.210.195
:
5080
;received
=
75.101.145.243
;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
From: <sip:5731...@sip.future-
nine
.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
To: <sip:15123...@sip.future-nine.com>;tag=as503e3bd2^M
Call-ID: f898bc4e6851f6c9...@10.251.210.195^M
CSeq: 2 INVITE^M
User-Agent: Asterisk PBX^M
Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,SUBSCRIBE,NOTIFY^M
Supported: replaces^M
Contact: <sip:15123...@64.251.23.244>^M
Content-Type: application/sdp^M
Content-Length: 318^M
^M
v=0^M
o=root 2850 2850 IN IP4 64.251.23.244^M
s=session^M
c=IN IP4 64.251.23.244^M
t=0 0^M
m=audio 10806 RTP/AVP 0 18 111 101^M
a=rtpmap:0 PCMU/8000^M
a=rtpmap:18 G729/8000^M
a=fmtp:18 annexb=no^M
a=rtpmap:111 G726-32/8000^M
a=rtpmap:101 telephone-event/8000^M
a=fmtp:101 0-16^M
a=silenceSupp:off - - - -^M
a=ptime:20^M
a=sendrecv^M
to following App/servlet => RingfulSip/ConfCallSipServlet
18:45:09,082 INFO [SipApplicationDispatcherImpl] Dialog Terminated => f898bc4e6851f6c9...@10.251.210.195
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com
,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com
,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com
,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com
,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
Hi Vladimir,
I attached the log here. As you can see the Sip response right before the invalidation is simply a 183 response. Without attaching a very lengthy log, the flow is like this:
1. INVITE
2. 407 Proxy Authentication Required
3. 100 Trying
4. 183 Session in Progress
5. session invalidation
6. 200 OK
Is the 407 an issue here? thanks
cheers
Michael
18:45:05,786 INFO [SIP-Servlet-Tomcat-Server] <message time="1219362305786"firstLine="SIP/2.0 183 Session Progress"
isSender="false"
transactionId="z9hg4bk76481606673f62da64458f6ed809ebb7"
callId="f898bc4e6851f6c9...@10.251.210.195"
>
<![CDATA[SIP/2.0 183 Session Progress^M
Via: SIP/2.0/UDP 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
From: <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
From: <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
18:45:05,791 INFO [ResponseDispatcher] viaHeader = Via: SIP/2.0/UDP 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/2.0 183 Session Progress^M
18:45:05,791 INFO [ResponseDispatcher] route response on following session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
Via: SIP/2.0/UDP 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
From: <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
On Aug 21, 2008, at 11:02 PM, Vladimir Ralev wrote:
Yes, dialog termination triggers the session invalidation.
On Fri, Aug 22, 2008 at 7:00 AM, Michael Yuan <mic...@michaelyuan.com> wrote:
The 183 and 200 responses are right next to each other ... I notice that there is a "Dialog Terminated" message right before the invalidation. That message is also present in 0.4.1. Could that be the cause? Thanks.
cheers
Michael
On Aug 21, 2008, at 10:51 PM, Vladimir Ralev wrote:
Are you sure there hasn't been a negative response other than the subsequient 200 OK? May be a full log would show the cause. The new session invalidation in 0.5 tries to remove unused sessions asap, but i dont see how it can invalidate an active session like this. As a workaround you should be able to override this behaviour by doing setInvalidateWhenReady(false) on your sip and app sessions (this mode is similar to the behaviour in 0.4)
On Fri, Aug 22, 2008 at 3:14 AM, Michael Yuan <mic...@michaelyuan.com> wrote:
Folks,
I just upgraded to mobicents 1.2.0 CR1 w/ Sip Servlet 0.5 and my app stopped working ... It was working in Sip Servlet 0.4.1.
What happens is that mobicents invalidates my Sip Session when it receives the 200/OK message back. The flow is like this:
1. I send out an INVITE and gets several 183 responses until the user picks up the phone. The 183 responses are routed correctly.
18:45:05,791 INFO [ResponseDispatcher] route response on following session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/2.0 183 Session Progress
2. Then, the 200/OK comes and the server suddenly decides the invalidate the application session. My SipServlet methods are not executed here.
18:45:09,082 INFO [SipApplicationDispatcherImpl] Dialog Terminated => f898bc4e6851f6c9...@10.251.210.195
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
SipServletRequest challengeRequest
=response.getSession().createRequest(response.getRequest().getMethod());
challengeRequest.addAuthHeader(response, authInfo);
It is in the same session as the original INVITE. Do I need to create
a new session for this second INVITE?
cheers
Michael
> ;received
> =
> 75.101.145.243
> ;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
> From: <sip:5731...@sip.future-
> nine
> .com
> ;received
> =
> 75.101.145.243
> ;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
> From: <sip:5731...@sip.future-
> nine
> .com
> ;received
> =
> 75.101.145.243
> ;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
> From: <sip:5731...@sip.future-
> nine
> .com
> 18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session
> (sip:5731...@sip.future-nine.com,
> 3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com
> ,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
Via: SIP/2.0/UDP 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
From: <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
Via: SIP/2.0/UDP 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
From: <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
18:45:05,791 INFO [ResponseDispatcher] viaHeader = Via: SIP/2.0/UDP 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
18:45:05,791 INFO [ResponseDispatcher] route response on following session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/2.0 183 Session Progress^M
Via: SIP/2.0/UDP 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
From: <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
On Aug 21, 2008, at 11:02 PM, Vladimir Ralev wrote:
Yes, dialog termination triggers the session invalidation.
On Fri, Aug 22, 2008 at 7:00 AM, Michael Yuan <mic...@michaelyuan.com> wrote:
The 183 and 200 responses are right next to each other ... I notice that there is a "Dialog Terminated" message right before the invalidation. That message is also present in 0.4.1. Could that be the cause? Thanks.
cheers
Michael
On Aug 21, 2008, at 10:51 PM, Vladimir Ralev wrote:
Are you sure there hasn't been a negative response other than the subsequient 200 OK? May be a full log would show the cause. The new session invalidation in 0.5 tries to remove unused sessions asap, but i dont see how it can invalidate an active session like this. As a workaround you should be able to override this behaviour by doing setInvalidateWhenReady(false) on your sip and app sessions (this mode is similar to the behaviour in 0.4)
On Fri, Aug 22, 2008 at 3:14 AM, Michael Yuan <mic...@michaelyuan.com> wrote:
Folks,
I just upgraded to mobicents 1.2.0 CR1 w/ Sip Servlet 0.5 and my app stopped working ... It was working in Sip Servlet 0.4.1.
What happens is that mobicents invalidates my Sip Session when it receives the 200/OK message back. The flow is like this:
1. I send out an INVITE and gets several 183 responses until the user picks up the phone. The 183 responses are routed correctly.
18:45:05,791 INFO [ResponseDispatcher] route response on following session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/2.0 183 Session Progress
2. Then, the 200/OK comes and the server suddenly decides the invalidate the application session. My SipServlet methods are not executed here.
18:45:09,082 INFO [SipApplicationDispatcherImpl] Dialog Terminated => f898bc4e6851f6c9...@10.251.210.195
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
Hmm, the issue with this is that I have a lot attributes in the
session, and would hate to port them all over ...
I will investigate how to put the AuthInfo into the original INVITE
request so that the gateway never comes back with a 407 ...
cheers
Michael
> ;received
> =
> 75.101.145.243
> ;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
> From: <sip:5731...@sip.future-
> nine
> .com
> ;received
> =
> 75.101.145.243
> ;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
> From: <sip:5731...@sip.future-
> nine
> .com
> ;received
> =
> 75.101.145.243
> ;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
> From: <sip:5731...@sip.future-
> nine
> .com
> 18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session
> (sip:5731...@sip.future-nine.com,
> 3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com
> ,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
Via: SIP/2.0/UDP 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
From: <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
Via: SIP/2.0/UDP 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
From: <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
18:45:05,791 INFO [ResponseDispatcher] viaHeader = Via: SIP/2.0/UDP 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
18:45:05,791 INFO [ResponseDispatcher] route response on following session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/2.0 183 Session Progress^M
Via: SIP/2.0/UDP 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
From: <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
On Aug 21, 2008, at 11:02 PM, Vladimir Ralev wrote:
Yes, dialog termination triggers the session invalidation.
On Fri, Aug 22, 2008 at 7:00 AM, Michael Yuan <mic...@michaelyuan.com> wrote:
The 183 and 200 responses are right next to each other ... I notice that there is a "Dialog Terminated" message right before the invalidation. That message is also present in 0.4.1. Could that be the cause? Thanks.
cheers
Michael
On Aug 21, 2008, at 10:51 PM, Vladimir Ralev wrote:
Are you sure there hasn't been a negative response other than the subsequient 200 OK? May be a full log would show the cause. The new session invalidation in 0.5 tries to remove unused sessions asap, but i dont see how it can invalidate an active session like this. As a workaround you should be able to override this behaviour by doing setInvalidateWhenReady(false) on your sip and app sessions (this mode is similar to the behaviour in 0.4)
On Fri, Aug 22, 2008 at 3:14 AM, Michael Yuan <mic...@michaelyuan.com> wrote:
Folks,
I just upgraded to mobicents 1.2.0 CR1 w/ Sip Servlet 0.5 and my app stopped working ... It was working in Sip Servlet 0.4.1.
What happens is that mobicents invalidates my Sip Session when it receives the 200/OK message back. The flow is like this:
1. I send out an INVITE and gets several 183 responses until the user picks up the phone. The 183 responses are routed correctly.
18:45:05,791 INFO [ResponseDispatcher] route response on following session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/2.0 183 Session Progress
2. Then, the 200/OK comes and the server suddenly decides the invalidate the application session. My SipServlet methods are not executed here.
18:45:09,082 INFO [SipApplicationDispatcherImpl] Dialog Terminated => f898bc4e6851f6c9...@10.251.210.195
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
cheers
Michael
> ;received
> =
> 75.101.145.243
> ;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
> From: <sip:5731...@sip.future-
> nine
> .com
> ;received
> =
> 75.101.145.243
> ;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
> From: <sip:5731...@sip.future-
> nine
> .com
> ;received
> =
> 75.101.145.243
> ;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
> From: <sip:5731...@sip.future-
> nine
> .com
> 18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session
> (sip:5731...@sip.future-nine.com,
> 3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com
> ,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
Via: SIP/2.0/UDP 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
From: <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
Via: SIP/2.0/UDP 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
From: <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
18:45:05,791 INFO [ResponseDispatcher] viaHeader = Via: SIP/2.0/UDP 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
18:45:05,791 INFO [ResponseDispatcher] route response on following session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/2.0 183 Session Progress^M
Via: SIP/2.0/UDP 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
From: <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
On Aug 21, 2008, at 11:02 PM, Vladimir Ralev wrote:
Yes, dialog termination triggers the session invalidation.
On Fri, Aug 22, 2008 at 7:00 AM, Michael Yuan <mic...@michaelyuan.com> wrote:
The 183 and 200 responses are right next to each other ... I notice that there is a "Dialog Terminated" message right before the invalidation. That message is also present in 0.4.1. Could that be the cause? Thanks.
cheers
Michael
On Aug 21, 2008, at 10:51 PM, Vladimir Ralev wrote:
Are you sure there hasn't been a negative response other than the subsequient 200 OK? May be a full log would show the cause. The new session invalidation in 0.5 tries to remove unused sessions asap, but i dont see how it can invalidate an active session like this. As a workaround you should be able to override this behaviour by doing setInvalidateWhenReady(false) on your sip and app sessions (this mode is similar to the behaviour in 0.4)
On Fri, Aug 22, 2008 at 3:14 AM, Michael Yuan <mic...@michaelyuan.com> wrote:
Folks,
I just upgraded to mobicents 1.2.0 CR1 w/ Sip Servlet 0.5 and my app stopped working ... It was working in Sip Servlet 0.4.1.
What happens is that mobicents invalidates my Sip Session when it receives the 200/OK message back. The flow is like this:
1. I send out an INVITE and gets several 183 responses until the user picks up the phone. The 183 responses are routed correctly.
18:45:05,791 INFO [ResponseDispatcher] route response on following session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/2.0 183 Session Progress
2. Then, the 200/OK comes and the server suddenly decides the invalidate the application session. My SipServlet methods are not executed here.
18:45:09,082 INFO [SipApplicationDispatcherImpl] Dialog Terminated => f898bc4e6851f6c9...@10.251.210.195
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
// Create app session and request
SipApplicationSession appSession =
sipFactory.createApplicationSession();
SipServletRequest sipreq = sipFactory.createRequest(appSession,
"INVITE", providerAddr.getURI(), callerAddr.getURI());
SipSession session = sipreq.getSession ();
// Set handler servlet for the caller session
session.setHandler("ConnectCallSipServlet");
// Bug #332
session.setInvalidateWhenReady(false);
... ...
sipreq.send ();
10:57:46,750 INFO [SipApplicationDispatcherImpl] Invalidating sip
session (sip:5731...@sip.future-nine.com,
2030641343701261531_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com
,67a8cb144169f32c...@10.251.195.132,RingfulSip) if ready
to invalidate true
Any ideas? Thanks.
cheers
Michael
> ;received
> =
> 75.101.145.243
> ;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
> From: <sip:5731...@sip.future-
> nine
> .com
> ;received
> =
> 75.101.145.243
> ;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
> From: <sip:5731...@sip.future-
> nine
> .com
> ;received
> =
> 75.101.145.243
> ;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
> From: <sip:5731...@sip.future-
> nine
> .com
> 18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session
> (sip:5731...@sip.future-nine.com,
> 3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com
> ,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
Thanks in advance
Best regards
Jean
"setInvalidateWhenReady(boolean flag) - allows applications to
indicate to the container to notify it when the SipSession is in the
ready-to-invalidate state. The container notifies the application
using the SipSessionListener.sessionReadyToInvalidate(SipSessionEvent
se) callback."
And
"If the application does not explicitly invalidate the session in the
callback or has not defined a listener, the container will invalidate
the session. "
So Issue 332 was clearly a blocking bug. However I commited a fix for
it, can you try it out from the trunk or from the nightly builds
http://hudson.jboss.org/hudson/job/MobicentsSipServletsRelease/ and
kindly revert back to us ?
Thanks in advance
Best regards
Jean
>> 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
>> From:
>> <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
>> 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
>> From:
>> <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
>> 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
>>
>>
>> 18:45:05,791 INFO [ResponseDispatcher] route response on following
>> session
>> (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
>> 18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/2.0 183
>> Session Progress^M
>> Via: SIP/2.0/UDP
>> 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
>> From:
>> <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
>> 18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session
>> (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
I tried again with the latest nightly build
(MobicentsSipServletsRelease #49) and I had the following problems:
1. It throws the following exception when I tried to create an ACK
from a 200 response:
java.lang.NullPointerException
at
org
.mobicents
.servlet
.sip
.message.SipServletResponseImpl.createAck(SipServletResponseImpl.java:
152)
at
com
.ringful
.restserver
.callrecord
.CallRecordSipServlet.doSuccessResponse(CallRecordSipServlet.java:102)
====================
2. It then tries to invalidate the current session. But I guess
message shows that the session is not invalidated.
13:00:47,476 INFO [SipApplicationDispatcherImpl] Invalidating sip
session (sip:5731...@sip.future-nine.com,
2794831112133467189_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:18004...@sip.future-nine.com
,a7295a6727daff07...@10.251.107.163,RingfulSip) if ready
to invalidate false
======================
3. But later, it invalidates the app session as well as the SipSession
contained within ...
13:03:39,624 INFO [SipApplicationSessionImpl] Invalidating the
following sip application session (a7295a6727daff07...@10.251.107.163
,RingfulSip)
13:03:39,624 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com
,2794831112133467189_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:18004...@sip.future-nine.com
,a7295a6727daff07...@10.251.107.163,RingfulSip)
13:03:39,624 INFO [SipSessionImpl] Invalidating the sip session (sip:5731...@sip.future-nine.com
,2794831112133467189_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:18004...@sip.future-nine.com
,a7295a6727daff07...@10.251.107.163,RingfulSip)
cheers
Michael
>>>> =RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
>>>> From:
>>>> <sip:5731...@sip.future-
>>>> nine
>>>> .com
>>>> >
>>>> 2.0 183
>>>> Session Progress^M
>>>> Via: SIP/2.0/UDP
>>>> 10.251.210.195
>>>> :
>>>> 5080
>>>> ;received
>>>> =
>>>> 75.101.145.243
>>>> ;appname
>>>> =RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
>>>> From:
>>>> <sip:5731...@sip.future-
>>>> nine
>>>> .com
>>>> >
>>>> 10.251.210.195
>>>> :
>>>> 5080
>>>> ;received
>>>> =
>>>> 75.101.145.243
>>>> ;appname
>>>> =RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
>>>>
>>>>
>>>> 18:45:05,791 INFO [ResponseDispatcher] route response on following
>>>> session
>>>> (sip:5731...@sip.future-nine.com,
>>>> 3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com
>>>> ,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
>>>> 18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/
>>>> 2.0 183
>>>> Session Progress^M
>>>> Via: SIP/2.0/UDP
>>>> 10.251.210.195
>>>> :
>>>> 5080
>>>> ;received
>>>> =
>>>> 75.101.145.243
>>>> ;appname
>>>> =RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
>>>> From:
>>>> <sip:5731...@sip.future-
>>>> nine
>>>> .com
>>>> >
>>>> 18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/
>>>> 2.0 183
>>>> Session Progress
>>>>
>>>>
>>>> 2. Then, the 200/OK comes and the server suddenly decides the
>>>> invalidate
>>>> the application session. My SipServlet methods are not executed
>>>> here.
>>>>
>>>> 18:45:09,082 INFO [SipApplicationDispatcherImpl] Dialog
>>>> Terminated =>
>>>> f898bc4e6851f6c9...@10.251.210.195
>>>> 18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session
>>>> (sip:5731...@sip.future-nine.com,
>>>> 3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com
>>>> ,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
>>>> 18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session
>>>> (sip:5731...@sip.future-nine.com,
>>>> 3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com
>>>> ,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
Can you provide the full log file so that I can try to see what's
going on regarding your related problems ?
In the meanwhile can you check out the related test case I committed
to see if you can reproduce the problem in tweaking it or checking
your use case against it ?
(Test is available at
http://code.google.com/p/mobicents/source/browse/trunk/servers/sip-servlets/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/security/ShootistSipServletAuthTest.java)
Thanks in advance
Best regards
Jean Deruelle
On Mon, Aug 25, 2008 at 7:10 PM, Michael Yuan <mic...@michaelyuan.com> wrote:
>
> Hi Jean,
>
> I tried again with the latest nightly build (MobicentsSipServletsRelease
> #49) and I had the following problems:
>
> 1. It throws the following exception when I tried to create an ACK from a
> 200 response:
>
> java.lang.NullPointerException
> at
> org.mobicents.servlet.sip.message.SipServletResponseImpl.createAck(SipServletResponseImpl.java:152)
> at
> com.ringful.restserver.callrecord.CallRecordSipServlet.doSuccessResponse(CallRecordSipServlet.java:102)
>
> ====================
>
> 2. It then tries to invalidate the current session. But I guess message
> shows that the session is not invalidated.
>
> 13:00:47,476 INFO [SipApplicationDispatcherImpl] Invalidating sip session
> (sip:5731...@sip.future-nine.com,2794831112133467189_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:18004...@sip.future-nine.com,a7295a6727daff07...@10.251.107.163,RingfulSip)
> if ready to invalidate false
>
> ======================
>
> 3. But later, it invalidates the app session as well as the SipSession
> contained within ...
>
> 13:03:39,624 INFO [SipApplicationSessionImpl] Invalidating the following
> sip application session
> (a7295a6727daff07...@10.251.107.163,RingfulSip)
> 13:03:39,624 INFO [SipSessionImpl] Invalidating the sip session
> (sip:5731...@sip.future-nine.com,2794831112133467189_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:18004...@sip.future-nine.com,a7295a6727daff07...@10.251.107.163,RingfulSip)
> 13:03:39,624 INFO [SipSessionImpl] Invalidating the sip session
> (sip:5731...@sip.future-nine.com,2794831112133467189_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:18004...@sip.future-nine.com,a7295a6727daff07...@10.251.107.163,RingfulSip)
>
>
>>>>> 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
>>>>> From:
>>>>>
>>>>> <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
>>>>> 18:45:05,791 INFO [SipApplicationDispatcherImpl] Response SIP/2.0 183
>>>>> Session Progress^M
>>>>> Via: SIP/2.0/UDP
>>>>>
>>>>> 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
>>>>> From:
>>>>>
>>>>> <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
>>>>> 18:45:05,791 INFO [ResponseDispatcher] viaHeader = Via: SIP/2.0/UDP
>>>>>
>>>>> 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
>>>>>
>>>>>
>>>>> 18:45:05,791 INFO [ResponseDispatcher] route response on following
>>>>> session
>>>>>
>>>>> (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
>>>>> 18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/2.0 183
>>>>> Session Progress^M
>>>>> Via: SIP/2.0/UDP
>>>>>
>>>>> 10.251.210.195:5080;received=75.101.145.243;appname=RingfulSip;branch=z9hG4bK76481606673f62da64458f6ed809ebb7^M
>>>>> From:
>>>>>
>>>>> <sip:5731...@sip.future-nine.com>;tag=3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7^M
>>>>> 18:45:05,792 INFO [MessageDispatcher] Dispatching response SIP/2.0 183
>>>>> Session Progress
>>>>>
>>>>>
>>>>> 2. Then, the 200/OK comes and the server suddenly decides the
>>>>> invalidate
>>>>> the application session. My SipServlet methods are not executed here.
>>>>>
>>>>> 18:45:09,082 INFO [SipApplicationDispatcherImpl] Dialog Terminated =>
>>>>> f898bc4e6851f6c9...@10.251.210.195
>>>>> 18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session
>>>>>
>>>>> (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
>>>>> 18:45:09,082 INFO [SipSessionImpl] Invalidating the sip session
>>>>>
>>>>> (sip:5731...@sip.future-nine.com,3768469970740092511_1a3d29c159d40db45c2e73015609b93236c2b7c7,sip:15123...@sip.future-nine.com,f898bc4e6851f6c9...@10.251.210.195,RingfulSip)
Could you retry again with the latest snapshot (should be #51), I
succeeded to reproduce the problem and I committed another fix for it,
should be OK now (famous last words) ?
Thanks in advance
Best regards
Jean
Best regards
Jean Deruelle
Here is the explanation
"The sip sessions are invalidated when the 200 OK to a NOTIFY comes back but
and so when all sip sessions have been invalidated the sip app session is
also invalidated, thus if a NOTIFY comes back after that the sip app
session cannot be found leading to the error described in the following
thread (start to read from narfice's message)
http://groups.google.com/group/mobicents-public/browse_thread/thread/aecd3553e5d9183c/
But from the RFC 3265 :
A subscription is destroyed when a notifier sends a NOTIFY request with a
"Subscription-State" of "terminated". If a subscription's destruction
leaves no other application state associated with the dialog, the dialog
terminates.
which means that sip sessions should keep track of the Subscription-State
and only be invalidated when it is "terminated". Thus the invalidation
process should be ok."