<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
Thank you David, your config sample help me!<br>
<br>
DM<br>
<br>
<div class="moz-cite-prefix">On 09/13/2016 06:25 PM, David Villasmil
wrote:<br>
</div>
<blockquote
cite="mid:CAFGRPVqdQJbYBPkoEgM-G++hLx6xcBUXfiNY0fUWCgwFwkLY=g@mail.gmail.com"
type="cite">
<div dir="ltr">Hello,
<div><br>
</div>
<div>I got that. I think it might work :)</div>
<div>Let him try it :)</div>
<div><br>
</div>
<div>Something like:</div>
<div><br>
</div>
<div>
<div style="font-size:12.8px"> <extension
name="Local_Extension"></div>
<div style="font-size:12.8px"> <condition
field="destination_number" expression="^(9.*)$"></div>
<div style="font-size:12.8px"> <span
style="white-space:pre-wrap"> </span><action
application="pre_answer"/><br>
</div>
<div style="font-size:12.8px"> <span
style="white-space:pre-wrap"> </span><action
application="playback" data="local_stream://moh"/></div>
<div style="font-size:12.8px"> <action
application="bridge" data="<span
style="color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px;line-height:1.3em;background-color:rgb(249,249,249)">[leg_timeout=5]</span><span
style="font-size:12.8px">user/1001</span><wbr
style="font-size:12.8px"><span style="font-size:12.8px">@${domain_name}"/></span></div>
<span class="gmail-im" style="font-size:12.8px"></span>
<div><span style="font-size:12.8px"> <action
application="sleep" data="5000"/> </span></div>
<div style="font-size:12.8px"> <action
application="bridge" data="<span
style="color:rgb(0,0,0);font-family:monospace,courier;font-size:12.8px;line-height:1.3em;background-color:rgb(249,249,249)">[leg_timeout=5]</span><span
style="font-size:12.8px">user/1002</span><wbr
style="font-size:12.8px"><span style="font-size:12.8px">@${domain_name}"/></span></div>
<div>
<div><span style="font-size:12.8px"> <action
application="playback"
data="/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3"/></span><br>
</div>
</div>
<span class="gmail-im" style="font-size:12.8px"></span>
<div style="font-size:12.8px"><span style="font-size:12.8px">
<action application="hangup"/></span><br>
</div>
<span class="gmail-im" style="font-size:12.8px">
<div> </condition></div>
<div> </extension></div>
<div><br>
</div>
<div>David</div>
</span></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Sep 13, 2016 at 4:19 PM, Don
Hawkins <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:hawkins@hawkinsegroup.com" target="_blank">hawkins@hawkinsegroup.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">He wants the second attempt to bride to be
transparent and hold music to pay during the sleep time.
Had to read it a few times, unfortunately can't help.</p>
<p dir="ltr">Sincerely,<br>
Don Hawkins</p>
<p dir="ltr">Sent from my NationPCS® Nexus 6.</p>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sep 13, 2016 9:18 AM,
"David Villasmil" <<a moz-do-not-send="true"
href="mailto:david.villasmil.work@gmail.com"
target="_blank">david.villasmil.work@gmail.<wbr>com</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello,
<div><br>
</div>
<div>Not sure i understood you goal, but I
receive the INVITE, and start sending moh
until the call is answered, like this:</div>
<div><br>
</div>
<div>
<div> <extension
name="Local_Extension"></div>
<div> <condition
field="destination_number"
expression="^(9.*)$"></div>
<div> <span style="white-space:pre-wrap">
</span><action
application="pre_answer"/><br>
</div>
<div>
<div> <span
style="white-space:pre-wrap"> </span><action
application="playback"
data="local_stream://moh"/></div>
</div>
<div> <action application="bridge"
data="user/${dialed_extension}<wbr>@${domain_name}"/></div>
<div> <action
application="hangup"/></div>
<div> </condition></div>
<div> </extension></div>
<div><br>
</div>
</div>
<div>You could do something similar.</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Dacud</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Sep 13, 2016 at
3:56 PM, Dmitry Mordovin <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:d.mordovin@dwide.com"
target="_blank">d.mordovin@dwide.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div
style="font-family:-moz-fixed;font-size:12px"
lang="x-unicode">Hello, <br>
<br>
I can't figure out how to configure hold
music to play from begin extension till
customer answer. <br>
The problems is: <br>
- Hold music play while bridge calling
to customer only and silence while sleep
5 sec before second try <br>
- Hold music begin play .wav from start
each time when bridge switch to next
route. <br>
<br>
Any ideas how to configure hold music
whole call session and, start playing
after ANSWER (1 step) and stop play when
customer answer(3 step) or bridge fail
(4 step)? <br>
<br>
My config: <br>
<br>
<extension name="srv_sctv"> <br>
<condition
field="destination_number"
expression="^12345$"> <br>
<br>
<!-- 1. Answer &
welcome --> <br>
<br>
<action
application="answer"/> <br>
<action application="set"
data="continue_on_fail=true"/> <br>
<br>
<action
application="playback"
data="/opt/freeswitch-share/fs<wbr>_sounds/ring_welcome.wav"/>
<br>
<br>
<!-- 2. Setup hold music
& other settings --> <br>
<action application="set"
data="ignore_early_media=true" /> <br>
<action application="set"
data="instant_ringback=true" /> <br>
<action
application="export"
data="hold_music=/opt/freeswit<wbr>ch-share/moh/0/2_8.wav"
/> <br>
<action application="set"
data="transfer_ringback=file_s<wbr>tring:///opt/freeswitch-share/<wbr>moh/0/2_8.wav"/><br>
<action application="set"
data="ringback=/opt/freeswitch<wbr>-share/moh/0/2_8.wav"/>
<br>
<br>
<!-- 3. Call to customer
--> <br>
<action application="set"
data="hangup_after_bridge=true<wbr>"/>
<br>
<br>
<action
application="bridge"
data="[leg_timeout=20]sofia/ga<wbr>teway/gw1/79262410000@wg1|[leg<wbr>_timeout=20]sofia/gateway/gw1/<wbr>79262411111@gw1"/><br>
<!-- Second try in 5
seconds --> <br>
<action application="sleep"
data="5000"/> <br>
<action
application="bridge"
data="[leg_timeout=20]sofia/ga<wbr>teway/gw1/79262410000@wg1|[leg<wbr>_timeout=20]sofia/gateway/gw1/<wbr>79262411111@gw1"/><br>
<br>
<!-- 4. Bridge fail -->
<br>
<action
application="playback"
data="/opt/freeswitch-share/fs<wbr>_sounds/ru/connection_not_esta<wbr>blished.mp3"/><br>
<action
application="hangup"/> <br>
</condition> <br>
</extension> <br>
<br>
Thank All! <br>
</div>
</div>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org"
target="_blank">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com"
rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://confluence.freeswitch.org"
rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a moz-do-not-send="true"
href="http://www.cluecon.com"
rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org"
target="_blank">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com"
rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://confluence.freeswitch.org"
rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a moz-do-not-send="true"
href="http://www.cluecon.com" rel="noreferrer"
target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
</div>
</div>
</div>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com" rel="noreferrer"
target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://confluence.freeswitch.org" rel="noreferrer"
target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a moz-do-not-send="true" href="http://www.cluecon.com"
rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
</body>
</html>