<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Just post info for others. As I see David use preanswer and your config answer. Is this solution??</div><img src="http://t.sidekickopen65.com/e1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v5dbp0W3MPnzY4XrbSMW8q-f_43LvrVvW59BB4r1k1H6H0?si=5036397111279616&amp;pi=8f442478-1a1e-4d4c-8302-4667cb3904b4" style="display:none!important" height="1" width="1"></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-14 1:17 GMT+02:00 Dmitry Mordovin <span dir="ltr">&lt;<a href="mailto:d.mordovin@dwide.com" target="_blank">d.mordovin@dwide.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    Thank you David, your config sample help me!<span class="HOEnZb"><font color="#888888"><br>
    <br>
    DM</font></span><div><div class="h5"><br>
    <br>
    <div>On 09/13/2016 06:25 PM, David Villasmil
      wrote:<br>
    </div>
    <blockquote 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">    &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><span style="font-size:12.8px"><wbr>@${domain_name}&quot;/&gt;</span></div>
          <span 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><span style="font-size:12.8px"><wbr>@${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/<wbr>fs_sounds/ru/connection_not_<wbr>established.mp3&quot;/&gt;</span><br>
            </div>
          </div>
          <span 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 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>
              <div>
                <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.co<wbr>m</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/free<wbr>switch-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" 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>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>______________________________<wbr>______________________________<wbr>_____________
Professional FreeSWITCH Consulting Services: 
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.<wbr>freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.<wbr>org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
  </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><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><table border="0" style="font-size:12px;border:1px dashed rgb(187,187,187);font-family:sans-serif;width:537px"><tbody style="border-spacing:2px;border:0px none rgb(128,128,128)"><tr valign="top" style="border-spacing:2px;border:0px none rgb(128,128,128)"><td style="color:rgb(32,32,32);margin:8px;border-width:0px 1px 0px 0px;border-style:none solid none none;border-color:rgb(32,32,32) rgb(0,161,230) rgb(32,32,32) rgb(32,32,32);font-weight:bold;letter-spacing:1px;text-transform:capitalize;vertical-align:top;padding:1px 8px 1px 1px;width:63px;outline:rgb(32,32,32) none 0px;border-spacing:2px"><span style="color:rgb(0,161,230);outline:rgb(0,161,230) none 0px;border-spacing:2px;border:0px none rgb(0,161,230)"><font face="georgia, serif" size="2">Gregor Nanger</font></span><div style="font-size:17px;font-family:sans-serif;width:63px;outline:rgb(32,32,32) none 0px;border-spacing:2px;border:0px none rgb(32,32,32)"> </div></td><td style="margin:8px;border:0px none rgb(80,80,80);vertical-align:top;padding:1px 1px 1px 6px;width:354px;outline:rgb(80,80,80) none 0px;border-spacing:2px"><font face="georgia, serif" size="1"><b>CTO</b><br>t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 <br>• Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia <br>• <a href="http://www.infomedia.si" target="_blank">www.infomedia.si</a></font></td></tr></tbody></table></div></div>
</div>