[asterisk-users] Paging for Praying

Steve Edwards asterisk.org at sedwards.com
Mon Jan 7 17:06:41 CST 2013


On Mon, 7 Jan 2013, bilal ghayyad wrote:

> Thanks for the help and it seems I deleted some of my emails by mistake! 
> I am sorry if I repeated my question.

The lists are archived at:

 	http://lists.digium.com/pipermail/asterisk-users/

On Wed, 2 Jan 2013, bilal ghayyad wrote:

> As I see that the call file is used to generate calls, can I use this 
> technique to page the Phones?

Yes. The call file would look something like:

  	application:	page
  	data:		sip/bilal&sip/steve
  	channel:	local/fajr at prayer-reminder

(This is in alphabetical order. The 'leg' to the channel is executed 
first.)

and a snippet of extensions.conf would look something like:

  	[prayer-reminder]
  		exten = fajr,1,		verbose(1,[${EXTEN}@${CONTEXT}])
  		exten = fajr,n,		playback(time-for-fajr)
  		exten = fajr,n,		hangup()

> When I say Paging, I mean that they are going to hear the sound from the 
> speaker (without pickup the handset).

Then you will have to learn how to set the 'auto-answer' SIP header for 
each of your phone types.

The page at:

  	http://www.voip-info.org/wiki/view/Asterisk+cmd+Page

should help with the specifics of setting auto-answer.

This also means the 'data' line in the call file will change to something 
like:

  	data:		local/bilal at page&local/steve at page

> By using AMI, then I can build PHP script that will use the AMI to do 
> the Page?

I'm sorry. I think we had a 'failure to communicate' in your use of the 
word 'page' in your previous emails. I thought you meant 'playback.'

Since you are only placing a single call, the call file approach should be 
fine. But, to answer your question, you should be able to use AMI as well.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list