[Freeswitch-users] Calling a destination and playing a pre-recorded message.

Paul Mateer Paul.Mateer at outlook.com
Tue Nov 19 10:22:05 UTC 2019


I must be doing something wrong then, because I run a command of the form

originate <url> XML public &playback(c:/temp/test.wav)

and the call goes through, but I don't hear anything at the called end. I do see an entry in the log like:

Transfer sofia/internal/gateway at ip:port to public[xml@&playback(c:/temp/test.wav)]

Which presumably was caused by the playback command, but I don't know if this is to be expected, and i it is whether the details are correct.

Paul

Sent from my Windows 10 device

From: Ciprian Dosoftei<mailto:ciprian.dosoftei at gmail.com>
Sent: 18 November 2019 20:01
To: FreeSWITCH Users Help<mailto:freeswitch-users at lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Calling a destination and playing a pre-recorded message.

It is absolutely feasible to implement your use case via the dialplan; check the first example here:

https://freeswitch.org/confluence/display/FREESWITCH/Originate+Example

If the use case is as simple as placing an outbound call, playing back some media and then hanging up, you could implement is as:

originate {ignore_early_media=true,originate_timeout=60}sofia/gateway/name/number &playback(message)

More information here: https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_commands-originate

On Mon, 18 Nov 2019 at 14:33, Paul Mateer <Paul.Mateer at outlook.com<mailto:Paul.Mateer at outlook.com>> wrote:
Hi. I have a FreeSWITCH system up and running and I can make calls from one device to another which is fine.

What I would now like to do is integrate it with another system so that when certain events occur in this other system, it dials one or more destinations and plays a pre-recorded message before hanging up.

Can the playing of the sound file be hooked into a custom dialplan? I ask because a little experimentation has revealed that the dialplan is processed on the inbound channel (which seems entirely reasonable) which means that using playback in the dialplan results in audio sent to the caller, rather than the called.

If this can't be achieved via the dialplan, does this mean that I need to create a specific client that can call a destination and somehow pipe sound into the input channel, rather than taking it from whatever input device might be available?

Thanks for any assistance offered.

Paul


Sent from my Windows 10 device

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales at freeswitch.com<mailto:sales at freeswitch.com>
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


--
Best Regards,
Ciprian Dosoftei

The information transmitted is intended only for the addressee and may contain privileged and/or confidential material. If you are not the intended recipient, kindly contact the sender and delete the message.

Any disclosure, distribution or copying of this message is strictly prohibited without the expressed permission of the sender.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20191119/1c3bffd2/attachment.html>


More information about the FreeSWITCH-users mailing list