exten => i,2,Goto(500,5)
exten => 1,1,System(/bin/mv /var/lib/asterisk/sounds/en/mymessage.gsm
/var/lib/asterisk/sounds/en/autoattendant.gsm)
exten => 1,2,Playback(en/terimakasih)
exten => 1,3,Playback(en/tekan3)
exten => 2,1,Goto(500,1)
exten => 3,1,Goto(500,1)
exten => 4,1,Hangup
include => internal-sip
This is the context about recording that we put it in extensions.conf and also in sip.conf, that’s why I
put "include => internal-sip" in the bottom of the context. We create the special extension 500 to record
the greeting for our system. We will put the record as greeting, when someone from outside call our
lines, then Asterisk will play this greeting. I will explain it to you don’t worry . Those lines means:
1. If dial 500 then answer.
2. Play the sound file /var/lib/asterisk/sounds/en/silakanrekamgreeting.gsm. You can record a
custom sound file which contain something like "Please record your greeting after the beep",
save it as gsm format and call it from here.
3. Record your message (say the greeting you want to record) and put it as
/var/lib/asterisk/sounds/en/mymessage.gsm
4. Play the file /var/lib/asterisk/sounds/en/pesananda.gsm. You can record a custom sound file
which contain something like "Your greeting is", save it as gsm format and call it from here.
5. Play your record greeting that just you record in step 3.
6. Play the sound file /var/lib/asterisk/sounds/en/tekan1.gsm. You can record a custom sound file
which contain something like "Please press 1 to save your message", save it as gsm format and
call it from here.
7. Wait 3 second for pressing 1
8. t,1 means that if 3 seconds already time-out then play the sound file
/var/lib/asterisk/sounds/en/maafmohoulangi.gsm. You can record a custom sound file which
contain something like "Please re-record your message", save it as gsm format and call it from
here.
9. t,2 go to point 6 above and repeat the steps.
10.i,1 means if you press another number in step 7 (you don’t record the message) then play the
sound file /var/lib/asterisk/sounds/en/pesanandasalah.gsm. You can record a custom sound file
which contain something like "Sorry I didn’t get that", save it as gsm format and call it from
here.
11.i,2 go to point 6 above and repeat the steps.
12.1,1 if you press 1 in step 7 then asterisk will move /bin/mv
/var/lib/asterisk/sounds/en/mymessage.gsm to /var/lib/asterisk/sounds/en/autoattendant.gsm
13.1,2 means play the sound file /var/lib/asterisk/sounds/en/terimakasih.gsm. You can record a
custom sound file which contain something like "thankyou", save it as gsm format and call it
Comentarios a estos manuales