<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Great. Finally got things working. Thanks for the tip on keeping the sound files within the FreeSWITCH hierarchy.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Paul</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sent from my Windows 10 device</p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><b>From: </b><a href="mailto:david.villasmil.work@gmail.com">David Villasmil</a><br>
<b>Sent: </b>19 November 2019 13:00<br>
<b>To: </b><a href="mailto:freeswitch-users@lists.freeswitch.org">FreeSWITCH Users Help</a><br>
<b>Subject: </b>Re: [Freeswitch-users] Calling a destination and playing a pre-recorded message.</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div dir="ltr">Hello,
<div><br>
</div>
<div>You  need to put the file you want to play in a directory fs can access and not pass anything like "c:\". I store them (i only need them temporarily) in /tmp/</div>
<div><br>
</div>
<div>I.e.:</div>
<div><br>
</div>
<div>bgapi originate {origination_caller_id_number=[CALLER-ID}sofia/gateway/nexvortex/[SOME-DESTINATION-NUMBER] &playback(/tmp/test.wav)<br>
</div>
<div><br>
</div>
<div>Note the dialstring. </div>
<div><br>
</div>
<div>Hope that helps</div>
<div><br clear="all">
<div>
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>Regards,</div>
<div><br>
</div>
David Villasmil
<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Nov 19, 2019 at 10:36 AM Paul Mateer <<a href="mailto:Paul.Mateer@outlook.com">Paul.Mateer@outlook.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">I must be doing something wrong then, because I run a command of the form<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">originate <url> XML public &playback(c:/temp/test.wav)</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">and the call goes through, but I don't hear anything at the called end. I do see an entry in the log like:</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Transfer sofia/internal/gateway@ip:port to public[xml@&playback(c:/temp/test.wav)]</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Paul</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Sent from my Windows 10 device</p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><b>From: </b><a href="mailto:ciprian.dosoftei@gmail.com" target="_blank">Ciprian Dosoftei</a><br>
<b>Sent: </b>18 November 2019 20:01<br>
<b>To: </b><a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">FreeSWITCH Users Help</a><br>
<b>Subject: </b>Re: [Freeswitch-users] Calling a destination and playing a pre-recorded message.</p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div dir="ltr">It is absolutely feasible to implement your use case via the dialplan; check the first example here:
<div><br>
</div>
<div><a href="https://freeswitch.org/confluence/display/FREESWITCH/Originate+Example" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Originate+Example</a><br>
</div>
<div><br>
</div>
<div>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:</div>
<div><br>
</div>
<div>originate {ignore_early_media=true,originate_timeout=60}sofia/gateway/name/number &playback(message)<br>
</div>
<div><br>
</div>
<div>More information here: <a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_commands-originate" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_commands-originate</a></div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, 18 Nov 2019 at 14:33, Paul Mateer <<a href="mailto:Paul.Mateer@outlook.com" target="_blank">Paul.Mateer@outlook.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-GB">
<div>
<p class="MsoNormal">Hi. I have a FreeSWITCH system up and running and I can make calls from one device to another which is fine.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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?</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks for any assistance offered.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Paul</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Sent from my Windows 10 device</p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">
https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">
https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">Best Regards,<br>
Ciprian Dosoftei<br>
<br>
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.<br>
<br>
Any disclosure, distribution or copying of this message is strictly prohibited without the expressed permission of the sender.</div>
</div>
</div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">
https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">
https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote>
</div>
</div>
</body>
</html>