LastPass

The Last password you'll have t remember!
Visar inlägg med etikett Incredible Pi. Visa alla inlägg
Visar inlägg med etikett Incredible Pi. Visa alla inlägg

2013-04-10

Shutdown the IncrediblePi by dialing a number

Jag fick en idé att kunna stänga av min IncrediblePi via ett telefonsamtal. Och sökte på nätet där jag hittade denna information.

Börja med att editera /etc/asterisk/extensions_custom.conf och lägg till följande:

[macro-shutdown]
exten => s,1,Authenticate(1234)
exten => s,n,NoOp(Looks like we're going to shutdown!)
exten => s,n,System,'sudo /sbin/halt'
exten => s,n,Return()



Där 1234 är det lösenord du måste ange för att stänga av din Pi. Anser du att du inte behöver något lösen så kan du stryka de två först raderna efter [macro-shutdown]

I webbgränssnittet skapar du nu en Custom Destination som du t ex kallar System Halt för macro-shutdown,s,1
Sedan skapar du en Misc Application som du kallar t ex Shutdown. Sätter Feature Code ex *4258 (*HALT) och väljer Custom Destination som Destination och väljer sedan Shutdown

Du behöver dessutom ändra i filen /etc/sudoers och lägga till sist i filen
asterisk ALL = NOPASSWD: /sbin/halt

Nu borde det fungera internt, vill du kunna stänga av även från utsidan måste du knyta en Inbound Route och förslagsvis en IVR med ett val som inte presenteras.

Här är tråden jag hittade informationen i
Shutdown the Pi by dialing a number

2013-02-06

International Calls with Incredible PBX from Europe

Incredible PBX is great, but is made fro the US market.
That means they did not consider the rest of the world when they configured everything.

So for example you can not dial 001 to call the someone in north amercia.
You will end up in the astridex that will tell you that the number do not exist in your database.

To change this you will need to edit one configfile named extention_custom.conf
If you go to the webpage of your PBX and look for the meny Other and there you will find Config Edit.
It will open up a new page with all the config files, and you are looking for the file extention_custom.conf

Open that file and look for:

exten => _00.,1,SayDigits(${EXTEN:2},)
exten => _00.,2,EAGI(asteridex.agi,${EXTEN})
exten => _00.,3,GotoIf($["${DIAL:0:2}" = "00"]?97)
exten => _00.,4,NoOp(Number to Dial: ${DIAL})
exten => _00.,5,NoOp(Person to Dial: ${DUDE})
exten => _00.,6,Flite("Connecting to: ${DUDE}. One moment please.")
exten => _00.,7,Goto(outbound-allroutes,${DIAL},1)
exten => _00.,8,Hangup()
exten => _00.,97,Playback(num-not-in-db)
exten => _00.,98,Playback(goodbye)
exten => _00.,99,Hangup
 I prefere to change this to 000 insted so it look like this
exten => _000.,1,SayDigits(${EXTEN:2},)
exten => _000.,2,EAGI(asteridex.agi,${EXTEN})
exten => _000.,3,GotoIf($["${DIAL:0:2}" = "00"]?97)
exten => _000.,4,NoOp(Number to Dial: ${DIAL})
exten => _000.,5,NoOp(Person to Dial: ${DUDE})
exten => _000.,6,Flite("Connecting to: ${DUDE}. One moment please.")
exten => _000.,7,Goto(outbound-allroutes,${DIAL},1)
exten => _000.,8,Hangup()
exten => _000.,97,Playback(num-not-in-db)
exten => _000.,98,Playback(goodbye)
exten => _000.,99,Hangup
Scroll down to the bottom and submit the changes. You will have to reload the configuration for the change to take effect. Easiest way to do this by restarting the server.

There you are ready to dial the world...

 

2012-11-26

Interconnecting Asterisk Servers with Incredible PBX and the $35 Raspberry Pi

Nerd Vittles is writing:

We’ve spent the last couple months perfecting Incredible PBX™ as a full-featured VoIP platform for deployment on the$35 Raspberry Pi®. And, with the recent addition of 512MB RAM on the main system board, the Raspberry Pi not only is a great platform for home or SOHO use, but now it’s an ideal server for remote deployment in organizations with small satellite offices scattered around the countryside or for those with a loved one stationed in a faraway place. It’s especially important for those that want to take advantage of free interoffice communications or perhaps low-cost communications facilities that are only available through the main office headquarters. Our project for today is to show you how easy it is to interconnect these satellite offices, traveling salesmen, and troops stationed on the other side of the globe to provide system-wide, transparent Asterisk® communications at no cost. Using Raspberry Pi devices for the remote office or employee, you can set this up with FreePBX® in less than 5 minutes per site! Once configured, everyone in the organization can call everyone else by simply dialing their extension or a prefix with the local extension number. And finally we’ll show you how to securely share communications trunks at one site with your other locations.

Read more at: Interconnecting Asterisk Servers with Incredible PBX and the $35 Raspberry Pi: