dana.satriya

February 12, 2009

How to play mp3 in your asterisk

Filed under: Asterisk

first of all, what we have to install in our asterisk server

mpg123 (either using port/using aptitude)

 @extensions.conf simply add this

 

[player]
exten => 12345,1,Answer()
exten => 12345,2,MP3Player(/var/spool/asterisk/tmp/santa.mp3)
exten => 12345,3,MP3Player(/usr/share/asterisk/mohmp3/Setia.mp3)

 

…. (and so on, depends on which file we want to add)


 

 @ sip.conf, add a user that is below the [player] context

 however, still can not figure how to shuffle that "playlist"..  got any idea anyone?emoticon

February 8, 2009

why [page] instead of [dial]

Filed under: Asterisk

so, i am currently doing some works on asterisk.

Bit currious, why should define [page] function, instead of defining [dial]

this below should work fine for [page]

 

exten => 231,1,Dial(777/SIP&888/SIP)

 

howcome there is still a [page] action, if [dial] is capable of doing it?

is it? or i missed some conceptuals action?


 

Get free blog up and running in minutes with Blogsome
Theme designed by Ian Main