Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Check if an audio file exists to play an alternative one if not


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
lucas at toptive.co
Guest





PostPosted: Tue Mar 23, 2021 10:50 am    Post subject: [Freeswitch-users] Check if an audio file exists to play an Reply with quote

Different macros are defined in the phrases.xml file, I want to know if it is possible to implement a condition in the macro to check if the audio file exists and if not, play an alternative one. 

Thanks.


<macro name="greeting">
    <input pattern="(.*)">
        <match>
            <action function="play-file" data="/home/admin/freeswitch/conf/lang/en/ivr/wav/greeting.wav"/>
        </match>
    </input>
</macro>

--
Lucas Eduardo DúcculiSoftware Developer lucaseduc@hotmail.com (lucaseduc@hotmail.com)
 +54 0358 4853837
 lucas@toptive.co (lucas@toptive.co)
TOP TIER DEVELOPERS
Av. Italia 1684 - Plata Alta, Río Cuarto, Cba. Argentina
www.toptive.co
[/url] [url=https://www.facebook.com/toptive/] [/url] [url=https://medium.com/@toptive]
This email is confidential and for the exclusive use of the person(s) to whom it is addressed. If you have received this email by mistake we ask you to immediately notify the person who sent it.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services