[Asterisk-Users] Page() command and file playback

Doug Lytle support at drdos.info
Tue Jul 4 13:40:41 MST 2006


Hey everybody,

I've been playing around with the Page() command.  I'm looking for a way 
to play back a pre-recorded page to the phones.  I've seen, in the 
archives that Doug Garstang was looking to do something similar, and the 
response to his query was to use Local channels.  After trying that, I 
am able to play back the sound file to the 2 Cisco 7940s with 
auto-answer turned on.  The problem seems to be that they never leave 
the conference after the sound file completes. 

I'm currently running Asterisk 1.2.9.1  I've done the following:

Set up extension 18 to dial for the test, on hangup, via the 'h' 
extension, run the page command.

Code below:

[from-sip]

exten => 18,1,Playback(goodbye)
esten => 18,n,NoOP(Played it back)
exten => 18,n,Hangup()
exten => h,1,Page(Local/3502 at local-page&Local/3504 at local-page|q)

[local-page]

exten => _X.,1,Set(TIMEOUT(absolute)=10)
exten => _X.,n,Set(CALLERID(Name)=Paging)
exten => _X.,n,Set(CALLERID(Number)=18)
exten => _X.,n,SetVar(_ALERT_INFO=Ring Answer)
exten => _X.,n,Dial(SIP/${EXTEN}||A(out))
exten => _X.,n,Hangup()

Even with the Hangup() on extension 18, the phone doesn't hangup.  
Manually hanging up the phone before the page has completed, leaves the 
phones in the conference along with the phone that I called 18 from.  
Waiting for the page to complete and then hanging up the phone, all 
participants exit the conference and the phones hangup.

It would be nice if the page() had an option to play back a file.

Any suggestions?

Doug
















-- Ben Franklin quote: "Those who would give up Essential Liberty to 
purchase a little Temporary Safety, deserve neither Liberty nor Safety."




More information about the asterisk-users mailing list