Author Message
liu159
Joined: Jan 19, 2015
Messages: 96
Offline
Hi,

I migrated my code from 3.0 to 3.1.1.

However, I find that after call.initiate(), when the phone rings, it doesn't go to MyCallListener.

In the previous version of 3.0, when the phone rings, I will play an announcement and have all those logs showing that it's there.

But now nothing appears in my log and no announcement has been played.

Any idea why is this happening ? Any configuration we need to do in the System Manager ?
MichaelSiemsen
Joined: Mar 31, 2015
Messages: 19
Offline
liu159,

In order to address your concerns, I need you to clarify a few things. Can you please provide a few additional details?

1. When using the CallFactory to create your call object, did you use the...

"One party make call" API
create(Participant, target)

or the

"Two party make call" API
create(String, String, Identity)


2. Please clarify exactly which party you are trying to play an announcement to.


3. Do you have any ENTER/EXIT logs in your callAlerting() method in your MyCallListener proving the callAlerting() method was not invoked?


4. Consider pasting your code from callAlerting() or any other code that may help.


Thanks,
Sean
liu159
Joined: Jan 19, 2015
Messages: 96
Offline
1. It's a one party call.

2. Since it's a one party call, I want to make a call to it.

3. Yes, I HAVE ENTER/EXIT logs in my callAlerting() method in my MyCallListener proving the callAlerting() method was not invoked.

4. Here is the code:

CallListener.java:

@Override
public void callAlerting(final Participant alertingParty) {
logger.info("callAlerting:" + alertingParty.getAddress());
}

ClickToCall.java:

@Override
public void makeCall(String phone, String domain, String displayName, String callId) {
// make call for one party

logger.info("clickToCall makeCall enter");
Participant ceParticipant = ParticipantFactory.create(phone, domain, displayName);
String e164 = getE164Number(phone, domain);
Call call = CallFactory.create(ceParticipant, e164);

try
{
final String announcementFileNetworkProtocol =
clusterAttributeReader.getAnnouncementFileNetworkProtocol();
final String trafficInterfaceAddress =
trafficInterfaceAddressRetriever.getTrafficInterfaceAddress();
final String fileUri =
announcementFileNetworkProtocol + "://" + trafficInterfaceAddress + CallData.ANNOUNCEMENT_Welcome_Message;
logger.info("announcement file url: " + fileUri);
call.setAttribute(CallData.ANNOUNCEMENT_URI, fileUri);
call.setAttribute(CallData.CALL_ID, callId);
call.initiate();
}catch(Exception e){
logger.error("call initiate problem: " + e.getMessage());
e.printStackTrace();
}

logger.info("Make Call: " + call.getCallingParty().getAddress() + " to secondParty = " + call.getCalledParty().getAddress());

}
MichaelSiemsen
Joined: Mar 31, 2015
Messages: 19
Offline
liu159,

I have executed a one party make call on my own Breeze 3.1.1 system (with and without the latest patch 3.1.1 GA patch) and have seen the log statement in my snapin.

1. Please execute the 'swversion' command and respond with its output.


2. For the callAlerting() log in MyCallListener...

logger.info("callAlerting:" + alertingParty.getAddress());

FYI,
Your log in CallListener.java will not show up in /var/log/Avaya/sm/asm.log.
Your log in CallListener.java should only show up in /var/log/Avaya/services/ClickToCall/ClickToCall.log.


3. To further assist you, I will need you to collect logs from asm.log and ClickToCall.log.

a. For asm.log... (Window 1)
i. Execute the command 'ce dlogon' to enable FINEST logging.
ii. Execute the command 'ce dlogw > asm.log.liu159' to start collecting the log.

b. For ClickToCall.log... (Window 2)
i. Execute the command 'ce dlogon ClickToCall' to enable FINEST logging for the specific snapin.
ii. Execute the command 'ce dlogw ClickToCall > ClickToCall.log.liu159' to start collecting the log.

Initiate ClickToCall. To keep the logs short, do not answer the call. When the endpoint starts ringing, press Ctrl-C in both windows to stop logging. Please attach both logs to this post.


4. Size permitting, please provide me a zip file of your snapin code.
liu159
Joined: Jan 19, 2015
Messages: 96
Offline
1. Avaya Aura Engagement Development Platform Software Version Inventory

Release: 3.1.1.0.311006
Revision: 16544
Build: 38
Call Processing: Not Installed
Management: 7.0.0.1.700101
SM Tools: 7.0.0.1.700101
DRS: 7.0.0.1.700101
CDR: Not Installed
NCS: Not Installed
Security Module: 7.0.0.1.700101
nginx: 1.8.0
Firewall: 7.0.0.1.700101
WebSphere AS: 8.5.5.4
SAL Agent: 7.0.0.9
OS: Enterprise Linux Server release 6.5 ()
VMware Tools: 9.4.11.42879 (build-2400950)
SDK API Version: 3.1.1

2. Yes. What I have been watching is /var/log/Avaya/services/ClickToCall/ClickToCall.log

3. a. When I executed command ii, it showed "-bash: asm.log.liu159: Permission denied".
b. When I executed command ii, it showed "-bash: NotifyMeRecordService.log.liu159: Permission denied".

BTW, I was always use the following command to see logs and it works:

ce dlogon NotifyMeRecordService
tail -n0 -f NotifyMeRecordService.log

4.
MichaelSiemsen
Joined: Mar 31, 2015
Messages: 19
Offline
liu159,

What user did you log in to the Breeze with?

Try to output the log to /tmp
'ce dlogow > /tmp/asm.log.liu159'

In the meantime, I will start looking at the zip you provided.
MichaelSiemsen
Joined: Mar 31, 2015
Messages: 19
Offline
liu159,

I have downloaded your snapin from your previous post.

I thought I might mention that, depending on the sensitivity of your snapin code, you may want to delete that post.

liu159
Joined: Jan 19, 2015
Messages: 96
Offline
yes I have removed the code.

I was using username: cust to log on the server.
MichaelSiemsen
Joined: Mar 31, 2015
Messages: 19
Offline
liu159,

Were you able to collect logs? You should be able to write to /tmp or to /home/cust.
liu159
Joined: Jan 19, 2015
Messages: 96
Offline
No I'm not able to get the log this way. I was able to get to /tmp and /home/cust, but nothing has been output after I made the call.

I am only be able to output this way:

Command:

[cust@oal03-edp-edp1 /]$ cd /var/log/Avaya/services
[cust@oal03-edp-edp1 services]$ cd NotifyMeRecordService/
[cust@oal03-edp-edp1 NotifyMeRecordService]$ ce dlogon NotifyMeRecordService log4j.logger.NotifyMeRecordService/NotifyMeRecordService: changing state to ALL/ALL
[cust@oal03-edp-edp1 NotifyMeRecordService]$ tail -n0 -f NotifyMeRecordService.log

Output:

2016-05-16 14:59:43,925 [WebContainer : 2] NotifyMeRecordService INFO - NotifyMeRecordService-1.1.0.0.0 - doPost servlet enter
2016-05-16 14:59:43,926 [WebContainer : 2] NotifyMeRecordService INFO - NotifyMeRecordService-1.1.0.0.0 - raw json message: {"callId":"123456","phone":"+15132288150"}
2016-05-16 14:59:43,926 [WebContainer : 2] NotifyMeRecordService INFO - NotifyMeRecordService-1.1.0.0.0 - push to hashtable: 123456
2016-05-16 14:59:43,926 [WebContainer : 2] NotifyMeRecordService FINER - NotifyMeRecordService-1.1.0.0.0 - processHttpPost ENTER
2016-05-16 14:59:43,926 [WebContainer : 2] NotifyMeRecordService INFO - NotifyMeRecordService-1.1.0.0.0 - clickToCall makeCall enter
2016-05-16 14:59:43,928 [WebContainer : 2] NotifyMeRecordService FINEST - NotifyMeRecordService-1.1.0.0.0 - getAnnouncementFileNetworkProtocol: security=true
2016-05-16 14:59:43,928 [WebContainer : 2] NotifyMeRecordService FINEST - NotifyMeRecordService-1.1.0.0.0 - getTrafficInterfaceAddress: entity ip addr=10.129.248.121
2016-05-16 14:59:43,928 [WebContainer : 2] NotifyMeRecordService INFO - NotifyMeRecordService-1.1.0.0.0 - announcement file url: https://10.129.248.121/services/NotifyMeRecordService/resources/wav/EDP_messagebroadcaster_welcome.wav
2016-05-16 14:59:43,936 [WebContainer : 2] NotifyMeRecordService INFO - NotifyMeRecordService-1.1.0.0.0 - Make Call: +15132288150@net.avaya.com to secondParty = +15132288150@net.avaya.com
2016-05-16 14:59:43,936 [WebContainer : 2] NotifyMeRecordService FINER - NotifyMeRecordService-1.1.0.0.0 - processHttpPost EXIT

Log ends here when the phone start to alert, which indicates that the callAlerting method in CallListener class has not been called.
MichaelSiemsen
Joined: Mar 31, 2015
Messages: 19
Offline
liu159,

I need the output logged to /var/log/Avaya/sm/asm.log.

If you are logged in as cust, I think you should be able to execute the command:

ce dlogon
ce dlogw > /home/cust/asm.log.liu159

If not can you attach the /var/log/Avaya/sm/asm.log file? It might be large. That was way I was hoping to get the output from 'ce dlogw > /home/cust/asm.log/liu159'.

Do you have root access? Is there any location on the server where you have write permission?
liu159
Joined: Jan 19, 2015
Messages: 96
Offline
Nothing was output after I executed the command and made the call.

And I don't have the permission to get the asm.log.

Let me ask the infrastructure team to grand me a root access.
liu159
Joined: Jan 19, 2015
Messages: 96
Offline
I attached the asm.log.liu159
Filename asm.log.liu159 [Disk] Download
MichaelSiemsen
Joined: Mar 31, 2015
Messages: 19
Offline
liu159,

Please add the following line of code to your snapin BEFORE the code calling call.initiate();

call.getCallPolicies().setMediaServerInclusion(MediaServerInclusion.INCLUDED);

Let me know if this fixes your issues, and I can elaborate on the need for this line of code for others referencing this thread.
liu159
Joined: Jan 19, 2015
Messages: 96
Offline
Now it goes to CallListener, but the call was directly terminated and I caught the callTerminated cause: MEDIA_SERVER_FAILURE

Go to:   
Mobile view