cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
234
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Jean-Marc Lacoste on 23-07-2010 03:30:40 PM
Hello,
 
We have an XML application used to speak directly to a list of IP Phones using RTMT URI.
 
We would like to execute an URL when the user accidently quit the application by pressing the Services key instead of pressing the Quit Softkey of the application. This is necessary to clear the destination phones which are waiting for the RTP stream.
 
We have tried to used the different Application Event Handlers :

- onAppFocusLost is working when the user switch to another XML environement (Directory, Settings, ..) but not when quitting by pressing the Services key.
- onAppClosed is doing nothing. I imagine the application is not really closed when pressing Services key and is still in IP phone stack.

- onAppMinimized is doing nothing. Minimize command must be sent from application.
 

Does somebody has a solution ?
 
Rgds

Subject: RE: Application Event Handlers when quit with Services button
Replied by: Frank Jong on 12-11-2010 01:52:45 PM
Hello Jean-Marc,
 
I have exact the same problem.
I have an Idle-url which requests a CiscoIPPhoneText with onAppFocusLost and onAppClosed set.
onAppFocusLost is working as expected, but onAppClosed does not.
 
In the documentation is mentioned, that onAppClosed is only supported in use with the Notify-event, so we have the following url:
 
onAppClosed="Notify:http:192.168.0.33:80:event.xml?event=closed"
 
When I look in the log of the phone requesting the Idle-url, I found the following warning:
 
WRN 13:50:19.780292 JVM: Startup Module Loader|cip.push.z:? - PushThread::execute--(MacroNotify:http:192.168.0.30:82:event.xml?event=closed::<notifyApplicationEvent appId="jdm/PeterConnects" type="closed"/>)not allowed in execute objects),WILL NOT EXECUTE
 
This is probably the reason why the closed event is not executed, but how can I make this event being fired?
 
 
I tested this with a 7942/SCCP42.8-4-2S
 
Kind Regards,
 
Frank Jong

Subject: RE: Application Event Handlers when quit with Services button
Replied by: Miroslav Jasso on 02-09-2013 02:50:27 AM
Hi Jean-Marc,
   I have exactly same problem. Have you solved this or not? Please share the solution.

Thanks,
  Mirek

Subject: RE: Application Event Handlers when quit with Services button
Replied by: Miroslav Jasso on 02-09-2013 06:03:35 AM
I can find another message on 9951, but the result is the same. Event does not fire.

2954 NOT 12:27:38.895194  CVM-appCloseRequest:  Closing application - XXX/IPPS
2955 WRN 12:27:38.915268  CVM-push.MacroNotAllowed: thread=PushThread class=cip.push.t macro=Notify:http:192.168.254.193:80:/msg/stopVoiceBroadcast.aspx?groupID=19&phoneName=SEPD824BD27BC8F&locale=en_US::<notifyApplicationEvent appId="XXX/IPPS" type="closed"/>] PushThread::execute--(Macro not allowed in execute objects),WILL NOT EXECUTE
2956 NOT 12:27:39.294512  CVM-Calling enable listening for incoming http connections

Regards,
  Mirek

Subject: RE: Application Event Handlers when quit with Services button
Replied by: Adrienne Moherek on 17-09-2013 03:16:15 PM
894x phones do not support event handlers. Do not use onAppFocusLost, onAppFocusGained, onAppMinimized, onAppClosed on 894x phones.

I will verify if the 7942 and 9951 models support the event handlers.

Mirek can you provide me a snippet of the XML request you are using to send to the phone?

Thanks,
Adrienne

Subject: RE: Application Event Handlers when quit with Services button
Replied by: Miroslav Jasso on 18-09-2013 01:38:32 AM
Hi Adrienne,
   I have tested onAppClosed on 7911G, 7945G and 9951.

My application works this way:
1) I post Execute command to the phones CGI/Execute interface to open an URL and multicast stream.
1<CiscoIPPhoneExecute>
2    <ExecuteItem Priority="0" URL="http://192.168.254.193/msg/startVoiceBroadcast.aspx?groupID=19"/>
3    <ExecuteItem Priority="0" URL="RTPMTx:239.0.0.1:20480"/>
4</CiscoIPPhoneExecute>
2) The page startVoiceBroadcast.aspx contains some text and the event handler onAppClose. Because when the user picks up and then hangs up the handset application closes and I need to terminate stream recieving on all target phones.
 1<CiscoIPPhoneText appId="Company/Msg" onAppClosed="[b]Notify:http:192.168.254.193:80:/msg/stopVoiceBroadcast.aspx?groupID=19&amp;phoneName=SEPD824BD27BC8F&amp;locale=en_US[/b]">
 2    <Title>Title</Title>
 3    <Text>Some text</Text>
 4    <SoftKeyItem>
 5        <Name>Stop</Name>
 6        <URL>http://192.168.254.193/msg/stopVoiceBroadcast.aspx?groupID=19</URL>
 7        <Position>1</Position>
 8    </SoftKeyItem>
 9</CiscoIPPhoneText>
Thanks for answer and do not hesitate to ask for more information. I have lab with cca 15 different IP phones, but I need to get this working on 79XX series.

Mirek

Subject: RE: Application Event Handlers when quit with Services button
Replied by: Miroslav Jasso on 17-10-2013 06:05:25 AM
Hi,
   any progress about this issue. I find out that no event handlers work (lost focus, focus gained, app closed) and only Nofity URI generates this problem. Other URIs (http, Play, RTPTx, ...) works fine.

Mirek
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links