How to configure extensions?


I want do some configurations on my phones… For example, when a person call one of my phone, I want send this call on a voicemail.
So, What file must be configured ?

In my zapata.conf



And, in my extensions.conf

exten => 304,1,Answer()
exten => 304,2,MP3Player(/var/lib/asterisk
exten => 304,3,Voicemail(304)
exten => 304,4,Hangup()

But, when I call the phone 304, This phone ring but I can’t hear the mp3 and I can’t access the voicemail…

My configuration is correct???


try this in extensions.conf:

exten => s,1,Answer()
exten => s,2,MP3Player(/var/lib/asterisk/Your_mp3_file.mp3)
exten => s,3,Voicemail(304)
exten => s,4,Hangup()

I try this configuration but it doesn’t resolv my problem…

My configuration is correct ???



This context is correct ???



callerid =
calleridnum =
context = context_from_extensions.conf
channel => 3

put context =>
before channel(s) declaration

Does Your both phone work in the same context - [from-pstn] ?
what messages are shown in asterisk console ?


[quote]Does Your both phone work in the same context - [from-pstn] ?

Where I can see if my phone work in the same context ???

In order to do this configuration. What file must I configure???
For the moment, I configured “zapata.conf” and "extensions.conf"
There are another files???



  1. where are Yours phones ? sip.conf/iax.conf/zapata.conf ?
  2. does Your phones work in the same context ?
  • context are in extensions.conf
  • extensions are in context

You can name contexts as You like.
i will say:
" a


does i know whole alphabet ?"
look here: