Search code examples
asteriskfreepbx

Asterisk exten Playback sound for different dialplan


I have below dialplan where I am trying to play a sound like thursday which is skipping, but when I put evening the it says properly.

exten => *7000,1,NoCDR()
exten => *7000,n,Answer()
exten => *7000,n,System(/bin/cp /etc/asterisk/extensions_custom_WEEKEND_TEMPLATE.conf /etc/asterisk/extensions_custom_ACTIVE.conf)
exten => *7000,n,Wait(1)
exten => *7000,n,System('/usr/sbin/asterisk -rx "dialplan reload"')
exten => *7000,n,Playback(beep)
exten => *7000,n,Playback(thursday)
exten => *7000,n,Playback(service)
exten => *7000,n,Playback(activated)
exten => *7000,n,HangUp

And can we play the sound using the same voice as in freepbx lady voice.


Solution

  • "Freepbx lady" is Allison Smith, she offer record any sound file for additional money. http://theivrvoice.com/

    What you described seams like incorrect file format.

    Also whole dialplan is very bad design, reload dialplan for every dialplan rush is VERY VERY bad idea.Imagine what will be when 3 calls come in same moment.

    Use asterisk REALTIME extensions architecture(dialplan from db) or db lookup for file name via func_odbc.