Solved

Asterisk Paging from another Pbx Back to Pbx via Analog

Posted on 2010-08-25
11
676 Views
Last Modified: 2013-12-27
1) Caller will dial a code and hear a beep from asterisk/freepbx. Incoming digits....

2) Caller will record page and hangup. The recording will be based on the digits recieved from the pbx. IE..digits 1000 records to mailbox 1000.
3) Upon hangup, asterisk/Freepbx will immediately attempt to broadcast the Temp Recording page by dialing via Zaptel on a port connected analog to an analog extension on the Pbx, and dialing the pbx paging code destined. If
    there is already a page in progress then it will wait X seconds or set up some sort of outgoing trunk group.
5) This system needs to be able to go off hook on as many as 6 analog ports at the same time and dial whatever page codes to broadcast multiple pages simultaneously.


But im not sure how i can even process this and edit .conf file or what file to edit.


thanks
0
Comment
Question by:ritztech
  • 6
11 Comments
 

Author Comment

by:ritztech
ID: 33528482
just saw this lurking around BUT not sure how i can do this with a TRUNK group via Freepbx and individual codes.

THANKS



from-internal-custom]

; Delayed paging. It this case, you dial 3205 to activate the paging system
; This context records your page, creates a call file that plays the message
; back. Extension 3206 actually plays back the file once the paging system
; answers. The third line of 3205 is used to set the extension number of your
; paging system.
exten => 3205,1,Answer
exten => 3205,2,Wait(2)
exten => 3205,n,set(pageext="local/305")
exten => 3205,n,flite(Reecord your message and then press the pound key)
exten => 3205,n,record(asterisk-recording:ulaw)
exten => 3205,n,system(echo "Channel: ${pageext}" > /var/spool/asterisk/tmp/john.call)
exten => 3205,n,system(echo "WaitTime: 20" >> /var/spool/asterisk/tmp/john.call)
exten => 3205,n,system(echo "Context: from-internal" >> /var/spool/asterisk/tmp/john.call)
exten => 3205,n,system(echo "Extension: 3206" >> /var/spool/asterisk/tmp/john.call)
exten => 3205,n,system(echo "Priority: 1" >> /var/spool/asterisk/tmp/john.call)
exten => 3205,n,system(chmod 777 /var/spool/asterisk/outgoing/john.call)
exten => 3205,n,system(mv /var/spool/asterisk/tmp/john.call /var/spool/asterisk/outgoing/)
exten => 3205,n,hangup()

exten => 3206,1,playback(beep)
exten => 3206,n,playback(asterisk-recording)
exten => 3206,n,Wait(2)
exten => 3206,n,Hangup
0
 

Author Comment

by:ritztech
ID: 33539034
anybody :( .... hehe
0
 
LVL 32

Accepted Solution

by:
DrDamnit earned 500 total points
ID: 33560744
1. Are you using FreePBX with Asterisk or Trixbox or what?
2. What's the version?
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:ritztech
ID: 33588820
freepbx .... the latest version out there ....
0
 

Author Comment

by:ritztech
ID: 33642855
another question i have What if theres like 4 in a row could there be like a queue IF someone calls 3200 Again recored the message in like a 3200TMP1.wav  and 3200TMP2.wav


And is it possible to do IF then Statements in here.

thansk
0
 

Author Comment

by:ritztech
ID: 33642970
New Code on my FLOW
Using ZAPTEL

CALLER on

Mitel PBX users  Dials 1001 > LS-GS Trunk > (asterisk) Zaptel Inbound Trunk > inbound DID OF 1001 > BEEP > Recording Temp Page> Dial Ext 2001 > Outbound Route > FXS Ring Mitel PBX > Analog code 2001 paging Zone to Speaker)

exten => 1001,1,Answer
exten => 1001,2,Wait(1)
exten => 1001,n,set(pageext="zaptel/1001")
exten => 1001,1,playback(beep)
exten => 1001,2,Wait(1)
exten => 1001,n,record(asterisk-recording:ulaw)
exten => 1001,n,system(echo "Channel: ${pageext}" > /var/spool/asterisk/tmp/1001-1.pg)
exten => 1001,n,system(echo "WaitTime: 1" >> /var/spool/asterisk/tmp/1001-1.pg)
exten => 1001,n,system(echo "Context: from-internal" >> /var/spool/asterisk/tmp/1001-1.pg)
exten => 1001,n,system(echo "Extension: 2001" >> /var/spool/asterisk/tmp/1001-1.pg)
exten => 1001,n,system(echo "Priority: 1" >> /var/spool/asterisk/tmp/1001-1.pg)
exten => 1001,n,system(chmod 777 /var/spool/asterisk/outgoing/1001-1.pg)
exten => 1001,n,system(mv /var/spool/asterisk/tmp/1001-1.pg /var/spool/asterisk/outgoing/)
exten => 1001,n,hangup()


exten => 2001,1,dial(Zaptel/2001)
exten => 2001,n,playback(asterisk-recording)
exten => 2001,n,Wait(2)
exten => 2001,n,Hangup


Shall i think of creating a huntgroup of some sort IF 1001 is busy at the moment add members of 10011, 10012 10013 10014 and do a exten >10011 and duplicate every page code by 4.







0
 

Author Closing Comment

by:ritztech
ID: 33702173
.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally published Entrepreneur.com Booming numbers of freelancing professionals are changing the face of work. In the United States alone last year, the number of workers freelancing grew from 700,000 to 54 million, according to a Freelancers’…
Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
The Bounty Board allows you to request an article or video on any technical topic, or fulfill a bounty request to earn points. Watch this video to learn how to use the Bounty Board to get the content you want, earn points, and browse submitted bount…
Where to go on the main page to find the job listings. How to apply to a job that you are interested in from the list that is featured on our Careers page.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now