Sip Servlet setAttribute mobicent -


i'm facing on problem set attribute of sip servlet. i'm trying send 200 ok , when receive 200 ok different source. i've thought in way:

protected void doinvite(sipservletrequest req) throws servletexception, ioexception {     //...     sipsession session = req.getsession();     sipservletresponse response = req.createresponse(200);     session.setattribute("reqresponse", response);     /... } 

and so, when receive 200 ok other side:

protected void dosuccessresponse(sipservletresponse resp)     //...     throws servletexception, ioexception {     sipservletresponse response = (sipservletresponse) session.getattribute("reqresponse");             response.send();     //....     } 

but when try response.send() have error:

[0m[31m09:25:15,956 error [org.mobicents.servlet.sip.core.dispatchers.dispatchtask] (mobicents-sip-servlets-udpmessagechannelthread-10) unexpected exception while processing message sip/2.0 200 ok via: sip/2.0/udp localhost:5080;received=127.0.0.1;branch=z9hg4bka76ae813-561c-40ec-90b3-0cb29839c16f_d9d5d8b1_b843c7c0-2c76-4a9a-87e2-3fd9959601ea from: "x-lite" <sip:user2@127.0.0.1>;tag=15858376_d7e7552a_d9d5d8b1_a76ae813-561c-40ec-90b3-0cb29839c16f to: <sip:user1@127.0.0.1:5061>;tag=qgnecuk call-id: 31ad484919b40e2a20d2ef2d28468f8d@127.0.0.1 cseq: 1 invite user-agent: linphone/3.8.5 (belle-sip/1.4.1) supported: outbound allow: invite,ack,cancel,options,bye,refer,notify,message,subscribe,info,update contact: <sip:user1@127.0.0.1:5061>;+sip.instance="<urn:uuid:2fc1acc8-38e5-420e-981e-70d1c82d961f>" content-type: application/sdp content-length: 398  v=0 o=user1 3189 2578 in ip4 10.1.2.214 s=talk c=in ip4 10.1.2.214 t=0 0 m=audio 7078 rtp/avpf 96 0 a=rtpmap:96 opus/48000/2 a=fmtp:96 useinbandfec=1; stereo=0; sprop-stereo=0 a=rtcp-fb:* trr-int 5000 m=video 9078 rtp/avpf 102 103 a=rtpmap:102 vp8/90000 a=rtpmap:103 h264/90000 a=fmtp:103 profile-level-id=42801f a=rtcp-fb:* trr-int 5000 a=rtcp-fb:102 ccm fir a=rtcp-fb:103 ccm fir : org.mobicents.servlet.sip.core.dispatcherexception: unexpected exception while processing response : sip/2.0 200 ok via: sip/2.0/udp localhost:5080;received=127.0.0.1;branch=z9hg4bka76ae813-561c-40ec-90b3-0cb29839c16f_d9d5d8b1_b843c7c0-2c76-4a9a-87e2-3fd9959601ea from: "x-lite" <sip:user2@127.0.0.1>;tag=15858376_d7e7552a_d9d5d8b1_a76ae813-561c-40ec-90b3-0cb29839c16f to: <sip:user1@127.0.0.1:5061>;tag=qgnecuk call-id: 31ad484919b40e2a20d2ef2d28468f8d@127.0.0.1 cseq: 1 invite user-agent: linphone/3.8.5 (belle-sip/1.4.1) supported: outbound allow: invite,ack,cancel,options,bye,refer,notify,message,subscribe,info,update contact: <sip:user1@127.0.0.1:5061>;+sip.instance="<urn:uuid:2fc1acc8-38e5-420e-981e-70d1c82d961f>" content-type: application/sdp content-length: 398  v=0 o=user1 3189 2578 in ip4 10.1.2.214 s=talk c=in ip4 10.1.2.214 t=0 0 m=audio 7078 rtp/avpf 96 0 a=rtpmap:96 opus/48000/2 a=fmtp:96 useinbandfec=1; stereo=0; sprop-stereo=0 a=rtcp-fb:* trr-int 5000 m=video 9078 rtp/avpf 102 103 a=rtpmap:102 vp8/90000 a=rtpmap:103 h264/90000 a=fmtp:103 profile-level-id=42801f a=rtcp-fb:* trr-int 5000 a=rtcp-fb:102 ccm fir a=rtcp-fb:103 ccm fir      @ org.mobicents.servlet.sip.core.dispatchers.responsedispatcher$1.dispatch(responsedispatcher.java:491) [sip-servlets-impl-3.0.564.jar:3.0.564]     @ org.mobicents.servlet.sip.core.dispatchers.dispatchtask.dispatchandhandleexceptions(dispatchtask.java:61) [sip-servlets-impl-3.0.564.jar:3.0.564]     @ org.mobicents.servlet.sip.core.dispatchers.responsedispatcher.dispatchmessage(responsedispatcher.java:512) [sip-servlets-impl-3.0.564.jar:3.0.564]     @ org.mobicents.servlet.sip.core.sipapplicationdispatcherimpl.processresponse(sipapplicationdispatcherimpl.java:1005) [sip-servlets-impl-3.0.564.jar:3.0.564]     @ gov.nist.javax.sip.eventscanner.deliverevent(eventscanner.java:296) [jain-sip-ri-1.2.228.jar:1.2.228]     @ gov.nist.javax.sip.sipproviderimpl.handleevent(sipproviderimpl.java:185) [jain-sip-ri-1.2.228.jar:1.2.228]     @ gov.nist.javax.sip.dialogfilter.processresponse(dialogfilter.java:1501) [jain-sip-ri-1.2.228.jar:1.2.228]     @ gov.nist.javax.sip.stack.sipclienttransactionimpl.inviteclienttransaction(sipclienttransactionimpl.java:896) [jain-sip-ri-1.2.228.jar:1.2.228]     @ gov.nist.javax.sip.stack.sipclienttransactionimpl.processresponse(sipclienttransactionimpl.java:532) [jain-sip-ri-1.2.228.jar:1.2.228]     @ gov.nist.javax.sip.stack.sipclienttransactionimpl.processresponse(sipclienttransactionimpl.java:1604) [jain-sip-ri-1.2.228.jar:1.2.228]     @ gov.nist.javax.sip.stack.udpmessagechannel.processmessage(udpmessagechannel.java:603) [jain-sip-ri-1.2.228.jar:1.2.228]     @ gov.nist.javax.sip.stack.udpmessagechannel.processincomingdatapacket(udpmessagechannel.java:512) [jain-sip-ri-1.2.228.jar:1.2.228]     @ gov.nist.javax.sip.stack.udpmessagechannel.run(udpmessagechannel.java:317) [jain-sip-ri-1.2.228.jar:1.2.228]     @ java.lang.thread.run(thread.java:745) [rt.jar:1.7.0_79] caused by: java.lang.nullpointerexception     @ org.mobicents.servlet.sip.example.simplesipservlet.dosuccessresponse(simplesipservlet.java:151)     @ javax.servlet.sip.sipservlet.doresponse(sipservlet.java:274) [sip-servlets-spec-3.0.564.jar:3.0.564]     @ org.mobicents.servlet.sip.example.simplesipservlet.doresponse(simplesipservlet.java:195)     @ javax.servlet.sip.sipservlet.service(sipservlet.java:334) [sip-servlets-spec-3.0.564.jar:3.0.564]     @ org.mobicents.servlet.sip.core.dispatchers.messagedispatcher.callservlet(messagedispatcher.java:458) [sip-servlets-impl-3.0.564.jar:3.0.564]     @ org.mobicents.servlet.sip.core.dispatchers.responsedispatcher$1.dispatch(responsedispatcher.java:479) [sip-servlets-impl-3.0.564.jar:3.0.564]     ... 13 more 

can me understand error? note: i've tried print in log 200 ok message , seems there isn't errors, got correctly! thank help!


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -