How to play a wave file on Live call

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

How to play a wave file on Live call

Postby ajayrao » Wed Sep 29, 2010 3:49 pm

Can anyone guide me How to play a wave file on Live call, I am a new user and also i am not able to locate vicidial.php page.

Please Help.
ajayrao
 
Posts: 2
Joined: Wed Sep 29, 2010 3:44 pm

Postby williamconley » Wed Sep 29, 2010 9:28 pm

1) are you asking how you could play a wav file to a call already in progress? is this call in an agent conference?

2) when you post, please post your entire configuration including (but not limited to) your installation method and OS with kernel or version, vicidial version and build, asterisk version, telephony hardware (model number is helpful here), cluster information if you have one, and whether any other software is installed in the box.

Similar to This:
Vicibox X.X from .iso | Vicidial X.X.X Build XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation

this IS a requirement for posting along with reading the stickies (at the top of each forum) and the manager's manual (available on EFLO.net, both free and paid versions)

3) i am not sure i understand how you could be unable to locate vicidial.php, but we'll jump off that bridge later after you've at least posted the information regarding how you installed this system. (It is installed, right?)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

how to play a wave file on a live call (outbound + inbound)

Postby marmu » Mon Nov 22, 2010 10:35 am

Hello there,

I got the same question "how to play a wave file on a live call". this sound file should be heard by the agent and the callee during the call. Outbound would be enough for now, perhaps this feature must be available for inbound later as well.

This isn't covered by the manuals, but they lead me to the following conclusion: it could be done with a third party call using dial with customer and then music on hold could play a wave file which was added to the audio store before.

I'd appreciate any hints. Someone must have done that before, am I right? What is the appropiate solution for this task in your mind guys?

All the best,
Marcus
Vicibox redux 3.1.10 64 bit (ViciBox_Redux.x86_64-3.1.10.iso)
Admin-GUI: VERSION: 2.4-310a - BUILD: 110506-1537 - with some adaptions :)
Asterisk 1.4.39.2-vici | Single Server | wanpipe_voicetime
2x Intel(R) Xeon(R) X5650 | 12 GB | SAS 15k RAID1
marmu
 
Posts: 190
Joined: Fri Mar 12, 2010 6:57 am

Postby williamconley » Mon Nov 22, 2010 11:06 am

very close, but i'd use a VM message recorded prior. those allow dialing an extension to play a specific recording. :)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby mflorell » Tue Nov 23, 2010 6:12 am

You can activate the options.php option($PreseT_DiaL_LinKs) to show D1_DIAL links in the transfer conf frame which will allow you to dial extensions and play audio while on the line with a customer. We usually recommend using the 8168-recorded audio here, or uploading 851999XX type audio files to play and then hangup because there is no mechanism to hangup these calls once they are initiated.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby marmu » Wed Nov 24, 2010 7:11 am

thanks for your quick replies!

very close, but i'd use a VM message recorded prior. those allow dialing an extension to play a specific recording.

@william: why are VM messages more suited than a recording linked to a specific extension? wouldn't it be sufficient to put something like this in the extensions.conf:
exten => 123,1,Answer()
exten => 123,n,Playback(myrecording)
exten => 123,n,Hangup()

@matt:
activate the options.php option($PreseT_DiaL_LinKs) to show D1_DIAL links in the transfer conf frame

since we are not using the web-gui (except for admin purposes), I think this wouldn't help us a lot. We are triggering action with http-request, so this maybe helpful, but only if it eases the task of playing a file during a live call.

recommend using the 8168-recorded audio

8168/7 those extensions are used for recording gsm/wave files. There is an AGI script triggered in extensions-vicidial.conf:

Code: Select all
; Prompt Extensions:
exten => 8167,1,Answer
exten => 8167,2,AGI(agi-record_prompts.agi,wav-----720000)
exten => 8167,3,Hangup
exten => 8168,1,Answer
exten => 8168,2,AGI(agi-record_prompts.agi,gsm-----720000)
exten => 8168,3,Hangup


further extensions defined in extensions.conf are used for playback:
Code: Select all
; playback of recorded prompts
exten => _851XXXXX,1,Answer
exten => _851XXXXX,2,Playback(${EXTEN})
exten => _851XXXXX,3,Hangup


We won't use the phones to record messages. How can the _851XXXXX extension distinguish between several recordings? I guess the "XXXXX" would be used to define further extensions which are linked to an audio recording(?)
anything wrong or suboptimal with the minimal solution mentioned above?
exten => 123,1,Answer()
exten => 123,n,Playback(myrecording)
exten => 123,n,Hangup()


EDIT:
I just tried to record a wav file by dialing 8167. The following message is played:
"enter your PIN number followed by pound key"

which PIN number? got it, manager manual page 171 "generating audio prompts through a phone". The Pin is "4321".
Regretfully it won't work. The steps which should follow (instructions + beep) etc. don't come up...

Just found out that I don't got
-Audio Store
-Music On Hold
-Text To Speech
under the vicidial admin section, which are described in the admin manual for version 2.2.0.
the webpage says
VERSION: 2.4-256
BUILD: 100523-0840
but since I installed vicibox 2.0.0 does it mean I got vicidial version 2.0.0 which would explain the difference?

Thanks again for your help, it is really appreciated.
Vicibox redux 3.1.10 64 bit (ViciBox_Redux.x86_64-3.1.10.iso)
Admin-GUI: VERSION: 2.4-310a - BUILD: 110506-1537 - with some adaptions :)
Asterisk 1.4.39.2-vici | Single Server | wanpipe_voicetime
2x Intel(R) Xeon(R) X5650 | 12 GB | SAS 15k RAID1
marmu
 
Posts: 190
Joined: Fri Mar 12, 2010 6:57 am

Postby williamconley » Wed Nov 24, 2010 10:59 am

vicibox is only the "installer". the version of vicibox merely indicates the installer version you used. the version of vicidial is independent of that (although vicibox contains a specific version of vicidial on it, they are not technically related as you can choose SVN during installation which will install the present version of Vicidial, without regard for the vicidial version on the CD itself).

so: if you have not yet done so, you may want to upgrade your vicidial with SVN to get the latest version presently available, which may resolve any bugs that have been fixed since your present version. installation instructions are made available during the install process, which starts with the button at the top of the page "VICIDIAL Wiki" and then go to "How to use SVN" on the Wiki. After you've used SVN to download, there will be a document named "UPGRADE.txt" with detailed instructions for upgrade. Usually there are only a few lines of cli commands (as in less than 10?).

Otherwise, of course, it looks like you have a GOOD handle on the operations as it is. Most people would not bother building their own version of Playback(myrecording), but then again the built in one has a variable allowing for several thousand files to be played with that one extension pattern instead of a single recording with a single extension, but whatever works for you works, it is after all YOUR business model. :)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby marmu » Wed Nov 24, 2010 11:36 am

Thanks william for your info, I will update the whole server with the new vicibox 3.0.7 asap.

For now my solution works as expected. I only had to skip the verification of "queryCID" and "alertCID" in the "manager_send.php" ($ACTION=="Originate"), since I don't know how to get them. I am posting http requests to vicidial to control it via c-code. ...strange stuff going on here, I know ;)

Can you (or someone else) tell me how vicidial distinguishes several thousand sound-files with only one extension? How is the relation between sound file and extension? How do I "select" the file to be played "based" on only one extension?
This would be nice to know, I could use that in the future. But it seems that we can live with setting up an extension for a specific sound file, since we will not be using them a lot.
Vicibox redux 3.1.10 64 bit (ViciBox_Redux.x86_64-3.1.10.iso)
Admin-GUI: VERSION: 2.4-310a - BUILD: 110506-1537 - with some adaptions :)
Asterisk 1.4.39.2-vici | Single Server | wanpipe_voicetime
2x Intel(R) Xeon(R) X5650 | 12 GB | SAS 15k RAID1
marmu
 
Posts: 190
Joined: Fri Mar 12, 2010 6:57 am

Postby williamconley » Wed Nov 24, 2010 12:12 pm

sound file name matches the extension!
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 63 guests