<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">    &lt;extension name=&quot;Local_Extension&quot;&gt;</div><div style="font-size:12.8px">      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(9.*)$&quot;&gt;</div><div style="font-size:12.8px">       <span style="white-space:pre-wrap">        </span>&lt;action application=&quot;pre_answer&quot;/&gt;<br></div><div style="font-size:12.8px">       <span style="white-space:pre-wrap">        </span>&lt;action application=&quot;playback&quot; data=&quot;local_stream://moh&quot;/&gt;</div><div style="font-size:12.8px">        &lt;action application=&quot;bridge&quot; data=&quot;<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}&quot;/&gt;</span></div><span class="gmail-im" style="font-size:12.8px"></span><div><span style="font-size:12.8px">        &lt;action application=&quot;sleep&quot; data=&quot;5000&quot;/&gt; </span></div><div style="font-size:12.8px">        &lt;action application=&quot;bridge&quot; data=&quot;<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}&quot;/&gt;</span></div><div><div><span style="font-size:12.8px">        &lt;action application=&quot;playback&quot; data=&quot;/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3&quot;/&gt;</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">        &lt;action application=&quot;hangup&quot;/&gt;</span><br></div><span class="gmail-im" style="font-size:12.8px"><div>      &lt;/condition&gt;</div><div>    &lt;/extension&gt;</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">&lt;<a href="mailto:hawkins@hawkinsegroup.com" target="_blank">hawkins@hawkinsegroup.com</a>&gt;</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&#39;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, &quot;David Villasmil&quot; &lt;<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.<wbr>com</a>&gt; 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>    &lt;extension name=&quot;Local_Extension&quot;&gt;</div><div>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(9.*)$&quot;&gt;</div><div>       <span style="white-space:pre-wrap">        </span>&lt;action application=&quot;pre_answer&quot;/&gt;<br></div><div><div>       <span style="white-space:pre-wrap">        </span>&lt;action application=&quot;playback&quot; data=&quot;local_stream://moh&quot;/&gt;</div></div><div>        &lt;action application=&quot;bridge&quot; data=&quot;user/${dialed_extension}<wbr>@${domain_name}&quot;/&gt;</div><div>        &lt;action application=&quot;hangup&quot;/&gt;</div><div>      &lt;/condition&gt;</div><div>    &lt;/extension&gt;</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">&lt;<a href="mailto:d.mordovin@dwide.com" target="_blank">d.mordovin@dwide.com</a>&gt;</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&#39;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>
      &lt;extension name=&quot;srv_sctv&quot;&gt;
      <br>
              &lt;condition field=&quot;destination_number&quot;
      expression=&quot;^12345$&quot;&gt;
      <br>
      <br>
                &lt;!-- 1. Answer &amp; welcome --&gt;
      <br>
      <br>
                &lt;action application=&quot;answer&quot;/&gt;
      <br>
                &lt;action application=&quot;set&quot;
      data=&quot;continue_on_fail=true&quot;/&gt;
      <br>
      <br>
                &lt;action application=&quot;playback&quot;
      data=&quot;/opt/freeswitch-share/fs<wbr>_sounds/ring_welcome.wav&quot;/&gt;
      <br>
      <br>
                &lt;!-- 2. Setup hold music &amp; other settings --&gt;
      <br>
                &lt;action application=&quot;set&quot;
      data=&quot;ignore_early_media=true&quot; /&gt;
      <br>
                &lt;action application=&quot;set&quot;
      data=&quot;instant_ringback=true&quot; /&gt;
      <br>
                &lt;action application=&quot;export&quot;
      data=&quot;hold_music=/opt/freeswit<wbr>ch-share/moh/0/2_8.wav&quot; /&gt;
      <br>
                &lt;action application=&quot;set&quot;
data=&quot;transfer_ringback=file_s<wbr>tring:///opt/freeswitch-share/<wbr>moh/0/2_8.wav&quot;/&gt;<br>
                &lt;action application=&quot;set&quot;
      data=&quot;ringback=/opt/freeswitch<wbr>-share/moh/0/2_8.wav&quot;/&gt;
      <br>
      <br>
                &lt;!-- 3. Call to customer --&gt;
      <br>
                &lt;action application=&quot;set&quot;
      data=&quot;hangup_after_bridge=true<wbr>&quot;/&gt;
      <br>
      <br>
                &lt;action application=&quot;bridge&quot;
data=&quot;[leg_timeout=20]sofia/ga<wbr>teway/gw1/79262410000@wg1|[leg<wbr>_timeout=20]sofia/gateway/gw1/<wbr>79262411111@gw1&quot;/&gt;<br>
                &lt;!-- Second try in 5 seconds --&gt;
      <br>
                &lt;action application=&quot;sleep&quot; data=&quot;5000&quot;/&gt;
      <br>
                &lt;action application=&quot;bridge&quot;
data=&quot;[leg_timeout=20]sofia/ga<wbr>teway/gw1/79262410000@wg1|[leg<wbr>_timeout=20]sofia/gateway/gw1/<wbr>79262411111@gw1&quot;/&gt;<br>
      <br>
                &lt;!-- 4. Bridge fail --&gt;
      <br>
                &lt;action application=&quot;playback&quot;
data=&quot;/opt/freeswitch-share/fs<wbr>_sounds/ru/connection_not_esta<wbr>blished.mp3&quot;/&gt;<br>
                &lt;action application=&quot;hangup&quot;/&gt;
      <br>
              &lt;/condition&gt;
      <br>
      &lt;/extension&gt;
      <br>
      <br>
      Thank All!
      <br>
    </div>
  </div>

<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a 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 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 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 href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a 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 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 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 href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a 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 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 href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>