[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


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: 24
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: 24
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: 24
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
  Disable voicemail for line 1 simonbr 0 77 11-19-2020 11:19 AM
Last Post: simonbr
  BLF State Indicator "off" and Asterisk 16 terraformer 1 304 09-22-2020 10:26 AM
Last Post: terraformer
  Repetitive Voicemail Notifications Gregory T 7 4,043 03-16-2020 02:29 PM
Last Post: Gregory T
  cant see voicemail caller ID deutschnaftyula 2 3,483 01-15-2020 12:29 AM
Last Post: kogarahchiro
  Is there a way to make the "calls are forwarded on no answer TO VOICEMAIL" go away? justingoldberg 1 1,589 10-14-2019 06:56 AM
Last Post: Garry_Yealink
  Upload online Voicemail - Yealink T21PE2 andreirp 0 961 09-09-2019 01:31 PM
Last Post: andreirp
  DSS for transfer direct to voicemail lulu92 1 1,186 09-04-2019 08:42 PM
Last Post: lulu92
  Voicemail Holdfast 1 1,404 08-31-2019 11:59 AM
Last Post: Babylonia
  [Workaround] BLF caller preview with Asterisk and T4xG phones Patrick77 4 6,496 11-01-2017 08:22 AM
Last Post: Alexey1
  Recovery files? mbristol 3 3,735 06-12-2017 11:04 AM
Last Post: mbristol

Forum Jump:


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

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