New Forum system requires email address which you used to apply for your account to replace your original username. Password stays the same.Please see this post for more details
http://forum.yealink.com/forum/showthread.php?tid=40344

Yealink Test Club has been officially launched. Please visit post below to get detail information. Come and join us!
http://forum.yealink.com/forum/announcements.php?aid=18

We just had the YMCS online and we are also working on the features plan on the future versions, in this regard we are need to hear your voice about the YMCS.
Please visit : http://forum.yealink.com/forum/showthread.php?tid=42322


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XML and playing asterisk wav voicemail files
Author Message
lekcomp Offline
Junior Member
**

Posts: 12
Joined: Mar 2014
Reputation: 0
Post: #1
XML and playing asterisk wav voicemail files
I'm trying to build a script that plays audio files stored on the pbx but am unsure about the formatting of the xml. Here is what I am outputting to the phone:

<TextMenu
style="radio"
Beep="no"
defaultIndex="1"
>
<Title wrap="no">Music</Title>
<MenuItem>
<Prompt>="Sample File" </Prompt>
<URI>Wav.Play:/var/lib/music/sample.wav</URI>
</MenuItem>
</TextMenu>

Am I missing something?

It displays fine but when I press Select nothing happens.
(This post was last modified: 03-06-2014 04:01 AM by lekcomp.)
03-06-2014 03:58 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,684
Joined: Dec 2012
Reputation: 22
Post: #2
RE: XML and playing asterisk wav voicemail files
Hi
I don't know whether the syntax "<URI>Wav.Play:/var/lib/music/sample.wav</URI>" is right.

Can you redirect to some urls of xml or php?
What are your phone model and version?
03-06-2014 02:41 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
lekcomp Offline
Junior Member
**

Posts: 12
Joined: Mar 2014
Reputation: 0
Post: #3
RE: XML and playing asterisk wav voicemail files
The top of page 39 (or really 41) of http://www.yealink.com/Upload/document/X...635570.pdf indicates the following:

Wav.Play:[tftp|http://[username[:password]
@]<host>[:port][/<Path>]/<file>

This is a T38G
FW: 38.70.0.126
HW: 21.5.5.160.64.0.0

Putting in a link to another script works fine.
(This post was last modified: 03-07-2014 12:36 AM by lekcomp.)
03-07-2014 12:31 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
lekcomp Offline
Junior Member
**

Posts: 12
Joined: Mar 2014
Reputation: 0
Post: #4
RE: XML and playing asterisk wav voicemail files
Nothing? What is the wav.play feature for if not for this? And if this isn't how it's done, how do you do it?
03-11-2014 02:04 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,684
Joined: Dec 2012
Reputation: 22
Post: #5
RE: XML and playing asterisk wav voicemail files
Can you test as below syntax for reference? (Execute.xml)
--------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<YealinkIPPhoneExecute Beep="yes">

<ExecuteItem URI="Wav.Play:http://10.2.9.5:9/XML_Browser/BackHome.wav"/>


</YealinkIPPhoneExecute>

<!--Below is the test sample template for you.
<ExecuteItem URI="Key:LINE1"/>
<ExecuteItem URI="Key:OK"/>
<ExecuteItem URI="Key:HOTKEY4"/>

<ExecuteItem URI="Dial:12345" />
<ExecuteItem URI="http://10.2.9.5:9/XML_Browser/T46/PhoneDirectory.xml"/>

<ExecuteItem URI="Wav.Play:http://10.2.9.5:9/XML_Browser/BackHome.wav"/>
<ExecuteItem URI="Wav.Stop:http://10.2.9.5:9/XML_Browser/BackHome.wav"/>

<ExecuteItem URI="Command:Reboot"/>
<ExecuteItem URI="Command:Reset"/>
<ExecuteItem URI="Command:ClearCallersList"/>
<ExecuteItem URI="Command:ClearDirectory"/>
<ExecuteItem URI="Command:ClearRedialList"/>

<ExecuteItem URI="Led:SMS=on"/>
<ExecuteItem URI="Led:POWER=on"/>
<ExecuteItem URI="Led:HEADSET=on"/>

<ExecuteItem URI="Led:LINE2_RED=on"/>
<ExecuteItem URI="Led:LINE3_GREEN=slowflash"/>
<ExecuteItem URI="Led:LINE7_ORANGE=fastflash"/>

<ExecuteItem URI="Led:EXP-1-6-RED=fastflash"/>
<ExecuteItem URI="Led:EXP-1-7-RED=on"/>
<ExecuteItem URI="Led:EXP-1-8-RED=on"/>
<ExecuteItem URI="Led:EXP-1-9-RED=on"/>
<ExecuteItem URI="Led:EXP-1-10-ORANGE=on"/>
<ExecuteItem URI="Led:EXP-1-11-RED=on"/>
<ExecuteItem URI="Led:EXP-1-39-RED=on"/>
<ExecuteItem URI="Led:EXP-1-40-GREEN=on"/>

--------------------------------------------
You can refer to more details in below guide which is the latest one.
Yealink_XML_Browser_Developer_V72
(This post was last modified: 03-11-2014 04:34 PM by Yealink Support.)
03-11-2014 04:32 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
lekcomp Offline
Junior Member
**

Posts: 12
Joined: Mar 2014
Reputation: 0
Post: #6
RE: XML and playing asterisk wav voicemail files
I'm not sure how to get the phone to just process and xml file but saving it as an xml and then point straight to it gives me an error of: "Note: File Format Error!". I then presume I should be sending in via php so I created a php with this:

<?php
echo '<?xml version="1.0" encoding="ISO-8859-1"?>' ;
echo '<YealinkIPPhoneExecute Beep="yes">' ;
echo '<ExecuteItem URI="Wav.Play:http://10.2.9.5:9/XML_Browser/BackHome.wav"/>' ;
echo '<ExecuteItem URI="Led:EXP-1-6-RED=fastflash"/>' ;
echo '<ExecuteItem URI="Led:EXP-1-7-RED=on"/>' ;
echo '<ExecuteItem URI="Led:EXP-1-8-RED=on"/>' ;
echo '<ExecuteItem URI="Led:EXP-1-9-RED=on"/>' ;
echo '<ExecuteItem URI="Led:EXP-1-10-ORANGE=on"/>' ;
echo '<ExecuteItem URI="Led:EXP-1-11-RED=on"/>' ;
echo '<ExecuteItem URI="Led:EXP-1-39-RED=on"/>' ;
echo '<ExecuteItem URI="Led:EXP-1-40-GREEN=on"/>' ;
echo '</YealinkIPPhoneExecute>' ;
?>

and all I get is the generated beep and nothing else. I've tried taking out the wav.play line and still just a beep. I've tried leaving only the wav.play line and get just a beep. How should I go about sending this to the phone?

Edit: The link you gave is for V72 firmware. Yealink appears to have decided that the T38G won't go past V70 despite months of claims to the contrary. I'm going off of the V70 guide.
(This post was last modified: 03-14-2014 03:04 AM by lekcomp.)
03-14-2014 01:39 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,684
Joined: Dec 2012
Reputation: 22
Post: #7
RE: XML and playing asterisk wav voicemail files
Sorry. I test below syntaxs and can't get XML Browser to work too. I will submit this BUG to our R&D.
--------------------------------------------------
<YealinkIPPhoneExecute Beep="yes">
<ExecuteItem URI="Wav.Play:http://10.2.91.94:8080/Ring8.wav"/>
<ExecuteItem URI="Led:EXP39-1-6-RED=fastflash"/>
<ExecuteItem URI="Led:EXP39-1-7-RED=on"/>
<ExecuteItem URI="Led:EXP39-1-8-RED=on"/>
<ExecuteItem URI="Led:EXP39-1-9-RED=on"/>
<ExecuteItem URI="Led:EXP39-1-10-ORANGE=on"/>
<ExecuteItem URI="Led:EXP39-1-11-RED=on"/>
<ExecuteItem URI="Led:EXP39-1-37-RED=on"/>
<ExecuteItem URI="Led:EXP39-1-38-GREEN=on"/>
</YealinkIPPhoneExecute>
--------------------------------------------------
03-14-2014 05:35 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
lekcomp Offline
Junior Member
**

Posts: 12
Joined: Mar 2014
Reputation: 0
Post: #8
RE: XML and playing asterisk wav voicemail files
I've seen conflicting info on whether this phone will get V71/V72 firmware or if it will be stuck at V70 firmware. Is there a definitive answer?
03-15-2014 05:44 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
huktar Offline
Junior Member
**

Posts: 1
Joined: Apr 2014
Reputation: 0
Post: #9
RE: XML and playing asterisk wav voicemail files
I am also interested in being able to do this. Has anything been done to fix the bug?
04-17-2014 01:07 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Upload online Voicemail - Yealink T21PE2 andreirp 0 26 09-09-2019 01:31 PM
Last Post: andreirp
  DSS for transfer direct to voicemail lulu92 1 75 09-04-2019 08:42 PM
Last Post: lulu92
  Voicemail Holdfast 1 72 08-31-2019 11:59 AM
Last Post: Babylonia
  Repetitive Voicemail Notifications Gregory T 6 754 07-22-2019 04:53 AM
Last Post: sharon4
  [Workaround] BLF caller preview with Asterisk and T4xG phones Patrick77 4 4,317 11-01-2017 08:22 AM
Last Post: Alexey1
  cant see voicemail caller ID deutschnaftyula 1 2,074 07-13-2017 03:25 AM
Last Post: Lucia_Yealink
  Recovery files? mbristol 3 2,539 06-12-2017 11:04 AM
Last Post: mbristol
  Shared Voicemail tonu 1 2,537 06-23-2016 09:42 AM
Last Post: Karl_Yealink
  voicemail notification led issue / Sip t19p fropa 2 3,748 06-15-2016 08:37 PM
Last Post: Travis_Yealink
  Email Voicemail and keep the voicemail light on bottomsup6 2 3,624 03-30-2016 10:22 PM
Last Post: bottomsup6

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication