Programming PBX Asterisk using PHP?

Ok, I set an asterisk, now I would like to know

  • How do I configure PBX using PHP?
  • Does Asterisk have an API that I can work with?

Please provide basic examples of how I could execute the following scenario

  • send phone number to asterisk
  • an asterisk dials a phone number
+5
source share
8 answers
+8

PAGI PAMI, PHP 5.3+ AGI AMI , http://marcelog.github.com/PAGI http://marcelog.github.com/PAMI.

(PAMI , , )

+4

AMI .

+2

php AGI asterisk pbx

+2

Call Files, .

, , mv , cp!

+1

asterisk pbx php agi.

agi

+1

- , , , . , .

. , 713-590-1234, , , .

, .

[my-menu]
exten => s,1,Noop()
exten => s,n,Playback(recorded-message)
exten => s,n,Hangup()

/var/spool/asterisk/monitor. , - , mv () , , .

.

Channel: SIP/myprovider/7135901234
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: my-menu
Extension: s
Priority: 1

PHP script, /var/spool/asterisk/monitor. PBX, for, , , .

0

All Articles