<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.innovaphone.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=D.giordano</id>
	<title>innovaphone wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.innovaphone.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=D.giordano"/>
	<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Special:Contributions/D.giordano"/>
	<updated>2026-05-05T20:04:24Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Integration_with_AEQ_Systel_IP_codecs_for_Radio_and_Television_Station&amp;diff=60943</id>
		<title>Howto:Integration with AEQ Systel IP codecs for Radio and Television Station</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Integration_with_AEQ_Systel_IP_codecs_for_Radio_and_Television_Station&amp;diff=60943"/>
		<updated>2022-01-28T10:44:45Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Problem Details */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:3rdPartyGoldfischglas 03.png|right]]&lt;br /&gt;
== Summary ==&lt;br /&gt;
This document describes how to configuring Innovaphone PBX to work with AEQ Systel IP codecs.&lt;br /&gt;
&lt;br /&gt;
The Systel IP is an SIP telephone hybrids system produced by AEQ company that can be used inside Radio and Television Stations.&lt;br /&gt;
&lt;br /&gt;
For more information about this product see http://www.aeq.eu/products/systel-ip&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
This information applies to&lt;br /&gt;
&lt;br /&gt;
* Innovaphone PBX V9 hotfix 24 or higher&lt;br /&gt;
* V10 Service Release 8 or higher&lt;br /&gt;
* V11r2 Service Release 9 or higher&lt;br /&gt;
&lt;br /&gt;
* AEQ Systel IP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: enter keywords, foreign translations and/or synoyms not appearing in the article here for better search results --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Problem Details===&lt;br /&gt;
The Systel IP needs to communicate using SIP to an external PBX or provider.&lt;br /&gt;
&lt;br /&gt;
Normally Innovaphone PBX system sends the c &amp;quot;connection information&amp;quot; only at media level. In this case we will be affected to one way audio.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:aeq_trace.jpg]]&lt;br /&gt;
&lt;br /&gt;
===Configuration===&lt;br /&gt;
The issue can be easely fixed using the interop tweak /c-line-at-session-level&lt;br /&gt;
&lt;br /&gt;
This tweak can be used for clients not fully compliant to RFC-4566 that do not read RTP address from media description.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code xml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
http://&amp;lt;your_innovaphone_pbx_url&amp;gt;/!config add SIP /c-line-at-session-level&lt;br /&gt;
&lt;br /&gt;
http://&amp;lt;your_innovaphone_pbx_url&amp;gt;/!config write&lt;br /&gt;
&lt;br /&gt;
http://&amp;lt;your_innovaphone_pbx_url&amp;gt;/!config activate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
You can troubleshooting SIP problems using Innovaphone RPCAP features in conjunction with wireshark.&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
The AEQ SIP stack currently cannot support ICE and encryption. A SIP INVITE with these attributes will be rejected with a 400 bad request reply.&lt;br /&gt;
&lt;br /&gt;
To avoid this case you can use old Innovaphone SIP stack like V9. In this case you must consider all security aspect related to this implementation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == Related Articles == --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Howto|{{PAGENAME}}]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Integration_with_AEQ_Systel_IP_codecs_for_Radio_and_Television_Station&amp;diff=57790</id>
		<title>Howto:Integration with AEQ Systel IP codecs for Radio and Television Station</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Integration_with_AEQ_Systel_IP_codecs_for_Radio_and_Television_Station&amp;diff=57790"/>
		<updated>2020-12-30T08:52:57Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
This document describes how to configuring Innovaphone PBX to work with AEQ Systel IP codecs.&lt;br /&gt;
&lt;br /&gt;
The Systel IP is an SIP telephone hybrids system produced by AEQ company that can be used inside Radio and Television Stations.&lt;br /&gt;
&lt;br /&gt;
For more information about this product see http://www.aeq.eu/products/systel-ip&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
This information applies to&lt;br /&gt;
&lt;br /&gt;
* Innovaphone PBX V9 hotfix 24 or higher&lt;br /&gt;
* V10 Service Release 8 or higher&lt;br /&gt;
* V11r2 Service Release 9 or higher&lt;br /&gt;
&lt;br /&gt;
* AEQ Systel IP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: enter keywords, foreign translations and/or synoyms not appearing in the article here for better search results --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Problem Details===&lt;br /&gt;
The Systel IP needs to communicate using SIP to an external PBX or provider.&lt;br /&gt;
&lt;br /&gt;
Normally Innovaphone PBX system sent the c &amp;quot;connection information&amp;quot; only at media level. In this case we will be affected to one way audio.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:aeq_trace.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Configuration===&lt;br /&gt;
The issue can be easely fixed using the interop tweak /c-line-at-session-level&lt;br /&gt;
&lt;br /&gt;
This tweak can be used for clients not fully compliant to RFC-4566 that do not read RTP address from media description.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code xml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
http://&amp;lt;your_innovaphone_pbx_url&amp;gt;/!config add SIP /c-line-at-session-level&lt;br /&gt;
&lt;br /&gt;
http://&amp;lt;your_innovaphone_pbx_url&amp;gt;/!config write&lt;br /&gt;
&lt;br /&gt;
http://&amp;lt;your_innovaphone_pbx_url&amp;gt;/!config activate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
You can troubleshooting SIP problems using Innovaphone RPCAP features in conjunction with wireshark.&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
The AEQ SIP stack currently cannot support ICE and encryption. A SIP INVITE with these attributes will be rejected with a 400 bad request reply.&lt;br /&gt;
&lt;br /&gt;
To avoid this case you can use old Innovaphone SIP stack like V9. In this case you must consider all security aspect related to this implementation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == Related Articles == --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Howto|{{PAGENAME}}]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Integration_with_AEQ_Systel_IP_codecs_for_Radio_and_Television_Station&amp;diff=57789</id>
		<title>Howto:Integration with AEQ Systel IP codecs for Radio and Television Station</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Integration_with_AEQ_Systel_IP_codecs_for_Radio_and_Television_Station&amp;diff=57789"/>
		<updated>2020-12-30T08:45:41Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: New page: == Summary == This document describes how to configuring Innovaphone PBX to work with AEQ Systel IP codecs.  The Systel IP is an SIP telephone hybrids system produced by AEQ company that c...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
This document describes how to configuring Innovaphone PBX to work with AEQ Systel IP codecs.&lt;br /&gt;
&lt;br /&gt;
The Systel IP is an SIP telephone hybrids system produced by AEQ company that can be used inside Radio and Television Stations.&lt;br /&gt;
&lt;br /&gt;
For more information about this product see http://www.aeq.eu/products/systel-ip&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
This information applies to&lt;br /&gt;
&lt;br /&gt;
* Innovaphone PBX V9 hotfix 24 or higher&lt;br /&gt;
* V10 Service Release 8 or higher&lt;br /&gt;
* V11r2 Service Release 9 or higher&lt;br /&gt;
&lt;br /&gt;
* AEQ Systel IP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: enter keywords, foreign translations and/or synoyms not appearing in the article here for better search results --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Problem Details===&lt;br /&gt;
The Systel IP needs to communicate using SIP to an external PBX or provider.&lt;br /&gt;
&lt;br /&gt;
Normally Innovaphone PBX system sent the c &amp;quot;connection information&amp;quot; only at media level. In this case we will be affected to one way audio.&lt;br /&gt;
&lt;br /&gt;
[[Image:aeq_trace.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Configuration===&lt;br /&gt;
The issue can be easely fixed using the interop tweak /c-line-at-session-level&lt;br /&gt;
This tweak can be used for clients not fully compliant to RFC-4566 that do not read RTP address from media description.&lt;br /&gt;
&lt;br /&gt;
http://&amp;lt;your innovaphone pbx url&amp;gt;/!config add SIP /c-line-at-session-level&lt;br /&gt;
http://&amp;lt;your innovaphone pbx url&amp;gt;/!config write&lt;br /&gt;
http://&amp;lt;your innovaphone pbx url&amp;gt;/!config activate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
You can troubleshooting SIP problems using Innovaphone RPCAP features in conjunction with wireshark.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == Related Articles == --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Howto|{{PAGENAME}}]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=File:Aeq_trace.jpg&amp;diff=57788</id>
		<title>File:Aeq trace.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=File:Aeq_trace.jpg&amp;diff=57788"/>
		<updated>2020-12-30T08:45:29Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Voicemail_message_duration&amp;diff=56939</id>
		<title>Howto:Voicemail message duration</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Voicemail_message_duration&amp;diff=56939"/>
		<updated>2020-08-25T12:34:59Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Applies To==&lt;br /&gt;
This information applies to&lt;br /&gt;
&lt;br /&gt;
PBX V11 or higher.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: enter keywords, foreign translations and/or synoyms not appearing in the article here for better search results --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The current email.xml file, used by the system to send emails, doesn&#039;t provide information about message duration.&lt;br /&gt;
This information could be useful to identify easily the very short messages recorded by mistake.&lt;br /&gt;
&lt;br /&gt;
===Problem Details===&lt;br /&gt;
The Voicemail XML documentation (available here https://www.innovaphone.com/xsd/vm.htm) doesn&#039;t provide any special command to get the message duration.&lt;br /&gt;
&lt;br /&gt;
Anyhow we have a command ables to provide the file size generated during the recording phase.&lt;br /&gt;
&lt;br /&gt;
The idea is calculate the duration based on the file size.&lt;br /&gt;
&lt;br /&gt;
The new code must be added to the original email.xml just after the statement:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code xml&amp;gt;&lt;br /&gt;
&amp;lt;store-getstat root=&amp;quot;&amp;quot; name=&amp;quot;$vm&amp;quot; out-size=&amp;quot;$size&amp;quot; out-error=&amp;quot;$error&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Code to add:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code xml&amp;gt;&lt;br /&gt;
&amp;lt;!-- #### start custom code #### --&amp;gt;&lt;br /&gt;
&amp;lt;!-- try to calculate message duration in seconds --&amp;gt;&lt;br /&gt;
&amp;lt;!-- pass the size in byte --&amp;gt;&lt;br /&gt;
&amp;lt;switch var=&amp;quot;$size&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;case less-equal=&amp;quot;40000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is less than 40Kb the message is probably less than 5 seconds --&amp;gt;&lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration less than 5 seconds &amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
  &amp;lt;case less-equal=&amp;quot;64000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is less than 64Kb the message is maximum 8 seconds --&amp;gt;&lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration of 5 - 8 seconds &amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
  &amp;lt;case less-equal=&amp;quot;80000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is less than 80Kb the message is maximum 10 seconds --&amp;gt;&lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration of 8 - 10 seconds &amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
  &amp;lt;case less-equal=&amp;quot;96000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is less than 96Kb the message is maximum 12 seconds --&amp;gt;&lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration of 10 - 12 seconds &amp;quot;/&amp;gt;				&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
  &amp;lt;case less-equal=&amp;quot;120000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is less than 120Kb the message is maximum 15 seconds --&amp;gt; &lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration of 12 - 15 seconds &amp;quot;/&amp;gt;				&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
  &amp;lt;case greater=&amp;quot;120000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is greater than 120Kb the message is more than 15 seconds --&amp;gt;&lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration greater than 15 seconds &amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
&amp;lt;/switch&amp;gt;&lt;br /&gt;
&amp;lt;!-- #### end custom code #### --&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The information obtained can be inserted in the email body.&lt;br /&gt;
&lt;br /&gt;
To add information in body append the code below to the previous one:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code xml&amp;gt;&lt;br /&gt;
&amp;lt;!-- add custom body --&amp;gt;&lt;br /&gt;
&amp;lt;assign out=&amp;quot;$body&amp;quot; value=&amp;quot;$message_duration&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you must change the final &amp;quot;exec url&amp;quot; command to include the email body.&lt;br /&gt;
&lt;br /&gt;
The original code can be identified from the comment &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code xml&amp;gt;&lt;br /&gt;
&amp;lt;!--Now send the email--&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;exec url=&amp;quot;mailto:$to?from=$from&amp;amp;amp;subject=$subject&amp;amp;amp;subject=$cgpn&amp;amp;amp;srv=$server&amp;amp;amp;usr=$user&amp;amp;amp;pwd=$password&amp;amp;amp;file=$file&amp;quot; out-error=&amp;quot;$exec-err&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The new one must contains the body=$body option as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code xml&amp;gt;&lt;br /&gt;
&amp;lt;exec url=&amp;quot;mailto:$to?from=$from&amp;amp;amp;body=$body&amp;amp;amp;subject=$subject&amp;amp;amp;subject=$cgpn&amp;amp;amp;srv=$server&amp;amp;amp;usr=$user&amp;amp;amp;pwd=$password&amp;amp;amp;file=$file&amp;quot; out-error=&amp;quot;$exec-err&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Related Articles==&lt;br /&gt;
&lt;br /&gt;
More informations about email parameters can be found here: http://wiki.innovaphone.com/index.php?title=Howto:Send_Email_MWI_Notification_From_The_innovaphone_Voicemail&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t want change the original voicemail service you can create a second custom one following the informtions below.&lt;br /&gt;
Create a second Voicemail: http://wiki.innovaphone.com/index.php?title=Howto:V13_Create_a_second_Voicemail&lt;br /&gt;
Use your own voicemail files with the voicemail-App in custom mode: http://wiki.innovaphone.com/index.php?title=Howto:V13_Access_Voicemail_Files&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Howto|{{PAGENAME}}]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Voicemail_message_duration&amp;diff=56937</id>
		<title>Howto:Voicemail message duration</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Voicemail_message_duration&amp;diff=56937"/>
		<updated>2020-08-25T12:30:38Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Problem Details */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Applies To==&lt;br /&gt;
This information applies to&lt;br /&gt;
&lt;br /&gt;
PBX V11 or higher.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: enter keywords, foreign translations and/or synoyms not appearing in the article here for better search results --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The current email.xml file, used by the system to send emails, doesn&#039;t provide information about message duration.&lt;br /&gt;
This information could be useful to identify easily the very short messages recorded by mistake.&lt;br /&gt;
&lt;br /&gt;
===Problem Details===&lt;br /&gt;
The Voicemail XML documentation (available here https://www.innovaphone.com/xsd/vm.htm) doesn&#039;t provide any special command to get the message duration.&lt;br /&gt;
&lt;br /&gt;
Anyhow we have a command ables to provide the file size generated during the recording phase.&lt;br /&gt;
&lt;br /&gt;
The idea is calculate the duration based on the file size.&lt;br /&gt;
&lt;br /&gt;
The new code must be added to the original email.xml just after the statement:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code xml&amp;gt;&lt;br /&gt;
&amp;lt;store-getstat root=&amp;quot;&amp;quot; name=&amp;quot;$vm&amp;quot; out-size=&amp;quot;$size&amp;quot; out-error=&amp;quot;$error&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Code to add:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code xml&amp;gt;&lt;br /&gt;
&amp;lt;!-- #### start custom code #### --&amp;gt;&lt;br /&gt;
&amp;lt;!-- try to calculate message duration in seconds --&amp;gt;&lt;br /&gt;
&amp;lt;!-- pass the size in byte --&amp;gt;&lt;br /&gt;
&amp;lt;switch var=&amp;quot;$size&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;case less-equal=&amp;quot;40000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is less than 40Kb the message is probably less than 5 seconds --&amp;gt;&lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration less than 5 seconds &amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
  &amp;lt;case less-equal=&amp;quot;64000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is less than 64Kb the message is maximum 8 seconds --&amp;gt;&lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration of 5 - 8 seconds &amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
  &amp;lt;case less-equal=&amp;quot;80000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is less than 80Kb the message is maximum 10 seconds --&amp;gt;&lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration of 8 - 10 seconds &amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
  &amp;lt;case less-equal=&amp;quot;96000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is less than 96Kb the message is maximum 12 seconds --&amp;gt;&lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration of 10 - 12 seconds &amp;quot;/&amp;gt;				&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
  &amp;lt;case less-equal=&amp;quot;120000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is less than 120Kb the message is maximum 15 seconds --&amp;gt; &lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration of 12 - 15 seconds &amp;quot;/&amp;gt;				&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
  &amp;lt;case greater=&amp;quot;120000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is greater than 120Kb the message is more than 15 seconds --&amp;gt;&lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration greater than 15 seconds &amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
&amp;lt;/switch&amp;gt;&lt;br /&gt;
&amp;lt;!-- #### end custom code #### --&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The information obtained can be inserted in the email body.&lt;br /&gt;
&lt;br /&gt;
To add information in body append the code below to the previous one:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code xml&amp;gt;&lt;br /&gt;
&amp;lt;!-- add custom body --&amp;gt;&lt;br /&gt;
&amp;lt;assign out=&amp;quot;$body&amp;quot; value=&amp;quot;$message_duration&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you must change the final &amp;quot;exec url&amp;quot; command to include the email body.&lt;br /&gt;
&lt;br /&gt;
The original code can be identified from the comment &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code xml&amp;gt;&lt;br /&gt;
&amp;lt;!--Now send the email--&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;exec url=&amp;quot;mailto:$to?from=$from&amp;amp;amp;subject=$subject&amp;amp;amp;subject=$cgpn&amp;amp;amp;srv=$server&amp;amp;amp;usr=$user&amp;amp;amp;pwd=$password&amp;amp;amp;file=$file&amp;quot; out-error=&amp;quot;$exec-err&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The new one must contains the body=$body option as below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code xml&amp;gt;&lt;br /&gt;
&amp;lt;exec url=&amp;quot;mailto:$to?from=$from&amp;amp;amp;body=$body&amp;amp;amp;subject=$subject&amp;amp;amp;subject=$cgpn&amp;amp;amp;srv=$server&amp;amp;amp;usr=$user&amp;amp;amp;pwd=$password&amp;amp;amp;file=$file&amp;quot; out-error=&amp;quot;$exec-err&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===System Requirements===&lt;br /&gt;
===Installation===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Configuration===&lt;br /&gt;
===Known Problems===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == Related Articles == --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Howto|{{PAGENAME}}]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Voicemail_message_duration&amp;diff=56924</id>
		<title>Howto:Voicemail message duration</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Voicemail_message_duration&amp;diff=56924"/>
		<updated>2020-08-25T12:16:28Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: New page: ==Applies To== This information applies to  PBX V11 or higher.  &amp;lt;!-- Keywords: enter keywords, foreign translations and/or synoyms not appearing in the article here for better search resul...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Applies To==&lt;br /&gt;
This information applies to&lt;br /&gt;
&lt;br /&gt;
PBX V11 or higher.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: enter keywords, foreign translations and/or synoyms not appearing in the article here for better search results --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The current email.xml file, used by the system to send emails, doesn&#039;t provide information about message duration.&lt;br /&gt;
This information could be useful to identify easily the very short messages recorded by mistake.&lt;br /&gt;
&lt;br /&gt;
===Problem Details===&lt;br /&gt;
The Voicemail XML documentation (available here https://www.innovaphone.com/xsd/vm.htm) doesn&#039;t provide any special command to get the message duration.&lt;br /&gt;
Anyhow we have a command ables to provide the file size generated during the recording phase.&lt;br /&gt;
The idea is calculate the duration based on the file size.&lt;br /&gt;
The following code must be added to the original email.xml just after the statement:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code xml&amp;gt;&lt;br /&gt;
&amp;lt;store-getstat root=&amp;quot;&amp;quot; name=&amp;quot;$vm&amp;quot; out-size=&amp;quot;$size&amp;quot; out-error=&amp;quot;$error&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code xml&amp;gt;&lt;br /&gt;
&amp;lt;!-- #### start custom code #### --&amp;gt;&lt;br /&gt;
&amp;lt;!-- try to calculate message duration in seconds --&amp;gt;&lt;br /&gt;
&amp;lt;!-- pass the size in byte --&amp;gt;&lt;br /&gt;
&amp;lt;switch var=&amp;quot;$size&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;case less-equal=&amp;quot;40000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is less than 40Kb the message is probably less than 5 seconds --&amp;gt;&lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration less than 5 seconds &amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
  &amp;lt;case less-equal=&amp;quot;64000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is less than 64Kb the message is maximum 8 seconds --&amp;gt;&lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration of 5 - 8 seconds &amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
  &amp;lt;case less-equal=&amp;quot;80000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is less than 80Kb the message is maximum 10 seconds --&amp;gt;&lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration of 8 - 10 seconds &amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
  &amp;lt;case less-equal=&amp;quot;96000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is less than 96Kb the message is maximum 12 seconds --&amp;gt;&lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration of 10 - 12 seconds &amp;quot;/&amp;gt;				&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
  &amp;lt;case less-equal=&amp;quot;120000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is less than 120Kb the message is maximum 15 seconds --&amp;gt; &lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration of 12 - 15 seconds &amp;quot;/&amp;gt;				&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
  &amp;lt;case greater=&amp;quot;120000&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;!-- if a message is greater than 120Kb the message is more than 15 seconds --&amp;gt;&lt;br /&gt;
    &amp;lt;assign out=&amp;quot;$message_duration&amp;quot; value=&amp;quot;message duration greater than 15 seconds &amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/case&amp;gt;&lt;br /&gt;
&amp;lt;/switch&amp;gt;&lt;br /&gt;
&amp;lt;!-- #### end custom code #### --&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===System Requirements===&lt;br /&gt;
===Installation===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Configuration===&lt;br /&gt;
===Known Problems===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == Related Articles == --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Howto|{{PAGENAME}}]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Italy_-_AEMCOM_-_SIP_Provider&amp;diff=45425</id>
		<title>Howto:Italy - AEMCOM - SIP Provider</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Italy_-_AEMCOM_-_SIP_Provider&amp;diff=45425"/>
		<updated>2016-12-30T13:03:55Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Contact */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- this text is a comment that is not visible on normal view at the article. --&amp;gt;&lt;br /&gt;
&amp;lt;!-- to create a new entry here,&lt;br /&gt;
   - fill in all sections marked as &amp;quot;by vendor&amp;quot;&lt;br /&gt;
   - innovaphone will then complete the remaining sections (marked as &amp;quot;by inno&amp;quot;)&lt;br /&gt;
  &lt;br /&gt;
  Please note that this article is in English only!&lt;br /&gt;
  feel free to ask presales in case you have any difficulties on editing wiki articles &lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- by vendor:&lt;br /&gt;
   - upload your company and product logo (if any) in a suitable size (.pgn preferred)&lt;br /&gt;
   - replace images below with your logo&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
[[Image:aemcom_logo.png||right]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Product Name==&lt;br /&gt;
&amp;lt;!-- by vendor:&lt;br /&gt;
   Place here Official Product Name, as used in vendors product collateral &lt;br /&gt;
   If you have a dedicated product page (not a generic vendor page) in English, also put the link below&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
[http://www.lineacom.it/ AEMCOM Business Products]&lt;br /&gt;
&lt;br /&gt;
==Certification Status==&lt;br /&gt;
&amp;lt;!-- by inno&lt;br /&gt;
   - uncomment one of the stati below &lt;br /&gt;
   - update date below&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- {{Template:Compat Status &amp;quot;planned&amp;quot;}} --&amp;gt;&lt;br /&gt;
&amp;lt;!-- {{Template:Compat Status &amp;quot;in progress&amp;quot;}} --&amp;gt;&lt;br /&gt;
&amp;lt;!-- {{Template:Compat Status &amp;quot;certified&amp;quot;|certificate=AEMCOM - SIP Provider_-_Desc-aemcom-cert.pdf}} --&amp;gt;&lt;br /&gt;
{{Template:Compat Status &amp;quot;tested&amp;quot;}}&lt;br /&gt;
&amp;lt;!-- {{Template:Compat Status &amp;quot;rejected&amp;quot;}} --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Testing of this product has been finalized July 13th, 2009.&lt;br /&gt;
&lt;br /&gt;
==Category==&lt;br /&gt;
&amp;lt;!-- by inno:&lt;br /&gt;
   - select one or more of the available recommended product categories &lt;br /&gt;
     a list of valid Categories can be found in &lt;br /&gt;
     Special Pages / Prefix Index / Display pages with prefix = RecProd, Display pages with prefix = Category &lt;br /&gt;
     (you need to apply it twice, first as template {{..}}, seconds as category [[..]])&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
{{Category:3rdParty SIP Provider}}&lt;br /&gt;
[[Category:RecProd|{{PAGENAME}}]]&lt;br /&gt;
[[Category:3rdParty SIP Provider|IT - AEMCOM - SIP Provider]]&lt;br /&gt;
&lt;br /&gt;
==Vendor==&lt;br /&gt;
&amp;lt;!-- by vendor&lt;br /&gt;
   - Official name of your company, at best linked to your companies web site url, Official name of the vendors web site &lt;br /&gt;
   - you may also add a logo&lt;br /&gt;
     - upload your company logo (.png preferred, suitable size)&lt;br /&gt;
     - replace logo below with yours &lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:aemcom_logo.png]] [http://www.lineacom.it/ AEMCOM Srl]&lt;br /&gt;
&lt;br /&gt;
==Remarks==&lt;br /&gt;
&amp;lt;!-- by inno:&lt;br /&gt;
   - add remarks regarding the product, such as special features, firmware versions or licenses required on the inno side, &lt;br /&gt;
     parts of the product that has not been tested or limitations discovered.  very short and concise (everything else is in &lt;br /&gt;
     the test report) &lt;br /&gt;
   - add link to product test report here&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The provider supports all required innovaphone features and is therefore qualified as recommended SIP Provider.&lt;br /&gt;
&lt;br /&gt;
Aemcom has achieved 86% of all possible test points. For more information on the tests results, please refer to: &lt;br /&gt;
&lt;br /&gt;
[[Howto:AEMCOM SIP Provider Compatibility Test]]&lt;br /&gt;
&lt;br /&gt;
==Contact==&lt;br /&gt;
&amp;lt;!-- by vendor:&lt;br /&gt;
   - add name, address, phone, fax, email, web of primary recommended sales contact&lt;br /&gt;
     if suitable, you may consider specifying several contacs, depending on your sales structure &lt;br /&gt;
     (e.g. by country or vertical market)&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Customers should call Aemcom at 800 585 100 from Italy (this offer is valid in Italy only) or use the [http://www.lineacom.it/ contact web page].&lt;br /&gt;
&lt;br /&gt;
[[Category:Compat|{{PAGENAME}}]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto7:AEMCOM_SIP_Provider_Compatibility_Test&amp;diff=45424</id>
		<title>Howto7:AEMCOM SIP Provider Compatibility Test</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto7:AEMCOM_SIP_Provider_Compatibility_Test&amp;diff=45424"/>
		<updated>2016-12-30T13:03:10Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Summary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Innovaphone Compatibility Test Report&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Summary ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SIP Provider: AEMCOM&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Provider Homepage:&#039;&#039;&#039; http://www.lineacom.it/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The provider supports all required innovaphone features and is therefore qualified as [[Howto:What_is_a_%22recommended_product%22%3F#SIP_Provider|recommended SIP Provider]]. &lt;br /&gt;
&lt;br /&gt;
AEMCOM does not support the remote hold feature. When making a blind transfer(using redial key) the remote end will not get a MOH/dialtone from the provider. &lt;br /&gt;
&lt;br /&gt;
AEMCOM has no T.38 capability however we successfully tested sending and receiving faxes over g711.&lt;br /&gt;
&lt;br /&gt;
AEMCOM has achieved 86% of all possible test points. For more information on the test rating, please refer to [[Howto:SIP_Interop_Test_Description#Summary|Test Description]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Features:&lt;br /&gt;
&lt;br /&gt;
** Direct Dial In&lt;br /&gt;
** DTMF&lt;br /&gt;
&lt;br /&gt;
* Supported Codecs by the provider&lt;br /&gt;
** G711a/u&lt;br /&gt;
&lt;br /&gt;
== Current test state ==&lt;br /&gt;
{{Template:Compat Status &amp;quot;tested&amp;quot;}}&lt;br /&gt;
&amp;lt;!--{{Template:Compat Status &amp;quot;in progress&amp;quot;}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{Template:Compat Status &amp;quot;certified&amp;quot;|certificate=Tpl_sip.business_Toplink_SIP_Provider_-_product-cert.pdf}}--&amp;gt;&lt;br /&gt;
&amp;lt;!-- {{Template:Compat Status &amp;quot;rejected&amp;quot;}} --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Testing of this product has been finalized July 07th, 2009.&lt;br /&gt;
&lt;br /&gt;
== Testing Enviroment ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Scenario NAT ===&lt;br /&gt;
&lt;br /&gt;
[[Image:HFO_SIP_Compatibility_Test_5.PNG]]&lt;br /&gt;
&lt;br /&gt;
This scenario describes a setup where the PBX and phones are in a private network. No stun server was required during while testing. The IP800 works as media relay, all RTP - streams go through the PBX.&lt;br /&gt;
&lt;br /&gt;
== Test Results ==&lt;br /&gt;
&lt;br /&gt;
For more information on the test procedure, please read the following wiki article: [[Howto:SIP_Interop_Test_Description|SIP Interop Test Description]]. Bold lines in the test results indicate a KO-criteria.&lt;br /&gt;
&lt;br /&gt;
=== Basic Call ===&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; &lt;br /&gt;
!Tested feature&lt;br /&gt;
!Result &lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;call using g711a&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;call using g711u&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|----&lt;br /&gt;
|call using g723&lt;br /&gt;
|No&lt;br /&gt;
|----&lt;br /&gt;
|call using g729&lt;br /&gt;
|No&lt;br /&gt;
|----&lt;br /&gt;
|Overlapped sending&lt;br /&gt;
|No&lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;early media channel&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|----&lt;br /&gt;
|Fax using T.38&lt;br /&gt;
|No&lt;br /&gt;
|----&lt;br /&gt;
|CGPN can be supressed&lt;br /&gt;
|No&lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;Long time call possilbe (&amp;gt;30 min)&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;Voice Quality OK?&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Direct Dial In ===&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; &lt;br /&gt;
!Tested feature&lt;br /&gt;
!Result &lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;Inbound(Provider -&amp;gt; Innovaphone)&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;Outbound(Innovaphone -&amp;gt; Provider)&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== DTMF ===&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; &lt;br /&gt;
!Tested feature&lt;br /&gt;
!Result &lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;DTMF tones sent correctly&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;DTMF tones received correctly&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Hold/Retrieve ===&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; &lt;br /&gt;
!Tested feature&lt;br /&gt;
!Result &lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;Call can be put on hold&#039;&#039;&#039; &lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|----&lt;br /&gt;
|Held end hears music on hold / announcement from PBX&lt;br /&gt;
|Yes&lt;br /&gt;
|----&lt;br /&gt;
|Held end hears music on hold / announcement from provider&lt;br /&gt;
|No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Transfer with consultation ===&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; &lt;br /&gt;
!Tested feature&lt;br /&gt;
!Result &lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;Call can be transfered&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|----&lt;br /&gt;
|Held end hears music on hold&lt;br /&gt;
|Yes&lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;Call returns to transferring device if the third&#039;&#039;&#039; &lt;br /&gt;
&#039;&#039;&#039;Endpoint is not available&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Transfer with consultation (alerting only) ===&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; &lt;br /&gt;
!Tested feature&lt;br /&gt;
!Result &lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;Call can be transfered&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|----&lt;br /&gt;
|Held end hears music on hold or dialing tone&lt;br /&gt;
|Yes&lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;Call returns to transferring device if the third&#039;&#039;&#039; &lt;br /&gt;
&#039;&#039;&#039;Endpoint is not available&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Blind Transfer ===&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; &lt;br /&gt;
!Tested feature&lt;br /&gt;
!Result &lt;br /&gt;
|----&lt;br /&gt;
|Call can be transfered&lt;br /&gt;
|Yes&lt;br /&gt;
|----&lt;br /&gt;
|Held end hears dialing tone&lt;br /&gt;
|No&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Broadcast Group &amp;amp; Waiting Queue ===&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; &lt;br /&gt;
!Tested feature&lt;br /&gt;
!Result &lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;Caller can make a call to a Broadcast Group&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;Caller can make a call to a Waiting Queue&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|----&lt;br /&gt;
|&#039;&#039;&#039;Announcement if nobody picks up the call&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Yes&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
=== General Information ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Firmware version&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*IP800:  7.00 hotfix7 IP800[09-70300.17]&lt;br /&gt;
*IP24: 	 7.00 hotfix5 IP24[09-70300.14]&lt;br /&gt;
*IP200A: 7.00 hotfix5 IP200A[09-70300.14]&lt;br /&gt;
*IP230:  7.00 hotfix5 IP230[09-70300.14]&lt;br /&gt;
*IP230:  7.00 hotfix7 IP230[09-70300.17]&lt;br /&gt;
&lt;br /&gt;
=== SIP - Trunk ===&lt;br /&gt;
&lt;br /&gt;
First of all the SIP Trunk must be configured. Here an example of our AEMCOM - Trunk.&lt;br /&gt;
&lt;br /&gt;
[[Image:AEMCOM SIP Compatibility Test - Trunk.jpg]]&lt;br /&gt;
&lt;br /&gt;
AEMCOM awaits in the From Header the complete Calling Party Number(CGPN). The default innovaphone setting is to not send the complete CGPN in  the FROM - Header, but in the Preffered Identity Header. Change the setting &#039;&#039;From Header:&#039;&#039; to &#039;&#039;CGPN in user part of URI&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[Image:AEMCOM SIP Compatibility Test - Trunk detail.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Number Mapping ===&lt;br /&gt;
&lt;br /&gt;
The complicated part on this issue is the correct mapping of the outgoing and incoming numbers. &lt;br /&gt;
&lt;br /&gt;
[[Image:AEMCOM SIP Compatibility Test - Mapping.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Route Settings ===&lt;br /&gt;
&lt;br /&gt;
Because AEMCOM, as most SIP - Providers too, doesn&#039;t support overlap sending, you must enable the blockwise sending of the phone number. You can do this by enabling &#039;&#039;Force enblock&#039;&#039; in the automatically generated Routes.&lt;br /&gt;
&lt;br /&gt;
The second setting you must check is Interworking(QSIG,SIP). This feature must be enabled to properly relay suplementary services, like Hold over the SIP Trunk. If this checkbox is unchecked only basic call Information like connect and disconnect will be forwarded by the Gateway.&lt;br /&gt;
&lt;br /&gt;
[[Image:AEMCOM SIP Compatibility Test - Routes.jpg]]&lt;br /&gt;
&lt;br /&gt;
Now the PBX and the phones are setup correctly. You should be able to make call in both directions.&lt;br /&gt;
&lt;br /&gt;
[[Category:Compat|{{PAGENAME}}]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Italy_-_AEMCOM_-_SIP_Provider&amp;diff=45423</id>
		<title>Howto:Italy - AEMCOM - SIP Provider</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Italy_-_AEMCOM_-_SIP_Provider&amp;diff=45423"/>
		<updated>2016-12-30T13:02:54Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Vendor */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- this text is a comment that is not visible on normal view at the article. --&amp;gt;&lt;br /&gt;
&amp;lt;!-- to create a new entry here,&lt;br /&gt;
   - fill in all sections marked as &amp;quot;by vendor&amp;quot;&lt;br /&gt;
   - innovaphone will then complete the remaining sections (marked as &amp;quot;by inno&amp;quot;)&lt;br /&gt;
  &lt;br /&gt;
  Please note that this article is in English only!&lt;br /&gt;
  feel free to ask presales in case you have any difficulties on editing wiki articles &lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- by vendor:&lt;br /&gt;
   - upload your company and product logo (if any) in a suitable size (.pgn preferred)&lt;br /&gt;
   - replace images below with your logo&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
[[Image:aemcom_logo.png||right]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Product Name==&lt;br /&gt;
&amp;lt;!-- by vendor:&lt;br /&gt;
   Place here Official Product Name, as used in vendors product collateral &lt;br /&gt;
   If you have a dedicated product page (not a generic vendor page) in English, also put the link below&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
[http://www.lineacom.it/ AEMCOM Business Products]&lt;br /&gt;
&lt;br /&gt;
==Certification Status==&lt;br /&gt;
&amp;lt;!-- by inno&lt;br /&gt;
   - uncomment one of the stati below &lt;br /&gt;
   - update date below&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- {{Template:Compat Status &amp;quot;planned&amp;quot;}} --&amp;gt;&lt;br /&gt;
&amp;lt;!-- {{Template:Compat Status &amp;quot;in progress&amp;quot;}} --&amp;gt;&lt;br /&gt;
&amp;lt;!-- {{Template:Compat Status &amp;quot;certified&amp;quot;|certificate=AEMCOM - SIP Provider_-_Desc-aemcom-cert.pdf}} --&amp;gt;&lt;br /&gt;
{{Template:Compat Status &amp;quot;tested&amp;quot;}}&lt;br /&gt;
&amp;lt;!-- {{Template:Compat Status &amp;quot;rejected&amp;quot;}} --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Testing of this product has been finalized July 13th, 2009.&lt;br /&gt;
&lt;br /&gt;
==Category==&lt;br /&gt;
&amp;lt;!-- by inno:&lt;br /&gt;
   - select one or more of the available recommended product categories &lt;br /&gt;
     a list of valid Categories can be found in &lt;br /&gt;
     Special Pages / Prefix Index / Display pages with prefix = RecProd, Display pages with prefix = Category &lt;br /&gt;
     (you need to apply it twice, first as template {{..}}, seconds as category [[..]])&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
{{Category:3rdParty SIP Provider}}&lt;br /&gt;
[[Category:RecProd|{{PAGENAME}}]]&lt;br /&gt;
[[Category:3rdParty SIP Provider|IT - AEMCOM - SIP Provider]]&lt;br /&gt;
&lt;br /&gt;
==Vendor==&lt;br /&gt;
&amp;lt;!-- by vendor&lt;br /&gt;
   - Official name of your company, at best linked to your companies web site url, Official name of the vendors web site &lt;br /&gt;
   - you may also add a logo&lt;br /&gt;
     - upload your company logo (.png preferred, suitable size)&lt;br /&gt;
     - replace logo below with yours &lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:aemcom_logo.png]] [http://www.lineacom.it/ AEMCOM Srl]&lt;br /&gt;
&lt;br /&gt;
==Remarks==&lt;br /&gt;
&amp;lt;!-- by inno:&lt;br /&gt;
   - add remarks regarding the product, such as special features, firmware versions or licenses required on the inno side, &lt;br /&gt;
     parts of the product that has not been tested or limitations discovered.  very short and concise (everything else is in &lt;br /&gt;
     the test report) &lt;br /&gt;
   - add link to product test report here&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The provider supports all required innovaphone features and is therefore qualified as recommended SIP Provider.&lt;br /&gt;
&lt;br /&gt;
Aemcom has achieved 86% of all possible test points. For more information on the tests results, please refer to: &lt;br /&gt;
&lt;br /&gt;
[[Howto:AEMCOM SIP Provider Compatibility Test]]&lt;br /&gt;
&lt;br /&gt;
==Contact==&lt;br /&gt;
&amp;lt;!-- by vendor:&lt;br /&gt;
   - add name, address, phone, fax, email, web of primary recommended sales contact&lt;br /&gt;
     if suitable, you may consider specifying several contacs, depending on your sales structure &lt;br /&gt;
     (e.g. by country or vertical market)&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Customers should call Aemcom at 800 585 100 from Italy (this offer is valid in Italy only) or use the [http://www.aemcom.net/content/contattaci/ contact web page].&lt;br /&gt;
&lt;br /&gt;
[[Category:Compat|{{PAGENAME}}]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Italy_-_AEMCOM_-_SIP_Provider&amp;diff=45422</id>
		<title>Howto:Italy - AEMCOM - SIP Provider</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Italy_-_AEMCOM_-_SIP_Provider&amp;diff=45422"/>
		<updated>2016-12-30T13:02:07Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Product Name */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- this text is a comment that is not visible on normal view at the article. --&amp;gt;&lt;br /&gt;
&amp;lt;!-- to create a new entry here,&lt;br /&gt;
   - fill in all sections marked as &amp;quot;by vendor&amp;quot;&lt;br /&gt;
   - innovaphone will then complete the remaining sections (marked as &amp;quot;by inno&amp;quot;)&lt;br /&gt;
  &lt;br /&gt;
  Please note that this article is in English only!&lt;br /&gt;
  feel free to ask presales in case you have any difficulties on editing wiki articles &lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- by vendor:&lt;br /&gt;
   - upload your company and product logo (if any) in a suitable size (.pgn preferred)&lt;br /&gt;
   - replace images below with your logo&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
[[Image:aemcom_logo.png||right]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Product Name==&lt;br /&gt;
&amp;lt;!-- by vendor:&lt;br /&gt;
   Place here Official Product Name, as used in vendors product collateral &lt;br /&gt;
   If you have a dedicated product page (not a generic vendor page) in English, also put the link below&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
[http://www.lineacom.it/ AEMCOM Business Products]&lt;br /&gt;
&lt;br /&gt;
==Certification Status==&lt;br /&gt;
&amp;lt;!-- by inno&lt;br /&gt;
   - uncomment one of the stati below &lt;br /&gt;
   - update date below&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&amp;lt;!-- {{Template:Compat Status &amp;quot;planned&amp;quot;}} --&amp;gt;&lt;br /&gt;
&amp;lt;!-- {{Template:Compat Status &amp;quot;in progress&amp;quot;}} --&amp;gt;&lt;br /&gt;
&amp;lt;!-- {{Template:Compat Status &amp;quot;certified&amp;quot;|certificate=AEMCOM - SIP Provider_-_Desc-aemcom-cert.pdf}} --&amp;gt;&lt;br /&gt;
{{Template:Compat Status &amp;quot;tested&amp;quot;}}&lt;br /&gt;
&amp;lt;!-- {{Template:Compat Status &amp;quot;rejected&amp;quot;}} --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Testing of this product has been finalized July 13th, 2009.&lt;br /&gt;
&lt;br /&gt;
==Category==&lt;br /&gt;
&amp;lt;!-- by inno:&lt;br /&gt;
   - select one or more of the available recommended product categories &lt;br /&gt;
     a list of valid Categories can be found in &lt;br /&gt;
     Special Pages / Prefix Index / Display pages with prefix = RecProd, Display pages with prefix = Category &lt;br /&gt;
     (you need to apply it twice, first as template {{..}}, seconds as category [[..]])&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
{{Category:3rdParty SIP Provider}}&lt;br /&gt;
[[Category:RecProd|{{PAGENAME}}]]&lt;br /&gt;
[[Category:3rdParty SIP Provider|IT - AEMCOM - SIP Provider]]&lt;br /&gt;
&lt;br /&gt;
==Vendor==&lt;br /&gt;
&amp;lt;!-- by vendor&lt;br /&gt;
   - Official name of your company, at best linked to your companies web site url, Official name of the vendors web site &lt;br /&gt;
   - you may also add a logo&lt;br /&gt;
     - upload your company logo (.png preferred, suitable size)&lt;br /&gt;
     - replace logo below with yours &lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:aemcom_logo.png]] [http://www.aemcom.net/ AEMCOM Srl]&lt;br /&gt;
&lt;br /&gt;
==Remarks==&lt;br /&gt;
&amp;lt;!-- by inno:&lt;br /&gt;
   - add remarks regarding the product, such as special features, firmware versions or licenses required on the inno side, &lt;br /&gt;
     parts of the product that has not been tested or limitations discovered.  very short and concise (everything else is in &lt;br /&gt;
     the test report) &lt;br /&gt;
   - add link to product test report here&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The provider supports all required innovaphone features and is therefore qualified as recommended SIP Provider.&lt;br /&gt;
&lt;br /&gt;
Aemcom has achieved 86% of all possible test points. For more information on the tests results, please refer to: &lt;br /&gt;
&lt;br /&gt;
[[Howto:AEMCOM SIP Provider Compatibility Test]]&lt;br /&gt;
&lt;br /&gt;
==Contact==&lt;br /&gt;
&amp;lt;!-- by vendor:&lt;br /&gt;
   - add name, address, phone, fax, email, web of primary recommended sales contact&lt;br /&gt;
     if suitable, you may consider specifying several contacs, depending on your sales structure &lt;br /&gt;
     (e.g. by country or vertical market)&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Customers should call Aemcom at 800 585 100 from Italy (this offer is valid in Italy only) or use the [http://www.aemcom.net/content/contattaci/ contact web page].&lt;br /&gt;
&lt;br /&gt;
[[Category:Compat|{{PAGENAME}}]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=User:D.giordano&amp;diff=35805</id>
		<title>User:D.giordano</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=User:D.giordano&amp;diff=35805"/>
		<updated>2014-11-05T15:08:44Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: Removing all content from page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=User:D.giordano&amp;diff=35299</id>
		<title>User:D.giordano</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=User:D.giordano&amp;diff=35299"/>
		<updated>2014-09-26T14:59:34Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Daniele Giordano&lt;br /&gt;
&lt;br /&gt;
Linea Com S.r.l.&lt;br /&gt;
&lt;br /&gt;
via Persico, 31/a 26100 Cremona&lt;br /&gt;
&lt;br /&gt;
Tel: +39 0372 442332&lt;br /&gt;
&lt;br /&gt;
Fax: +39 0372 442344&lt;br /&gt;
&lt;br /&gt;
Web: http://www.lineacom.it/&lt;br /&gt;
&lt;br /&gt;
Mail: d.giordano@lineacom.it&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Speaking_Clock_with_Voicemail_XML_Script&amp;diff=32633</id>
		<title>Howto:Speaking Clock with Voicemail XML Script</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Speaking_Clock_with_Voicemail_XML_Script&amp;diff=32633"/>
		<updated>2014-02-03T15:59:14Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: speaking clock, clock call, time call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The Speaking Clock is a telephony service that gives the current date and time. This is a typical Telecom service but is useful for blind and partially sighted people.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The service is realized using Innovaphone XML Voicemail script.&lt;br /&gt;
&lt;br /&gt;
Every time you call the script, the XML writes a file called &amp;quot;time.txt&amp;quot;. The content of the file is not important.&lt;br /&gt;
Significant informations are file properties.&lt;br /&gt;
In fact, the second action of the script is to use &amp;quot;store-getstat&amp;quot; XML element to obtain the day of the week, day of month, month, year, hour and minute.&lt;br /&gt;
The last task is reproduce files stored in the &amp;quot;audio&amp;quot; folder for every collected informations.&lt;br /&gt;
&lt;br /&gt;
The script is structured to use the Innovaphone Voicemail audio file. &lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example if installed in a directory called &amp;quot;SPEAKING CLOCK&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/speaking_clock/speaking_clock.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone.&lt;br /&gt;
&lt;br /&gt;
[[Image:sp_vm_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
To set your language, download the appropriate Innovaphone Voice Mail package from http://download.innovaphone.com/ice/6.00/ and copy audio file in &amp;quot;audio&amp;quot; folder.&lt;br /&gt;
&lt;br /&gt;
E.g.  vm-it for Italian, vm-en for English, etc.&lt;br /&gt;
&lt;br /&gt;
Edit the script at line 7 and change the value of variable &#039;&#039;&#039;$lang&#039;&#039;&#039; according to your language:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;assign out=&amp;quot;$lang&amp;quot; value=&amp;quot;it&amp;quot;/&amp;gt;&#039;&#039;&#039; for Italian&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;assign out=&amp;quot;$lang&amp;quot; value=&amp;quot;en&amp;quot;/&amp;gt;&#039;&#039;&#039; for English&lt;br /&gt;
&lt;br /&gt;
Edit the script at line 37, 46 and 57 and change the name of &#039;&#039;&#039;string2&#039;&#039;&#039; variable to permit the right localization of files that play &amp;quot;hours&amp;quot;, &amp;quot;and&amp;quot;, &amp;quot;minutes&amp;quot; announcement.&lt;br /&gt;
&lt;br /&gt;
==Licensing Information==&lt;br /&gt;
The aforementioned &#039;&#039;audio files&#039;&#039; are part of the innovaphone voice mail package and as such require a valid license.  You thus need to have a voice-mail license installed to use them.  Of course, you can record the files yourself to avoid this.&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
*[http://download.innovaphone.com/ice/wiki-src#speakclock http://download.innovaphone.com/ice/wiki-src#speakclock] - download the complete file package of scripts and files described in this article.&lt;br /&gt;
&lt;br /&gt;
== Known Problems ==&lt;br /&gt;
Sometimes the store-getstat xml function has trouble to get stats.&lt;br /&gt;
As workaround simply add a &amp;quot;&amp;lt;wait sec=&amp;quot;1&amp;quot;/&amp;gt;&amp;quot; after store-cookie.&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Speaking_Clock_with_Voicemail_XML_Script&amp;diff=31984</id>
		<title>Howto:Speaking Clock with Voicemail XML Script</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Speaking_Clock_with_Voicemail_XML_Script&amp;diff=31984"/>
		<updated>2013-12-12T18:31:09Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: speaking clock, clock call, time call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The Speaking Clock is a telephony service that gives the current date and time. This is a typical Telecom service but is useful for blind and partially sighted people.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The service is realized using Innovaphone XML Voicemail script.&lt;br /&gt;
&lt;br /&gt;
Every time you call the script, the XML writes a file called &amp;quot;time.txt&amp;quot;. The content of the file is not important.&lt;br /&gt;
Significant informations are file properties.&lt;br /&gt;
In fact, the second action of the script is to use &amp;quot;store-getstat&amp;quot; XML element to obtain the day of the week, day of month, month, year, hour and minute.&lt;br /&gt;
The last task is reproduce files stored in the &amp;quot;audio&amp;quot; folder for every collected informations.&lt;br /&gt;
&lt;br /&gt;
The script is structured to use the Innovaphone Voicemail audio file. &lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example if installed in a directory called &amp;quot;SPEAKING CLOCK&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/speaking_clock/speaking_clock.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone.&lt;br /&gt;
&lt;br /&gt;
[[Image:sp_vm_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
To set your language, download the appropriate Innovaphone Voice Mail package from http://download.innovaphone.com/ice/6.00/ and copy audio file in &amp;quot;audio&amp;quot; folder.&lt;br /&gt;
&lt;br /&gt;
E.g.  vm-it for Italian, vm-en for English, etc.&lt;br /&gt;
&lt;br /&gt;
Edit the script at line 7 and change the value of variable &#039;&#039;&#039;$lang&#039;&#039;&#039; according to your language:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;assign out=&amp;quot;$lang&amp;quot; value=&amp;quot;it&amp;quot;/&amp;gt;&#039;&#039;&#039; for Italian&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;assign out=&amp;quot;$lang&amp;quot; value=&amp;quot;en&amp;quot;/&amp;gt;&#039;&#039;&#039; for English&lt;br /&gt;
&lt;br /&gt;
Edit the script at line 37, 46 and 57 and change the name of &#039;&#039;&#039;string2&#039;&#039;&#039; variable to permit the right localization of files that play &amp;quot;hours&amp;quot;, &amp;quot;and&amp;quot;, &amp;quot;minutes&amp;quot; announcement.&lt;br /&gt;
&lt;br /&gt;
==Licensing Information==&lt;br /&gt;
The aforementioned &#039;&#039;audio files&#039;&#039; are part of the innovaphone voice mail package and as such require a valid license.  You thus need to have a voice-mail license installed to use them.  Of course, you can record the files yourself to avoid this.&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
*[http://download.innovaphone.com/ice/wiki-src#speakclock http://download.innovaphone.com/ice/wiki-src#speakclock] - download the complete file package of scripts and files described in this article.&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=31983</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=31983"/>
		<updated>2013-12-12T18:27:23Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* PERL script */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file. Examples:&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;&lt;br /&gt;
&lt;br /&gt;
- reads files&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call (for more info see the Related Articles at the bottom of the page). This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only for version 2.0 you must have a Waiting Queue object in your PBX used to generate the call and play the Wake Up music.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted, the service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert (used in version 1.4 only; in version 2.0 the wake up music is generated by the PBX Waiting Queue object)&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
In version 1.4, if you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
New version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
Alternative version of send_call.pl (v2.0 september 2013): [[media:send_call_2_0_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
== Related Articles ==&lt;br /&gt;
[[Howto:Initiate a Mobility CallBack via simple HTTP GET or POST request]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=31982</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=31982"/>
		<updated>2013-12-12T18:27:08Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* XML script */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file. Examples:&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call (for more info see the Related Articles at the bottom of the page). This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only for version 2.0 you must have a Waiting Queue object in your PBX used to generate the call and play the Wake Up music.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted, the service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert (used in version 1.4 only; in version 2.0 the wake up music is generated by the PBX Waiting Queue object)&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
In version 1.4, if you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
New version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
Alternative version of send_call.pl (v2.0 september 2013): [[media:send_call_2_0_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
== Related Articles ==&lt;br /&gt;
[[Howto:Initiate a Mobility CallBack via simple HTTP GET or POST request]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=31981</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=31981"/>
		<updated>2013-12-12T18:26:25Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Localization */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call (for more info see the Related Articles at the bottom of the page). This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only for version 2.0 you must have a Waiting Queue object in your PBX used to generate the call and play the Wake Up music.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted, the service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert (used in version 1.4 only; in version 2.0 the wake up music is generated by the PBX Waiting Queue object)&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
In version 1.4, if you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
New version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
Alternative version of send_call.pl (v2.0 september 2013): [[media:send_call_2_0_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
== Related Articles ==&lt;br /&gt;
[[Howto:Initiate a Mobility CallBack via simple HTTP GET or POST request]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=File:Send_call_2_0_perl.zip&amp;diff=30888</id>
		<title>File:Send call 2 0 perl.zip</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=File:Send_call_2_0_perl.zip&amp;diff=30888"/>
		<updated>2013-09-11T15:30:34Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30838</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30838"/>
		<updated>2013-09-06T14:31:02Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call (for more info see the Related Articles at the bottom of the page). This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only for version 2.0 you must have a Waiting Queue object in your PBX used to generate the call and play the Wake Up music.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted. The service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert (used in version 1.4 only; in version 2.0 the wake up music is generated by the PBX Waiting Queue object)&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
In version 1.4, if you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
New version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
Alternative version of send_call.pl (v2.0 september 2013): [[media:send_call_2_0_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
== Related Articles ==&lt;br /&gt;
[[Howto:Initiate a Mobility CallBack via simple HTTP GET or POST request]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30836</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30836"/>
		<updated>2013-09-06T14:29:38Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Download */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call (for more info see the Related Articles at the bottom of the page). This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only for version 2.0 you must have a Waiting Queue object in your PBX used to generate the call and play the Wake Up music.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted. The service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert (used in version 1.4 only; in version 2.0 the wake up music is generated by the PBX Waiting Queue object)&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
In version 1.4, if you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
New version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
Alternative version of send_call.pl (v2.0 september 2013): [[media:send_call_2_0_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
== Related Articles ==&lt;br /&gt;
&lt;br /&gt;
[[Howto:Initiate a Mobility CallBack via simple HTTP GET or POST request]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30835</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30835"/>
		<updated>2013-09-06T14:27:22Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Known Problems */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call (for more info see the Related Articles at the bottom of the page). This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only for version 2.0 you must have a Waiting Queue object in your PBX used to generate the call and play the Wake Up music.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted. The service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert (used in version 1.4 only; in version 2.0 the wake up music is generated by the PBX Waiting Queue object)&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
In version 1.4, if you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
A new version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
== Related Articles ==&lt;br /&gt;
&lt;br /&gt;
[[Howto:Initiate a Mobility CallBack via simple HTTP GET or POST request]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30834</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30834"/>
		<updated>2013-09-06T14:26:26Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Localization */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call (for more info see the Related Articles at the bottom of the page). This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only for version 2.0 you must have a Waiting Queue object in your PBX used to generate the call and play the Wake Up music.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted. The service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert (used in version 1.4 only; in version 2.0 the wake up music is generated by the PBX Waiting Queue object)&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
If you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring. This problem is under investigation.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
A new version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
== Related Articles ==&lt;br /&gt;
&lt;br /&gt;
[[Howto:Initiate a Mobility CallBack via simple HTTP GET or POST request]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30833</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30833"/>
		<updated>2013-09-06T14:25:28Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Localization */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call (for more info see the Related Articles at the bottom of the page). This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only for version 2.0 you must have a Waiting Queue object in your PBX used to generate the call and play the Wake Up music.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted. The service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert (used in version 1.4 only)&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
If you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring. This problem is under investigation.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
A new version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
== Related Articles ==&lt;br /&gt;
&lt;br /&gt;
[[Howto:Initiate a Mobility CallBack via simple HTTP GET or POST request]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30832</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30832"/>
		<updated>2013-09-06T14:23:09Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call (for more info see the Related Articles at the bottom of the page). This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only for version 2.0 you must have a Waiting Queue object in your PBX used to generate the call and play the Wake Up music.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted. The service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
If you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring. This problem is under investigation.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
A new version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
== Related Articles ==&lt;br /&gt;
&lt;br /&gt;
[[Howto:Initiate a Mobility CallBack via simple HTTP GET or POST request]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30831</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30831"/>
		<updated>2013-09-06T14:21:47Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call (for more info see the Related Articles at the bottom of the page). This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
Only for version 2.0 you must have a Waiting Queue object in your PBX used to generate the call and play the Wake Up music.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted. The service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
If you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring. This problem is under investigation.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
A new version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
== Related Articles ==&lt;br /&gt;
&lt;br /&gt;
[[Howto:Initiate a Mobility CallBack via simple HTTP GET or POST request]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30830</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30830"/>
		<updated>2013-09-06T14:18:36Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call (for more info see the Related Articles at the bottom of the page). This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted. The service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
If you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring. This problem is under investigation.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
A new version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
== Related Articles ==&lt;br /&gt;
&lt;br /&gt;
[[Howto:Initiate a Mobility CallBack via simple HTTP GET or POST request]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30829</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30829"/>
		<updated>2013-09-06T14:16:48Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Related Articles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call (for more info see the Related Articles at the bottom of the page). This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
					&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted. The service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
If you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring. This problem is under investigation.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
A new version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
== Related Articles ==&lt;br /&gt;
&lt;br /&gt;
[[Howto:Initiate a Mobility CallBack via simple HTTP GET or POST request]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30828</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30828"/>
		<updated>2013-09-06T14:16:17Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Related Articles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call (for more info see the Related Articles at the bottom of the page). This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
					&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted. The service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
If you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring. This problem is under investigation.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
A new version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
== Related Articles ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Howto|Initiate a Mobility CallBack via simple HTTP GET or POST request]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30827</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30827"/>
		<updated>2013-09-06T14:15:23Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call (for more info see the Related Articles at the bottom of the page). This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
					&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted. The service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
If you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring. This problem is under investigation.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
A new version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;br /&gt;
&lt;br /&gt;
== Related Articles ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Howto|{{Initiate a Mobility CallBack via simple HTTP GET or POST request}}]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30826</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30826"/>
		<updated>2013-09-06T14:14:05Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* PERL script */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call (for more info see the Related Articles at the bottom of the page). This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
					&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted. The service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
If you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring. This problem is under investigation.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
A new version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30825</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30825"/>
		<updated>2013-09-06T14:11:26Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* PERL script */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function to generate a call. More info here: http://wiki.innovaphone.com/index.php?title=Howto:Initiate_a_Mobility_CallBack_via_simple_HTTP_GET_or_POST_request. This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
					&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted. The service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
If you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring. This problem is under investigation.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
A new version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30824</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=30824"/>
		<updated>2013-09-06T13:50:45Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher for version 1.4 of perl script&lt;br /&gt;
&lt;br /&gt;
innovaphone PBX, V9 hotfix 22 or higher for version 2.0 of perl script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and performs the following tasks:&lt;br /&gt;
&lt;br /&gt;
- every minute checks the folder called &amp;quot;alarm&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
- reads files,&lt;br /&gt;
&lt;br /&gt;
- uses the file name as called number,&lt;br /&gt;
&lt;br /&gt;
- checks the file content to verify if is wake up time.&lt;br /&gt;
&lt;br /&gt;
The version 1.4 of the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
The version 2.0 uses the Innovaphone CallBack function using an HTTP GET request to generate a call. This release doesn&#039;t handle the call state like busy or not answer.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
The version 1.4 handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
					&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted. The service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
If you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring. This problem is under investigation.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
A new version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Innovaphone_LDAP_on_ALCATEL_ATLinks_Temporis_IP_phones&amp;diff=30484</id>
		<title>Howto:Innovaphone LDAP on ALCATEL ATLinks Temporis IP phones</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Innovaphone_LDAP_on_ALCATEL_ATLinks_Temporis_IP_phones&amp;diff=30484"/>
		<updated>2013-08-10T10:05:41Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:3rd Party Input}}&lt;br /&gt;
== Summary ==&lt;br /&gt;
This document describes how to configuring Innovaphone LDAP on ALCATEL ATLinks Temporis IP phones.&lt;br /&gt;
The LDAP search feature, when configured and enabled on an IP phone, allows a user to search and dial a specified object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
This information applies to&lt;br /&gt;
&lt;br /&gt;
* Innovaphone PBX v9 or later&lt;br /&gt;
* ALCATEL ATLinks Temporis IP phones supporting LDAP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: enter keywords, foreign translations and/or synoyms not appearing in the article here for better search results --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Before you use the LDAP search feature, you need to know some Innovaphone PBX parameters:&lt;br /&gt;
* PBX IP address&lt;br /&gt;
* PBX name&lt;br /&gt;
* ldap access credentials&lt;br /&gt;
&lt;br /&gt;
Configure LDAP parameters of ALCATEL ATLinks Temporis IP phones as below pictures shows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Alcatel ATLinks IP600 - LDAP.PNG]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LDAP name filter: is the search criteria for name look up. The format of the search filter must be compliant to RFC 2254.&lt;br /&gt;
&lt;br /&gt;
LDAP number filter: is the search criteria for number look up. The format of the search filter must be compliant to RFC 2254.&lt;br /&gt;
&lt;br /&gt;
Server Address: IP address of Innovaphone PBX.&lt;br /&gt;
&lt;br /&gt;
Port: LDAP server port.&lt;br /&gt;
&lt;br /&gt;
Base: This setting specifies the LDAP search base which corresponds to the location in the directory from which the LDAP search is requested to begin. cn=&amp;quot;PBX NAME&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
UserName: Innovaphone ldap username.&lt;br /&gt;
&lt;br /&gt;
Password: Innovaphone ldap password.&lt;br /&gt;
&lt;br /&gt;
Max Hits: This setting specifies the maximum number of search results to be returned by the LDAP server.&lt;br /&gt;
&lt;br /&gt;
LDAP Name Attributes: This setting can be used to specify the “name” attributes of each record which are to be returned in the LDAP search results.&lt;br /&gt;
&lt;br /&gt;
LDAP Number Attributes: This setting can be used to specify the “number” attributes of each record which are to be returned in the LDAP search results by the LDAP server.&lt;br /&gt;
&lt;br /&gt;
LDAP Display Name: Defines type of user name information to be shown on the screen.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
You can troubleshooting LDAP problems using Innovaphone RPCAP features in conjunction with wireshark.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == Related Articles == --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Howto|{{PAGENAME}}]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Innovaphone_LDAP_on_ALCATEL_ATLinks_Temporis_IP_phones&amp;diff=28365</id>
		<title>Howto:Innovaphone LDAP on ALCATEL ATLinks Temporis IP phones</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Innovaphone_LDAP_on_ALCATEL_ATLinks_Temporis_IP_phones&amp;diff=28365"/>
		<updated>2013-02-06T18:17:19Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:3rd Party Input}}&lt;br /&gt;
== Summary ==&lt;br /&gt;
This document describes how to configuring Innovaphone LDAP on ALCATEL ATLinks Temporis IP phones.&lt;br /&gt;
The LDAP search feature, when configured and enabled on an IP phone, allows a user to search and dial a specified object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
This information applies to&lt;br /&gt;
&lt;br /&gt;
* Innovaphone PBX v9 or later&lt;br /&gt;
* ALCATEL ATLinks Temporis IP phones supporting LDAP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: enter keywords, foreign translations and/or synoyms not appearing in the article here for better search results --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Before you use the LDAP search feature, you need to know some Innovaphone PBX parameters:&lt;br /&gt;
* PBX IP address&lt;br /&gt;
* PBX name&lt;br /&gt;
* ldap access credentials&lt;br /&gt;
&lt;br /&gt;
Configure LDAP parameters of Cisco Linksys phone as below pictures shows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Alcatel ATLinks IP600 - LDAP.PNG]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LDAP name filter: is the search criteria for name look up. The format of the search filter must be compliant to RFC 2254.&lt;br /&gt;
&lt;br /&gt;
LDAP number filter: is the search criteria for number look up. The format of the search filter must be compliant to RFC 2254.&lt;br /&gt;
&lt;br /&gt;
Server Address: IP address of Innovaphone PBX.&lt;br /&gt;
&lt;br /&gt;
Port: LDAP server port.&lt;br /&gt;
&lt;br /&gt;
Base: This setting specifies the LDAP search base which corresponds to the location in the directory from which the LDAP search is requested to begin. cn=&amp;quot;PBX NAME&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
UserName: Innovaphone ldap username.&lt;br /&gt;
&lt;br /&gt;
Password: Innovaphone ldap password.&lt;br /&gt;
&lt;br /&gt;
Max Hits: This setting specifies the maximum number of search results to be returned by the LDAP server.&lt;br /&gt;
&lt;br /&gt;
LDAP Name Attributes: This setting can be used to specify the “name” attributes of each record which are to be returned in the LDAP search results.&lt;br /&gt;
&lt;br /&gt;
LDAP Number Attributes: This setting can be used to specify the “number” attributes of each record which are to be returned in the LDAP search results by the LDAP server.&lt;br /&gt;
&lt;br /&gt;
LDAP Display Name: Defines type of user name information to be shown on the screen.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
You can troubleshooting LDAP problems using Innovaphone RPCAP features in conjunction with wireshark.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == Related Articles == --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Howto|{{PAGENAME}}]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=File:Alcatel_ATLinks_IP600_-_LDAP.PNG&amp;diff=28364</id>
		<title>File:Alcatel ATLinks IP600 - LDAP.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=File:Alcatel_ATLinks_IP600_-_LDAP.PNG&amp;diff=28364"/>
		<updated>2013-02-06T18:16:40Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Innovaphone_LDAP_on_ALCATEL_ATLinks_Temporis_IP_phones&amp;diff=28363</id>
		<title>Howto:Innovaphone LDAP on ALCATEL ATLinks Temporis IP phones</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Innovaphone_LDAP_on_ALCATEL_ATLinks_Temporis_IP_phones&amp;diff=28363"/>
		<updated>2013-02-06T18:16:19Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: New page: {{Template:3rd Party Input}} == Summary == This document describes how to configuring Innovaphone LDAP on ALCATEL ATLinks Temporis IP phones. The LDAP search feature, when configured and e...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:3rd Party Input}}&lt;br /&gt;
== Summary ==&lt;br /&gt;
This document describes how to configuring Innovaphone LDAP on ALCATEL ATLinks Temporis IP phones.&lt;br /&gt;
The LDAP search feature, when configured and enabled on an IP phone, allows a user to search and dial a specified object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
This information applies to&lt;br /&gt;
&lt;br /&gt;
* Innovaphone PBX v9 or later&lt;br /&gt;
* ALCATEL ATLinks Temporis IP phones supporting LDAP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: enter keywords, foreign translations and/or synoyms not appearing in the article here for better search results --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Before you use the LDAP search feature, you need to know some Innovaphone PBX parameters:&lt;br /&gt;
* PBX IP address&lt;br /&gt;
* PBX name&lt;br /&gt;
* ldap access credentials&lt;br /&gt;
&lt;br /&gt;
Configure LDAP parameters of Cisco Linksys phone as below pictures shows.&lt;br /&gt;
&lt;br /&gt;
[[Image:Alcatel ATLinks IP600 - LDAP.PNG]]&lt;br /&gt;
&lt;br /&gt;
LDAP name filter: is the search criteria for name look up. The format of the search filter must be compliant to RFC 2254.&lt;br /&gt;
&lt;br /&gt;
LDAP number filter: is the search criteria for number look up. The format of the search filter must be compliant to RFC 2254.&lt;br /&gt;
&lt;br /&gt;
Server Address: IP address of Innovaphone PBX.&lt;br /&gt;
&lt;br /&gt;
Port: LDAP server port.&lt;br /&gt;
&lt;br /&gt;
Base: This setting specifies the LDAP search base which corresponds to the location in the directory from which the LDAP search is requested to begin. cn=&amp;quot;PBX NAME&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
UserName: Innovaphone ldap username.&lt;br /&gt;
&lt;br /&gt;
Password: Innovaphone ldap password.&lt;br /&gt;
&lt;br /&gt;
Max Hits: This setting specifies the maximum number of search results to be returned by the LDAP server.&lt;br /&gt;
&lt;br /&gt;
LDAP Name Attributes: This setting can be used to specify the “name” attributes of each record which are to be returned in the LDAP search results.&lt;br /&gt;
&lt;br /&gt;
LDAP Number Attributes: This setting can be used to specify the “number” attributes of each record which are to be returned in the LDAP search results by the LDAP server.&lt;br /&gt;
&lt;br /&gt;
LDAP Display Name: Defines type of user name information to be shown on the screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
You can troubleshooting LDAP problems using Innovaphone RPCAP features in conjunction with wireshark.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == Related Articles == --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Howto|{{PAGENAME}}]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Why_does_the_Gateway_fail_to_route_an_incoming_SIP_call%3F&amp;diff=27789</id>
		<title>Howto:Why does the Gateway fail to route an incoming SIP call?</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Why_does_the_Gateway_fail_to_route_an_incoming_SIP_call%3F&amp;diff=27789"/>
		<updated>2012-12-11T09:12:17Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Since v9hf4 the Gateway supports federation (call by URI).&lt;br /&gt;
That&#039;s why we do not cut-off domain part of incoming calls automatically.&lt;br /&gt;
This may result in &amp;quot;Unallocated (unassigned) number&amp;quot; errors.&lt;br /&gt;
Like this:&lt;br /&gt;
&lt;br /&gt;
  LOG CALL 0 No-Route -&amp;gt;:0381806124@10.24.100.218 / GW3::-&amp;gt;*:: Cause: Unallocated (unassigned) number&lt;br /&gt;
&lt;br /&gt;
Gateway cuts-off domain part only if domain part matches the local domain.&lt;br /&gt;
There&#039;s a new config option on the gateway interface called &amp;quot;Local Domain&amp;quot;.&lt;br /&gt;
If you enter &amp;quot;10.24.100.218&amp;quot; here, called URI is truncated into &amp;quot;0381806124&amp;quot; (plain telephone number).&lt;br /&gt;
Plain telephone number can be roueted and mapped as usual.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- federation error sip local domain Unallocated Unassigned URI hf4 hotfix4 gateway  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Faq|{{PAGENAME}}]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=File:Pbx_redirect.PNG&amp;diff=27306</id>
		<title>File:Pbx redirect.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=File:Pbx_redirect.PNG&amp;diff=27306"/>
		<updated>2012-11-03T12:49:52Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=File:Inno_rtp_warning.PNG&amp;diff=26891</id>
		<title>File:Inno rtp warning.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=File:Inno_rtp_warning.PNG&amp;diff=26891"/>
		<updated>2012-10-15T09:31:01Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=File:Cisco_dummy_RTP.PNG&amp;diff=26888</id>
		<title>File:Cisco dummy RTP.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=File:Cisco_dummy_RTP.PNG&amp;diff=26888"/>
		<updated>2012-10-15T09:16:20Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
	<entry>
		<id>https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=24689</id>
		<title>Howto:Simple Wake-UP Service</title>
		<link rel="alternate" type="text/html" href="https://wiki.innovaphone.com/index.php?title=Howto:Simple_Wake-UP_Service&amp;diff=24689"/>
		<updated>2012-04-19T09:07:34Z</updated>

		<summary type="html">&lt;p&gt;D.giordano: /* Download */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{3rd Party Input}}&lt;br /&gt;
This article describes a simple Wake-Up service.&lt;br /&gt;
Scripts provided are a first release. Any improvements are encouraged!&lt;br /&gt;
&lt;br /&gt;
==Applies To==&lt;br /&gt;
innovaphone PBX, V7 or higher&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Keywords: wakeup, wake up call --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
The wake-up call is a typical Hotel or TelCo service. Innovaphone does not support wake-up calls natively but you can build this service with a simple XML and PERL script.&lt;br /&gt;
&lt;br /&gt;
====XML script====&lt;br /&gt;
The wakeup.xml feature is realized using Innovaphone XML Voicemail script, no license is required for this feature.&lt;br /&gt;
If you call the script a main menu is played. In this menu you can select 1 for set the wake-up time, 2 for disable the wake-up or 3 to check the configured alarm time.&lt;br /&gt;
The XML gets the alarm time via DTMF. It must be specified in 24 hours format as explained in examples below:&lt;br /&gt;
&lt;br /&gt;
1030 means 10 am and 30 minutes&lt;br /&gt;
&lt;br /&gt;
2230 means 10 pm and 30 minutes&lt;br /&gt;
&lt;br /&gt;
0700 means 7 am o&#039;clock&lt;br /&gt;
&lt;br /&gt;
0000 means midnight&lt;br /&gt;
&lt;br /&gt;
Once the alarm time is setted, the XML writes a txt file in the &amp;quot;alarm&amp;quot; folder. Files have this particular format: file name is equal to calling party number and file content is the alarm time in 24 hours format with : as separator between hours and minutes.&lt;br /&gt;
The calling party number will be used as called number and re-called when will be the time to wake-up.&lt;br /&gt;
In this way a user can set only his wake-up and can set again the time without disable it. Every time that a user select the option to enable the wake-up, the XML rewrites the file in the &amp;quot;alarm&amp;quot; folder with the new time.&lt;br /&gt;
Obviously, if the calling party number is missing or restricted the XML will prompt an error message.&lt;br /&gt;
To disable the alarm the XML deletes the file.&lt;br /&gt;
&lt;br /&gt;
ext. 101 calls XML and sets 0800 ---&amp;gt; XML writes the file 101.txt with the content 08:00&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and sets 0830 ---&amp;gt; XML rewrite the file 101.txt with the content 08:30&lt;br /&gt;
&lt;br /&gt;
ext. 101 recalls XML and disables the wake-up ---&amp;gt; XML deletes the file 101.txt&lt;br /&gt;
&lt;br /&gt;
====PERL script====&lt;br /&gt;
PERL is an interpreted language and so can be executed on Linux and Windows operating systems. Linux can interpret perl natively while for Windows you can download many free interpreters like Activeperl or Strawberry perl.&lt;br /&gt;
To run the script send_call.pl you must use a third party server or the Innovaphone Linux Application Platform.&lt;br /&gt;
The reason of a PERL script is the following: the Innovaphone XML script can&#039;t start a call and so is necessary an external agent.&lt;br /&gt;
The script runs in background as a service and checks every minute the directory called &amp;quot;alarm&amp;quot;, reads files and uses the file name as called number and checks the content to verify if is the time to call.&lt;br /&gt;
At the moment the script uses SIP and handles 4 call responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. &lt;br /&gt;
In every cases sends an email and deletes files. Only for the answer case plays a nice music.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
Create a VM object in your PBX and put in the “Script URL” the path of your XML object. Example of configuration of a directory called &amp;quot;wakeup&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://xxx.yyy.zzz.vvv/inno/wakeup/wakeup.xml&lt;br /&gt;
&lt;br /&gt;
Assign a number to this object, now you can call it from any phone and the main menu will be prompted.&lt;br /&gt;
&lt;br /&gt;
[[Image:voicemail_obj.PNG]]&lt;br /&gt;
&lt;br /&gt;
Create a GW without registration with the IP Address of the server where is running the PERL script.&lt;br /&gt;
Create a route from the GW created just now to the GW registered as PBX TRUNK line.&lt;br /&gt;
In this way you can permit calls from PERL script to PBX.&lt;br /&gt;
&lt;br /&gt;
[[Image:gw_route.PNG]]&lt;br /&gt;
&lt;br /&gt;
Open the PERL script with a text editor and configure the global parameters at the beginning of the file as showed in example below:&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_global.PNG]]&lt;br /&gt;
&lt;br /&gt;
At the moment the script handles 4 sip responses: 404 user not found, 486 busy, 487 not answer and 200 answer ok. If you want add a new cause you can edit the script and create a new condition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:perl_sip_cause.png]] --&amp;gt;&lt;br /&gt;
					&lt;br /&gt;
The music played during connection uses the G.711A codec. If you want change it you must modify the rtp_param [ 8, 160, 160/8000, &#039;PCMA/8000&#039; ] in the &amp;quot;invite&amp;quot; routine.&lt;br /&gt;
&lt;br /&gt;
[[Image:perl_sip_ua.png]]&lt;br /&gt;
&lt;br /&gt;
If you want execute the script in a service mode, you must edit rc.local in your Linux OS file and write the istruction: &amp;quot;perl /your script path/send_call.pl 2&amp;gt;&amp;amp;1 &amp;amp; &amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you want, there is an optional feature to register the Perl SIP agent to your PBX: #$ua-&amp;gt;register ( expires =&amp;gt; &amp;quot;300&amp;quot;,). It&#039;s disabled per default.&lt;br /&gt;
&lt;br /&gt;
==Localization==&lt;br /&gt;
This script is delivered with Italian prompts, but you can produce your own prompts and wordings. Audio files are in the &amp;quot;audio&amp;quot; folder. Files are following:&lt;br /&gt;
&lt;br /&gt;
Filename: Prompt&lt;br /&gt;
&lt;br /&gt;
welcomemenu: “press 1 to set the wake-up, press 2 to disable wake-up, press 3 to check wake-up status”&lt;br /&gt;
&lt;br /&gt;
Invalidcgpn: “the calling party number is missing or restricted. The service can not be activated”&lt;br /&gt;
&lt;br /&gt;
wrongselection: “the selected option is invalid”&lt;br /&gt;
&lt;br /&gt;
timemenu: &amp;quot;set the time in 24 hours format&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wrongtime: &amp;quot;the time selected is invalid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
finalok: &amp;quot;wake-up service enable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
cancelalarm: &amp;quot;wake-up service disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
timeis: &amp;quot;setted time is&amp;quot;&lt;br /&gt;
&lt;br /&gt;
min: &amp;quot;minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
0..23: hours followed by &amp;quot;and&amp;quot;&lt;br /&gt;
&lt;br /&gt;
n00..n59: minutes&lt;br /&gt;
&lt;br /&gt;
Wakeupmsg: nice music wake-up alert&lt;br /&gt;
&lt;br /&gt;
==Known Problems==&lt;br /&gt;
If you activate the Authentication for SIP messages and there are more then two simultaneous calls, the script sends some INVITEs without authentication or with wrong checksum and so not all phones ring. This problem is under investigation.&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
[[media:wakeup.zip]]&lt;br /&gt;
&lt;br /&gt;
XML revisioned by Marc Steiner, inikon AG: [[media:wakeup-xml.zip]]&lt;br /&gt;
&lt;br /&gt;
A new version of send_call.pl (v1.4 April 2012): [[media:send_call_perl.zip]]&lt;/div&gt;</summary>
		<author><name>D.giordano</name></author>
	</entry>
</feed>