Skip to main content

REFER & NOTIFY

5 replies [Last post]
akshat_prakash
Offline
Joined: 2007-12-20

hi i have made some changes for supporting the REFER and NOTIFY methods

still the proxy is not forwarding the REFEER and NOTIFY requests. i have made the changes on the lines of ACK

here is the patch

Index: examples/call-controller2/src/org/mobicents/slee/examples/callcontrol/forwarding/CallForwardingSbb.java
===================================================================
--- examples/call-controller2/src/org/mobicents/slee/examples/callcontrol/forwarding/CallForwardingSbb.java (revision 472)
+++ examples/call-controller2/src/org/mobicents/slee/examples/callcontrol/forwarding/CallForwardingSbb.java (working copy)
@@ -249,7 +249,19 @@

onNonInviteEvent(event, localAci);
}
+
+ public void onRefer(javax.sip.RequestEvent event,
+ CallForwardingSbbActivityContextInterface localAci) {
+
+ onNonInviteEvent(event, localAci);
+ }

+ public void onNotify(javax.sip.RequestEvent event,
+ CallForwardingSbbActivityContextInterface localAci) {
+
+ onNonInviteEvent(event, localAci);
+ }
+
public void onBye(javax.sip.RequestEvent event,
CallForwardingSbbActivityContextInterface localAci) {

Index: examples/callforwardblock/src/org/mobicents/slee/examples/callforward/CallForwardSbb.java
===================================================================
--- examples/callforwardblock/src/org/mobicents/slee/examples/callforward/CallForwardSbb.java (revision 472)
+++ examples/callforwardblock/src/org/mobicents/slee/examples/callforward/CallForwardSbb.java (working copy)
@@ -197,8 +197,138 @@
log.error(e.getClass().getName() + " handling ACK response", e);
}
}
+
+ /**
+ * REFER event handler for UAS. B2BUA send ACK request to the correct destination.
+ * Uses LocationService to lookup the address of record used in ToHeader.
+ * Note, sbb-jar.xml file set Ack event as initial-event selection based on callIDSelect method.
+ * Therefore an existing SBB should be selected from the pool, thus CMP fields should be available.
+ * @param event ACK RequestEvent to process
+ * @param aci ActivityContextInterface
+ */
+ public void onReferEvent(RequestEvent event, ActivityContextInterface aci) {
+ log.info("Processing onReferEvent");
+ Request request = event.getRequest();
+ ContentTypeHeader ctype = (ContentTypeHeader)request.getHeader(ContentTypeHeader.NAME);
+ if (ctype != null)
+ log.info("content type " + ctype.toString() + " raw data " + request.getRawContent());
+
+ SIPDialog cdialog = (SIPDialog)event.getDialog().getApplicationData();
+ if (cdialog == null) {
+ log.error("Invalid client dialog");
+ return;
+ }
+ ClientTransaction ct = (ClientTransaction)cdialog.getLastTransaction();
+ try {
+// Dialog cdialog = ct.getDialog();
+// Request initialReq = ct.getRequest();
+// log.info("Initial request method " + initialReq.getMethod());
+// CSeqHeader cseq = (CSeqHeader)initialReq.getHeader(CSeqHeader.NAME);
+// log.info("Initial request CSeq " + cseq.getSequenceNumber());
+// Request ackReq = cdialog.createAck(cseq.getSequenceNumber());
+// cdialog.sendAck(ackReq);
+ // Manually create ACK request to send to callee
+ Request inviteReq = ct.getRequest();
+ URI reqUri = inviteReq.getRequestURI();
+ CallIdHeader callIdHdr = (CallIdHeader)inviteReq.getHeader(CallIdHeader.NAME);
+ CSeqHeader cseqHdr = (CSeqHeader)inviteReq.getHeader(CSeqHeader.NAME);
+ cseqHdr.setMethod(Request.REFER);
+ FromHeader fromHdr = (FromHeader)inviteReq.getHeader(FromHeader.NAME);
+ ToHeader toHdr = (ToHeader)inviteReq.getHeader(ToHeader.NAME);
+// toHdr.setTag(session.getCallee().getToTag()); // set to tag
+ ArrayList viaHeaderList = new ArrayList();
+ viaHeaderList.add(buildViaHeader());
+ MaxForwardsHeader maxFwdHdr = hdrFactory.createMaxForwardsHeader(70);
+ Request referReq = null;
+ if (ctype == null)
+ referReq = msgFactory.createRequest(reqUri, Request.REFER, callIdHdr, cseqHdr,
+ fromHdr, toHdr, viaHeaderList, maxFwdHdr);
+ else
+ referReq = msgFactory.createRequest(reqUri, Request.REFER, callIdHdr, cseqHdr,
+ fromHdr, toHdr, viaHeaderList, maxFwdHdr, ctype, request.getRawContent());
+ ClientTransaction ackTx = sipProvider.getNewClientTransaction(referReq);
+
+ // attach ACI
+ ActivityContextInterface ctAci = activityContextInterfaceFactory.getActivityContextInterface(ackTx);
+ ctAci.attach(sbbContext.getSbbLocalObject());
+ ackTx.sendRequest();
+
+ // fire CallForwardSuccess event
+ log.info("Firing CallForwardSuccessEvent");
+ CallForwardSuccessEvent success = new CallForwardSuccessEvent();
+ ActivityContextInterface controllerACI = acNamingFacility.lookup(CONTROLLER_ACTIVITY_CONTEXT_NAME);
+ fireCallForwardSuccessEvent(success, controllerACI, null);
+ } catch (Exception e) {
+ log.error(e.getClass().getName() + " handling REFER response", e);
+ }
+ }

/**
+ * NOTIFY event handler for UAS. B2BUA send ACK request to the correct destination.
+ * Uses LocationService to lookup the address of record used in ToHeader.
+ * Note, sbb-jar.xml file set Ack event as initial-event selection based on callIDSelect method.
+ * Therefore an existing SBB should be selected from the pool, thus CMP fields should be available.
+ * @param event ACK RequestEvent to process
+ * @param aci ActivityContextInterface
+ */
+ public void onNotifyEvent(RequestEvent event, ActivityContextInterface aci) {
+ log.info("Processing onNotifyEvent");
+ Request request = event.getRequest();
+ ContentTypeHeader ctype = (ContentTypeHeader)request.getHeader(ContentTypeHeader.NAME);
+ if (ctype != null)
+ log.info("content type " + ctype.toString() + " raw data " + request.getRawContent());
+
+ SIPDialog cdialog = (SIPDialog)event.getDialog().getApplicationData();
+ if (cdialog == null) {
+ log.error("Invalid client dialog");
+ return;
+ }
+ ClientTransaction ct = (ClientTransaction)cdialog.getLastTransaction();
+ try {
+// Dialog cdialog = ct.getDialog();
+// Request initialReq = ct.getRequest();
+// log.info("Initial request method " + initialReq.getMethod());
+// CSeqHeader cseq = (CSeqHeader)initialReq.getHeader(CSeqHeader.NAME);
+// log.info("Initial request CSeq " + cseq.getSequenceNumber());
+// Request ackReq = cdialog.createAck(cseq.getSequenceNumber());
+// cdialog.sendAck(ackReq);
+ // Manually create ACK request to send to callee
+ Request inviteReq = ct.getRequest();
+ URI reqUri = inviteReq.getRequestURI();
+ CallIdHeader callIdHdr = (CallIdHeader)inviteReq.getHeader(CallIdHeader.NAME);
+ CSeqHeader cseqHdr = (CSeqHeader)inviteReq.getHeader(CSeqHeader.NAME);
+ cseqHdr.setMethod(Request.NOTIFY);
+ FromHeader fromHdr = (FromHeader)inviteReq.getHeader(FromHeader.NAME);
+ ToHeader toHdr = (ToHeader)inviteReq.getHeader(ToHeader.NAME);
+// toHdr.setTag(session.getCallee().getToTag()); // set to tag
+ ArrayList viaHeaderList = new ArrayList();
+ viaHeaderList.add(buildViaHeader());
+ MaxForwardsHeader maxFwdHdr = hdrFactory.createMaxForwardsHeader(70);
+ Request notifyReq = null;
+ if (ctype == null)
+ notifyReq = msgFactory.createRequest(reqUri, Request.NOTIFY, callIdHdr, cseqHdr,
+ fromHdr, toHdr, viaHeaderList, maxFwdHdr);
+ else
+ notifyReq = msgFactory.createRequest(reqUri, Request.NOTIFY, callIdHdr, cseqHdr,
+ fromHdr, toHdr, viaHeaderList, maxFwdHdr, ctype, request.getRawContent());
+ ClientTransaction ackTx = sipProvider.getNewClientTransaction(notifyReq);
+
+ // attach ACI
+ ActivityContextInterface ctAci = activityContextInterfaceFactory.getActivityContextInterface(ackTx);
+ ctAci.attach(sbbContext.getSbbLocalObject());
+ ackTx.sendRequest();
+
+ // fire CallForwardSuccess event
+ log.info("Firing CallForwardSuccessEvent");
+ CallForwardSuccessEvent success = new CallForwardSuccessEvent();
+ ActivityContextInterface controllerACI = acNamingFacility.lookup(CONTROLLER_ACTIVITY_CONTEXT_NAME);
+ fireCallForwardSuccessEvent(success, controllerACI, null);
+ } catch (Exception e) {
+ log.error(e.getClass().getName() + " handling NOTIFY response", e);
+ }
+ }
+
+ /**
* BYE event handler.
* Fires a ByeReqEvent on activitycontext. The ByeSbb should receive the event for processing
* @param event RequestEvent generated from SIPRA
Index: examples/callforwardblock/src/org/mobicents/slee/examples/callforwardblock/controller/ControllerSbb.java
===================================================================
--- examples/callforwardblock/src/org/mobicents/slee/examples/callforwardblock/controller/ControllerSbb.java (revision 472)
+++ examples/callforwardblock/src/org/mobicents/slee/examples/callforwardblock/controller/ControllerSbb.java (working copy)
@@ -125,6 +125,26 @@
}
}

+ public void onReferEvent(RequestEvent event, ActivityContextInterface aci) {
+ if (event.getDialog() != null) {
+ log.info("ControllerSbb REFER received, proxying event to CallForwardSbb");
+ proxyEventToChildSbb(aci, getCallForwardSbbChild());
+ } else {
+ log.info("ReferEvent does not support dialog, proxying event to child ProxySBB");
+ proxyEventToChildSbb(aci, getProxySbbChild());
+ }
+ }
+
+ public void onNotifyEvent(RequestEvent event, ActivityContextInterface aci) {
+ if (event.getDialog() != null) {
+ log.info("ControllerSbb NOTIFY received, proxying event to CallForwardSbb");
+ proxyEventToChildSbb(aci, getCallForwardSbbChild());
+ } else {
+ log.info("NotifyEvent does not support dialog, proxying event to child ProxySBB");
+ proxyEventToChildSbb(aci, getProxySbbChild());
+ }
+ }
+
public void onByeEvent(RequestEvent event, ActivityContextInterface aci) {
if (event.getDialog() != null) {
log.info("Proxying ByeEvent to child ByeSBB");
Index: resources/sipra/sip-services/src/org/mobicents/slee/services/sip/proxy/ProxySbb.java
===================================================================
--- resources/sipra/sip-services/src/org/mobicents/slee/services/sip/proxy/ProxySbb.java (revision 472)
+++ resources/sipra/sip-services/src/org/mobicents/slee/services/sip/proxy/ProxySbb.java (working copy)
@@ -567,7 +567,43 @@
}

}
+
+ public void onReferEvent(RequestEvent event, ActivityContextInterface ac) {
+ // getDefaultSbbUsageParameterSet().incrementNumberOfAck(1);
+ if(logger.isLoggable(Level.FINER))
+ logger.log(Level.FINER, "Received REFER request");
+ //logger.info("[PROXY onReferEvent] \n"+event.getRequest());
+
+ try {

+ Request request = event.getRequest();
+ ServerTransaction serverTransaction = event.getServerTransaction();
+ processRequest(serverTransaction, request, ac);
+ // this.setTimeStarted(System.currentTimeMillis());
+ } catch (Exception e) {
+ logger.log(Level.WARNING, "Exception during onReferEvent", e);
+ }
+
+ }
+
+ public void onNotifyEvent(RequestEvent event, ActivityContextInterface ac) {
+ // getDefaultSbbUsageParameterSet().incrementNumberOfAck(1);
+ if(logger.isLoggable(Level.FINER))
+ logger.log(Level.FINER, "Received NOTIFY request");
+ //logger.info("[PROXY onNotifyEvent] \n"+event.getRequest());
+
+ try {
+
+ Request request = event.getRequest();
+ ServerTransaction serverTransaction = event.getServerTransaction();
+ processRequest(serverTransaction, request, ac);
+ // this.setTimeStarted(System.currentTimeMillis());
+ } catch (Exception e) {
+ logger.log(Level.WARNING, "Exception during onNotifyEvent", e);
+ }
+
+ }
+
public void onMessageEvent(RequestEvent event, ActivityContextInterface ac) {
// getDefaultSbbUsageParameterSet().incrementNumberOfMessage(1);
if(logger.isLoggable(Level.FINER))

Message was edited by: akshat_prakash

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
akshat_prakash
Offline
Joined: 2007-12-20

i am unable to add the complete patch here, how can i send u the patch which supports call transfer

abhayani
Offline
Joined: 2005-04-04

Try subscribing to mobicents-public@googlegroups.com and send mail with attachment.

akshat_prakash
Offline
Joined: 2007-12-20

i have put methods for REFER and NOTIFY now i try to install the cc2 example on mobicents beta1 it shows the following error while deployment

================SIP METHODS====================
[REFER, INVITE, PRACK, NOTIFY, UPDATE, MESSAGE, SUBSCRIBE, BYE, ACK, REGISTER, INFO, OPTIONS, PUBLISH, CANCEL]
===============================================
2008-03-27 14:38:33,104 INFO [org.mobicents.slee.container.management.jmx.ResourceManagementMBeanImpl] Created RA Entity. Id: ResourceAdaptorID[JainSipResourceAdaptor#net.java.slee.sip#1.2], name: SipRA, properties: {}
2008-03-27 14:38:33,104 INFO [org.mobicents.slee.resource.sip.SipResourceAdaptor] Trying to bind to BHR-PC0893/172.19.98.221:5060
2008-03-27 14:38:33,104 INFO [org.mobicents.slee.resource.sip.SipResourceAdaptor] RA bound to 5060
2008-03-27 14:38:36,070 INFO [org.mobicents.slee.resource.sip.mbean.SipRaConfiguration] Exposing RA configuration as MBean
2008-03-27 14:38:36,070 INFO [org.mobicents.slee.resource.sip.mbean.SipRaConfiguration] RA Configuration exposed
2008-03-27 14:38:36,070 INFO [org.mobicents.slee.container.management.jmx.ResourceManagementMBeanImpl] Activated RA Entity SipRA
2008-03-27 14:38:36,086 INFO [org.mobicents.slee.container.management.jmx.ResourceManagementMBeanImpl] Created Link between RA Entity SipRA and Name SipRA
2008-03-27 14:38:36,416 INFO [org.mobicents.slee.container.management.jmx.DeploymentMBeanImpl] Installing DU with URL file:/D:/workspace/mobicents-read-only/examples/lib/sipservices/proxyservice.jar
2008-03-27 14:38:37,844 INFO [org.mobicents.slee.container.SleeContainer] Installed SBB SbbID[LocationCacheSbb#mobicents#1.1]
2008-03-27 14:38:37,891 INFO [org.mobicents.slee.container.SleeContainer] Installed SBB SbbID[SipRegistrarSbb#mobicents#1.1]
[b]2008-03-27 14:38:37,907 ERROR [org.mobicents.slee.container.deployment.SbbVerifier] no methods to check against onNotifyEvent
2008-03-27 14:38:37,907 ERROR [org.mobicents.slee.container.deployment.SbbVerifier] EventHandler Methods were not successfully verified
2008-03-27 14:38:37,907 ERROR [org.mobicents.slee.container.SleeContainer] Exception caught while installing component
javax.slee.management.DeploymentException: Verification error in SBB ProxySbb
at org.mobicents.slee.container.deployment.SbbDeployer.deploySbb(Unknown Source)
at org.mobicents.slee.container.SleeContainer.installSbb(Unknown Source)
at org.mobicents.slee.container.SleeContainer.install(Unknown Source)
at org.mobicents.slee.container.component.deployment.AbstractComponentDeployer.deployAndInstall(Unknown Source)
at org.mobicents.slee.container.component.deployment.DeployableUnitDeployer.loadDeployedComponents(Unknown Source)
at org.mobicents.slee.container.component.deployment.DeployableUnitDeployer.loadDeployment(Unknown Source)
at org.mobicents.slee.container.component.deployment.DeployableUnitDeployer.deployUnitContent(Unknown Source)
at org.mobicents.slee.container.component.deployment.DeployableUnitDeployer.deploy(Unknown Source)
at org.mobicents.slee.container.component.deployment.DeploymentManager.deployUnit(Unknown Source)
at org.mobicents.slee.container.management.jmx.DeploymentMBeanImpl.install(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
at javax.management.StandardMBean.invoke(StandardMBean.java:391)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
2008-03-27 14:38:38,017 ERROR [STDERR] javax.slee.management.DeploymentException: Verification error in SBB ProxySbb
2008-03-27 14:38:38,017 ERROR [STDERR] at org.mobicents.slee.container.deployment.SbbDeployer.deploySbb(Unknown Source)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.mobicents.slee.container.SleeContainer.installSbb(Unknown Source)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.mobicents.slee.container.SleeContainer.install(Unknown Source)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.mobicents.slee.container.component.deployment.AbstractComponentDeployer.deployAndInstall(Unknown Source)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.mobicents.slee.container.component.deployment.DeployableUnitDeployer.loadDeployedComponents(Unknown Source)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.mobicents.slee.container.component.deployment.DeployableUnitDeployer.loadDeployment(Unknown Source)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.mobicents.slee.container.component.deployment.DeployableUnitDeployer.deployUnitContent(Unknown Source)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.mobicents.slee.container.component.deployment.DeployableUnitDeployer.deploy(Unknown Source)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.mobicents.slee.container.component.deployment.DeploymentManager.deployUnit(Unknown Source)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.mobicents.slee.container.management.jmx.DeploymentMBeanImpl.install(Unknown Source)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2008-03-27 14:38:38,032 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2008-03-27 14:38:38,032 ERROR [STDERR] at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
2008-03-27 14:38:38,032 ERROR [STDERR] at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
2008-03-27 14:38:38,032 ERROR [STDERR] at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
2008-03-27 14:38:38,032 ERROR [STDERR] at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
2008-03-27 14:38:38,032 ERROR [STDERR] at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
2008-03-27 14:38:38,032 ERROR [STDERR] at javax.management.StandardMBean.invoke(StandardMBean.java:391)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2008-03-27 14:38:38,032 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2008-03-27 14:38:38,032 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2008-03-27 14:38:38,032 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
2008-03-27 14:38:38,032 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2008-03-27 14:38:38,032 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Transport.java:159)
2008-03-27 14:38:38,032 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
2008-03-27 14:38:38,032 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
2008-03-27 14:38:38,032 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
2008-03-27 14:38:38,032 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
2008-03-27 14:38:38,032 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
2008-03-27 14:39:07,948 INFO [org.mobicents.slee.container.management.jmx.DeploymentMBeanImpl] Installing DU with URL file:/D:/workspace/mobicents-read-only/examples/lib/mscra/media-ratype-DU.jar
2008-03-27 14:39:12,029 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.EndMediaStream#org.mobicents.media#1.0
2008-03-27 14:39:12,044 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.DTMF#org.mobicents.media#1.0
2008-03-27 14:39:12,044 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.SessionResult#org.mobicents.media#1.0
2008-03-27 14:39:12,044 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.SESSION_CREATED#org.mobicents.media#1.0
2008-03-27 14:39:12,044 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.SESSION_ACTIVE#org.mobicents.media#1.0
2008-03-27 14:39:12,060 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.SESSION_INVALID#org.mobicents.media#1.0
2008-03-27 14:39:12,060 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.CONNECTION_CREATED#org.mobicents.media#1.0
2008-03-27 14:39:12,060 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.CONNECTION_MODIFIED#org.mobicents.media#1.0
2008-03-27 14:39:12,060 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.CONNECTION_DELETED#org.mobicents.media#1.0
2008-03-27 14:39:12,076 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.CONNECTION_TX_FAILED#org.mobicents.media#1.0
2008-03-27 14:39:12,076 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.JOIN_COMPLETE#org.mobicents.media#1.0
2008-03-27 14:39:12,076 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.JOIN_FAIL#org.mobicents.media#1.0
2008-03-27 14:39:12,076 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.LINK_DROPPED#org.mobicents.media#1.0
2008-03-27 14:39:12,091 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.announcement.PLAY#org.mobicents.media#1.0
2008-03-27 14:39:12,091 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.announcement.COMPLETE#org.mobicents.media#1.0
2008-03-27 14:39:12,091 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.announcement.FAILED#org.mobicents.media#1.0
2008-03-27 14:39:12,091 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.dtmf.DTMF#org.mobicents.media#1.0
2008-03-27 14:39:12,107 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.au.PLAY#org.mobicents.media#1.0
2008-03-27 14:39:12,107 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.au.PLAY_RECORD#org.mobicents.media#1.0
2008-03-27 14:39:12,107 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.au.COMPLETE#org.mobicents.media#1.0
2008-03-27 14:39:12,107 INFO [org.mobicents.slee.container.SleeContainer] Installed event org.mobicents.slee.media.au.FAILED#org.mobicents.media#1.0
2008-03-27 14:39:12,107 INFO [org.mobicents.slee.container.deployment.RaTypeDeployer] Added RA Type with id ResourceAdaptorTypeID[media_ratype#org.mobicents.media#1.0]
2008-03-27 14:39:12,123 INFO [org.mobicents.slee.container.management.jmx.DeploymentMBeanImpl] Deployable unit with URL file:/D:/workspace/mobicents-read-only/examples/lib/mscra/media-ratype-DU.jar deployed as DeployableUnitID[3]
2008-03-27 14:39:12,170 INFO [org.mobicents.slee.container.management.jmx.DeploymentMBeanImpl] Installing DU with URL file:/D:/workspace/mobicents-read-only/examples/lib/mscra/media-ra-DU.jar
2008-03-27 14:39:12,233 INFO [org.mobicents.slee.container.SleeContainer] Installed RA ResourceAdaptorID[MediaResourceAdaptor#org.mobicents#1.0]
2008-03-27 14:39:12,233 INFO [org.mobicents.slee.container.management.jmx.DeploymentMBeanImpl] Deployable unit with URL file:/D:/workspace/mobicents-read-only/examples/lib/mscra/media-ra-DU.jar deployed as DeployableUnitID[4]
2008-03-27 14:39:12,264 INFO [org.mobicents.slee.container.management.jmx.ResourceManagementMBeanImpl] Created RA Entity. Id: ResourceAdaptorID[MediaResourceAdaptor#org.mobicents#1.0], name: LocalMs, properties: null
2008-03-27 14:39:12,280 INFO [org.mobicents.slee.container.management.jmx.ResourceManagementMBeanImpl] Activated RA Entity LocalMs
2008-03-27 14:39:12,295 INFO [org.mobicents.slee.container.management.jmx.ResourceManagementMBeanImpl] Created Link between RA Entity LocalMs and Name LocalMs
2008-03-27 14:39:43,310 INFO [org.mobicents.slee.container.management.jmx.DeploymentMBeanImpl] Installing DU with URL file:/D:/workspace/mobicents-read-only/examples/call-controller2/jars/CallControl-DU.jar
2008-03-27 14:39:44,958 INFO [org.mobicents.slee.container.SleeContainer] Installed Profile ProfileSpecificationID[CallControlProfileCMP#org.mobicents#0.1]
2008-03-27 14:39:45,429 INFO [org.mobicents.slee.container.SleeContainer] Installed SBB SbbID[CallBlockingSbb#org.mobicents#0.1]
2008-03-27 14:39:45,507 INFO [org.mobicents.slee.container.SleeContainer] Installed SBB SbbID[CallForwardingSbb#org.mobicents#0.1]
2008-03-27 14:39:46,716 INFO [org.mobicents.slee.container.SleeContainer] Installed SBB SbbID[VoiceMailSbb#org.mobicents#0.1]
2008-03-27 14:39:46,857 INFO [org.mobicents.slee.container.SleeContainer] Installed Service ServiceID[CallBlockingService#org.mobicents#0.1]. Root SBB is SbbID[CallBlockingSbb#org.mobicents#0.1]
2008-03-27 14:39:46,857 ERROR [org.mobicents.slee.container.SleeContainer] Exception caught while installing component
java.lang.Exception: Could not find SBB Component: SbbID[ProxySbb#mobicents#1.1]
at org.mobicents.slee.container.service.ServiceComponent.enumerateSbbs(Unknown Source)
at org.mobicents.slee.container.service.ServiceComponent.enumerateSbbs(Unknown Source)
at org.mobicents.slee.container.service.ServiceComponent.(Unknown Source)
at org.mobicents.slee.container.SleeContainer.installService(Unknown Source)
at org.mobicents.slee.container.SleeContainer.install(Unknown Source)
at org.mobicents.slee.container.component.deployment.ServiceDeployer.deployAndInstall(Unknown Source)
at org.mobicents.slee.container.component.deployment.DeployableUnitDeployer.loadDeployedComponents(Unknown Source)
at org.mobicents.slee.container.component.deployment.DeployableUnitDeployer.loadDeployment(Unknown Source)
at org.mobicents.slee.container.component.deployment.DeployableUnitDeployer.deployUnitContent(Unknown Source)
at org.mobicents.slee.container.component.deployment.DeployableUnitDeployer.deploy(Unknown Source)
at org.mobicents.slee.container.component.deployment.DeploymentManager.deployUnit(Unknown Source)
at org.mobicents.slee.container.management.jmx.DeploymentMBeanImpl.install(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
at javax.management.StandardMBean.invoke(StandardMBean.java:391)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
2008-03-27 14:39:46,920 INFO [org.mobicents.slee.container.SleeContainer] Uninstalled service ServiceID[CallBlockingService#org.mobicents#0.1]

[/b]

what could i be missing...

alexandrem
Offline
Joined: 2005-10-19

Hi,

You're probably missing the entry in the SBB descriptor defining the event reception. Look at sipproxy-sbb-jar.xml and you should add something like this:

[b]
NotifyEvent

javax.sip.message.Request.NOTIFY
javax.sip
1.1

callIDSelect
[/b]

You'll need to do the same for the REFER event and for every SBB capable of receiving this events.

Regards,
Alexandre Mendonça

akshat_prakash
Offline
Joined: 2007-12-20


ReferEvent


javax.sip.message.Request.REFER

javax.sip
1.1


callIDSelect


NotifyEvent


javax.sip.message.Request.NOTIFY

javax.sip
1.1


callIDSelect

i have these in sipproxy-sbb-jar.xml
still i am getting Verification error in SBB ProxySbb messages
:(