8/23/2023 0 Comments Incoming call from asterisk![]() I recommend an seperate folder ~ # mkdir ~ # ffmpeg -i /tmp/mySpeech.mp3 -ar 8000 -ac 1 -ab 64 ~ # ffmpeg -i /tmp/mySpeech.mp3 -ar 8000 -ac 1 -ab 64 -f mulaw /var/lib/asterisk/sounds/my/mySpeech. It has to convert in the gsm specific format. *CLI> NOTICE: pbx_spool.c:463 attempt_thread: Call completed to can also use your own speech files. If the call would accepted a hello world greeting is ~ # asterisk -c To test the setup, copy the mycall.call file to ~ cp /root/mycall.call /var/spool/asterisk/outgoing Importend is the Asterisk Ready ~ # asterisk -c asterisk-phones is the context and 10 is the extension refered from the mycall.call file.įor test purposes start asterisk in foreground. ![]() Move all default extension ~ # mkdir ~ # mv /etc/asterisk/extensions.* /etc/asterisk/extensions_orgĪnd create a /etc/asterisk/nf with sequences what to do if the mycall.call file is used. Replace 012345678with the number you want to call. Then create a call file /root/mycall.call. At the register directive adjust the internal phone number (here 623) noted previously. The LED adjacent to the remote line that is ringing flashes green and red if there are one or more active or held calls and one or more incoming calls on the. And change the localnet and permit properties to your subnet. For incoming calls, Sectionname must match the register directiveĪdjust the host and fromdomain variables with the IP Address of your Fritzbox. ![]() Register => virt asterisk SIP phone for outgoing calls Rename the default /etc/asterisk/sip.conf file an create a new one Then install ~ # sudo ~ #apt-get install asterik ffmpeg Note the username and the internal phone number (here 623). The new phone in Phonelist New Phone overview Deselect Numbers asterisk shouldn’t answer Open the Fritz!Box GUI, then open the Phonelist Phonelistĭeselect Phone numbers for which asterisk should not receive incoming calls (this would also work). In this example I will use a Fritz!box as the upstream SIP Server for asterisk.įirst create an IP Phone and an corrosponding User Account at the Fritz!box. Asterisk is a complete VoIP/SIP solution but can also be used as a SIP client to send a prerecorded message.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |