[asterisk-users] Retrieving/Streaming audio/video files from DBusing over AGI

Danny Nicholas danny at debsinc.com
Mon May 2 13:30:24 CDT 2011


  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of A E [Gmail]
Sent: Monday, May 02, 2011 1:23 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Retrieving/Streaming audio/video files from
DBusing over AGI

 

 

Just realised that this can better be described another way:

 

What we're essentially trying to do is be able to do any one of these

 

a) stream an audio/video file stored in the DB via AGI into the current
channel so that it plays on the phone

 

OR 

 

b) Do something like what Realtime Voicemail does, where it gets the file
from the DB, saves as a temp file in the user mailbox directory and then
plays it to the caller but this needs to happen through AGI, something along
the lines of readsql (a la func_odbc) inside of AGI

 

OR 

 

c) Anything else that's better than a) and b) above that someone can
suggest. 

 

P.S> I do know about the AGI AddOn of PUT SOUNDFILE and GET SOUNDFILE which
seems to be the only solution we can think of right now, other than of
course having the DB machine exporting the SAN volume as an NFS share for
the Asterisk server to mount, but that sounds like it'll be bad for
performance?

 

Thanks again

 

 

No takers? :(

[Danny Nicholas] 

In your original scenario you were opening yourself to probable latency
issues - I would personally pursue something along the line of option B
where I put the DB data into a temp file and ran a daemon to clear the temp
files hourly or daily as needed.  If the delivery worked well across most
LAN's/WAN's, some gung-ho developer would have hosed another part of
Asterisk trying to get that "bell and whistle" into the trunk.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110502/4f28dc5c/attachment.htm>


More information about the asterisk-users mailing list