[asterisk-users] Asterisk Manager to Record Greetings

Peder @ NetworkOblivion peder at networkoblivion.com
Fri Aug 10 11:26:04 CDT 2007


That's great, now say you have 5 or 6 AA's and each one has 10 different 
parts that you want to record ("thank you for calling..."  "for Steve 
press 1" "for dave press 2").  Rather than having to record a long 
message, I want to break it into pieces so that if "dave" leaves, we can 
just record that one chunk rather than the whole thing.  I would need 
lots of extensions pre-setup for each chunk.  Not very efficient.

Gordon Henderson wrote:
> On Fri, 10 Aug 2007, Peder @ NetworkOblivion wrote:
> 
>> I am trying to use Asterisk Manager via php to record auto attendant
>> greetings and I just can't figure out how to do it.  I've got the php
>> page working and I can click to call between two phones.  However if I
>> click to call just a single phone and then try to enable "monitor", when
>> I pick up the ringing phone, it just hangs up and doesn't record
>> anything.  I'm sure I just don't know the appropriate syntax.  Has
>> anybody done something like this?  I can do the php stuff, I just need
>> the Asterisk Manager syntax.
>>
>> I want to call a phone, when they pick up, it starts recording to a file
>> and when they hang up, it closes the file.
>>
>> Any help would be appreciated.
> 
> I can't help but think you're making life hard for yourself.
> 
> Why not do it by dialling a code on the telephone and having the dialplan 
> Record() what's being spoken rather than go to the bother of writing PHP 
> to call asterisk via the monitor interface...
> 
> But I don't know the whole story of your implementation!
> 
> I record prompts like this:
> 
> ; Record Intro message.
> 
> exten => 771,1,Answer()
> exten => 771,2,Wait(1)
> exten => 771,3,Playback(beep)
> exten => 771,4,Record(/var/spool/app/introMessage:wav)
> exten => 771,5,Playback(/var/spool/app/introMessage)
> exten => 771,6,Hangup()
> 
> Gordon
> 
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 




More information about the asterisk-users mailing list