I'm scratching my head trying to work out a way of sending a pre-recorded message as a 'Page' to a list of phones ( "Oi! you muppets you've left the server room door open!" or somesuch message :-) controlled by an external trigger. I can do a normal page (phones auto-answer on speaker) with SipAddHeader but that doesn't let me play a pre-recorded message. Any suggestions? -- Regards, Russell -------------------------------------------------------------------- | Russell Brown | MAIL: russell at lls.com PHONE: 01780 471800 | | Lady Lodge Systems | WWW Work: http://www.lls.com | | Peterborough, England | WWW Play: http://www.ruffle.me.uk | --------------------------------------------------------------------
-----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Russell Brown Sent: Tuesday, February 15, 2011 12:40 PM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Paging a message. How? I'm scratching my head trying to work out a way of sending a pre-recorded message as a 'Page' to a list of phones ( "Oi! you muppets you've left the server room door open!" or somesuch message :-) controlled by an external trigger. I can do a normal page (phones auto-answer on speaker) with SipAddHeader but that doesn't let me play a pre-recorded message. Any suggestions? -- Regards, Russell Set up a context to play the message like this [playit] Exten => s,1,playback(${ARG1}) Exten => s,n,playback(vm-goodbye) Exten => s,n,hangup Then add this to your "normal page" function Exten => s,n,Goto(playit,s,1)
Russell Brown wrote:> I can do a normal page (phones auto-answer on speaker) with SipAddHeader > but that doesn't let me play a pre-recorded message. > > Any suggestions? >Dial plan: [polycom-page] ;************************************************* ;* Play the previously recorded page file over the ;* Polycom speaker. ;************************************************* exten => s,1,NoCDR() exten => s,n,ResetCDR() exten => s,n,Set(CALLERID(name)=Paging) exten => s,n,Set(CALLERID(num)=44) exten => s,n,Wait(.5) exten => s,n,Playback(out) exten => s,n,Hangup() Call file: cat 0.call Channel: Local/4220 at sip/n CallerID: Paging <44> WaitTime: 5 MaxRetries: 0 Context: polycom-page Extension: s Priority: 1 Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."