Author Message
dkalinasch
Joined: May 16, 2019
Messages: 35
Offline
Hello,

i have created a snapin via the maven archtype "com.avaya.zephyr.sdk:service-archtype".
I did not change any of the generated code.

I provided a class that should log incoming sip messages. If i install this service in breeze as "intercept service", i receive the message that the call is intercepted (snapin is triggered by breeze), but the Sip Message Listener does not log any message.

The logfile contains the message, that the sip message listener is not provided.

What could be the cause, that the sip message listener is not provided.

Listener code:

@IncomingMessageListener
public class IncomingSipMessageListenerImpl implements IncomingSipMessageListener {

Logger logger = Logger.getLogger(IncomingSipMessageListenerImpl.class);

@Override
public void requestReceived(SipRequest sipRequest, Map<String, Object> map) {
logger.info("requestReceived");
Iterator<String> headerNameIterator = sipRequest.getHeaderNames();
while (headerNameIterator.hasNext()) {
String headerName = headerNameIterator.next();
ListIterator<String> headerValue = sipRequest.getHeaders(headerName);
if(headerValue.hasNext()) {
String value = headerValue.next();
logger.info(format("Show request header %s: %s", headerName, value));
}
}
}

@Override
public void responseReceived(SipResponse sipResponse, Map<String, Object> map) {
logger.info("responseReceived");

Iterator<String> headerNameIterator = sipResponse.getHeaderNames();
while (headerNameIterator.hasNext()) {
String headerName = headerNameIterator.next();
ListIterator<String> headerValue = sipResponse.getHeaders(headerName);
if(headerValue.hasNext()) {
String value = headerValue.next();
logger.info(format("Show response header %s: %s", headerName, value));
}
}
}
}


Logfile:

2022-03-30 11:35:59,286 [SoapConnectorThreadPool : 1610] SessionTracker FINEST - TheSipMessageListener is not provided
2022-03-30 11:35:59,286 [SoapConnectorThreadPool : 1610] SessionTracker FINEST - IncomingMessageListener is not provided
2022-03-30 11:35:59,286 [SoapConnectorThreadPool : 1610] SessionTracker FINEST - OutgoingMessageListener is not provided
2022-03-30 11:35:59,286 [SoapConnectorThreadPool : 1610] SessionTracker FINEST - findListeners CallReconstructionListener is not provided
2022-03-30 11:35:59,286 [SoapConnectorThreadPool : 1610] SessionTracker FINENo CallListener from properties.xml. Procced with scanning
2022-03-30 11:35:59,288 [SoapConnectorThreadPool : 1610] SessionTracker INFO- Listener class "..MyCallListener" found with annotation "TheCallListener" and implementation of "CallListener"
2022-03-30 11:55:02,777 [SipContainerPool : 2] SessionTracker INFO - Entered callIntercepted.
2022-03-30 13:11:51,658 [SipContainerPool : 4] SessionTracker INFO - Entered callIntercepted.


properties.xml

<?xml version="1.0" encoding="UTF-8"?>
<service xmlns="http://archiveschemas.aus.avaya.com/properties"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://archiveschemas.aus.avaya.com/properties properties.xsd"
name="${serviceName}" version="${serviceVersion}" application="${serviceName}-${serviceVersion}">
<smgr>
<description>SessionTracker</description>
<orig_order>1</orig_order>
<orig_group>1</orig_group>
<term_order>1</term_order>
<term_group>1</term_group>
<fs_component>true</fs_component>
</smgr>
</service>
Go to:   
Mobile view