Can phone play sound/ringtone?

Community based support for the Digium Phone Application Programming Interface (API).

Moderators: jwitt, sruffell, malcolmd, Moderator

Can phone play sound/ringtone?

Postby mollett » Mon Aug 26, 2013 11:23 am

In looking through the API, I don't see any way for an app to be able to prompt the phone to play some sort of sound or ringtone. Is it possible? Granted, I know it could definitely be abused (ah, the old toilet flushing sound that Sun used to include with SunOS!), but it could also be quite handy to create an alarm app that doesn't depend on PBX features. Thanks!
mollett
Newsterisk
 
Posts: 25
Joined: Mon Apr 01, 2013 12:03 pm

Re: Can phone play sound/ringtone?

Postby tomdemoor » Thu Aug 29, 2013 1:23 pm

You can't let it play a soundfile i think.
The only way to do that is to start an outgoing call to an extension in the Dialplan that answers the call and plays the soundfile through the speaker.
The function is digium.phone.dial(parameters)
tomdemoor
Oldsterisk
 
Posts: 133
Joined: Mon Jan 16, 2012 4:24 am


Return to Digium Phone API

Who is online

Users browsing this forum: No registered users and 1 guest