Play hold music while try to call to customer
Hello, I can't figure out how to configure hold music to play from begin extension till customer answer. The problems is: - Hold music play while bridge calling to customer only and silence while sleep 5 sec before second try - Hold music begin play .wav from start each time when bridge switch to next route. 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)? My config: <extension name="srv_sctv"> <condition field="destination_number" expression="^12345$"> <!-- 1. Answer & welcome --> <action application="answer"/> <action application="set" data="continue_on_fail=true"/> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/> <!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=/opt/freeswitch-share/moh/0/2_8.wav" /> <action application="set" data="transfer_ringback=file_string:///opt/freeswitch-share/moh/0/2_8.wav"/> <action application="set" data="ringback=/opt/freeswitch-share/moh/0/2_8.wav"/> <!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/> <action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/> <!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension> Thank All!
Hello, Not sure i understood you goal, but I receive the INVITE, and start sending moh until the call is answered, like this: <extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="user/${dialed_extension}@ ${domain_name}"/> <action application="hangup"/> </condition> </extension> You could do something similar. Regards, Dacud On Tue, Sep 13, 2016 at 3:56 PM, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
Hello,
I can't figure out how to configure hold music to play from begin extension till customer answer. The problems is: - Hold music play while bridge calling to customer only and silence while sleep 5 sec before second try - Hold music begin play .wav from start each time when bridge switch to next route.
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)?
My config:
<extension name="srv_sctv"> <condition field="destination_number" expression="^12345$">
<!-- 1. Answer & welcome -->
<action application="answer"/> <action application="set" data="continue_on_fail=true"/>
<action application="playback" data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/>
<!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=/opt/ freeswitch-share/moh/0/2_8.wav" /> <action application="set" data="transfer_ringback=file_ string:///opt/freeswitch-share/moh/0/2_8.wav"/> <action application="set" data="ringback=/opt/ freeswitch-share/moh/0/2_8.wav"/>
<!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="[leg_timeout=20]sofia/ gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/ gw1/79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=20]sofia/ gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/ gw1/79262411111@gw1"/>
<!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/ fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
Thank All!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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. Sincerely, Don Hawkins Sent from my NationPCS® Nexus 6. On Sep 13, 2016 9:18 AM, "David Villasmil" <david.villasmil.work@gmail.com> wrote:
Hello,
Not sure i understood you goal, but I receive the INVITE, and start sending moh until the call is answered, like this:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="user/${dialed_extension} @${domain_name}"/> <action application="hangup"/> </condition> </extension>
You could do something similar.
Regards,
Dacud
On Tue, Sep 13, 2016 at 3:56 PM, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
Hello,
I can't figure out how to configure hold music to play from begin extension till customer answer. The problems is: - Hold music play while bridge calling to customer only and silence while sleep 5 sec before second try - Hold music begin play .wav from start each time when bridge switch to next route.
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)?
My config:
<extension name="srv_sctv"> <condition field="destination_number" expression="^12345$">
<!-- 1. Answer & welcome -->
<action application="answer"/> <action application="set" data="continue_on_fail=true"/>
<action application="playback" data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/>
<!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=/opt/freeswitch-share/moh/0/2_8.wav" /> <action application="set" data="transfer_ringback=file_s tring:///opt/freeswitch-share/moh/0/2_8.wav"/> <action application="set" data="ringback=/opt/freeswitch-share/moh/0/2_8.wav"/>
<!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="[leg_timeout=20]sofia/ga teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ 79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=20]sofia/ga teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ 79262411111@gw1"/>
<!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/fs _sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
Thank All!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hello, I got that. I think it might work :) Let him try it :) Something like: <extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="[leg_timeout=5]user/1001 @${domain_name}"/> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=5]user/1002 @${domain_name}"/> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension> David On Tue, Sep 13, 2016 at 4:19 PM, Don Hawkins <hawkins@hawkinsegroup.com> wrote:
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.
Sincerely, Don Hawkins
Sent from my NationPCS® Nexus 6.
On Sep 13, 2016 9:18 AM, "David Villasmil" <david.villasmil.work@gmail.com> wrote:
Hello,
Not sure i understood you goal, but I receive the INVITE, and start sending moh until the call is answered, like this:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="user/${dialed_extension} @${domain_name}"/> <action application="hangup"/> </condition> </extension>
You could do something similar.
Regards,
Dacud
On Tue, Sep 13, 2016 at 3:56 PM, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
Hello,
I can't figure out how to configure hold music to play from begin extension till customer answer. The problems is: - Hold music play while bridge calling to customer only and silence while sleep 5 sec before second try - Hold music begin play .wav from start each time when bridge switch to next route.
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)?
My config:
<extension name="srv_sctv"> <condition field="destination_number" expression="^12345$">
<!-- 1. Answer & welcome -->
<action application="answer"/> <action application="set" data="continue_on_fail=true"/>
<action application="playback" data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/>
<!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=/opt/freeswitch-share/moh/0/2_8.wav" /> <action application="set" data="transfer_ringback=file_s tring:///opt/freeswitch-share/moh/0/2_8.wav"/> <action application="set" data="ringback=/opt/freeswitch-share/moh/0/2_8.wav"/>
<!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="[leg_timeout=20]sofia/ga teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ 79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=20]sofia/ga teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ 79262411111@gw1"/>
<!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/fs _sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
Thank All!
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
david, that would just be stuck in playback and not even attempt the bridge. Dmitry, you may try https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools:+bridge#mod... another way that might work is to combine the 2 bridge attempts into a single bridge and use leg_delay_start <https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables#ChannelVariables-leg_delay_start> to add the 5 second delay to the second attempt. or combine the 2 bridge attempts into a single bridge and use <https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables#ChannelVariables-leg_delay_start>add a loopback endpoint between the the 2 attempts that only does a sleep of 5 seconds On Tue, Sep 13, 2016 at 10:25 AM, David Villasmil < david.villasmil.work@gmail.com> wrote:
Hello,
I got that. I think it might work :) Let him try it :)
Something like:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="[leg_timeout=5]user/1001 @${domain_name}"/> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=5]user/1002 @${domain_name}"/> <action application="playback" data="/opt/freeswitch-share/ fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
David
On Tue, Sep 13, 2016 at 4:19 PM, Don Hawkins <hawkins@hawkinsegroup.com> wrote:
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.
Sincerely, Don Hawkins
Sent from my NationPCS® Nexus 6.
On Sep 13, 2016 9:18 AM, "David Villasmil" <david.villasmil.work@gmail.co m> wrote:
Hello,
Not sure i understood you goal, but I receive the INVITE, and start sending moh until the call is answered, like this:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="user/${dialed_extension} @${domain_name}"/> <action application="hangup"/> </condition> </extension>
You could do something similar.
Regards,
Dacud
On Tue, Sep 13, 2016 at 3:56 PM, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
Hello,
I can't figure out how to configure hold music to play from begin extension till customer answer. The problems is: - Hold music play while bridge calling to customer only and silence while sleep 5 sec before second try - Hold music begin play .wav from start each time when bridge switch to next route.
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)?
My config:
<extension name="srv_sctv"> <condition field="destination_number" expression="^12345$">
<!-- 1. Answer & welcome -->
<action application="answer"/> <action application="set" data="continue_on_fail=true"/>
<action application="playback" data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/>
<!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=/opt/freeswitch-share/moh/0/2_8.wav" /> <action application="set" data="transfer_ringback=file_s tring:///opt/freeswitch-share/moh/0/2_8.wav"/> <action application="set" data="ringback=/opt/freeswitch-share/moh/0/2_8.wav"/>
<!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="[leg_timeout=20]sofia/ga teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ 79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=20]sofia/ga teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ 79262411111@gw1"/>
<!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/fs _sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
Thank All!
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free switch-users http://www.freeswitch.org
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi, Thank you David, your config sample help me! DM On 09/13/2016 06:25 PM, David Villasmil wrote:
Hello,
I got that. I think it might work :) Let him try it :)
Something like:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="[leg_timeout=5]user/1001@${domain_name}"/> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=5]user/1002@${domain_name}"/> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
David
On Tue, Sep 13, 2016 at 4:19 PM, Don Hawkins <hawkins@hawkinsegroup.com <mailto:hawkins@hawkinsegroup.com>> wrote:
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.
Sincerely, Don Hawkins
Sent from my NationPCS® Nexus 6.
On Sep 13, 2016 9:18 AM, "David Villasmil" <david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com>> wrote:
Hello,
Not sure i understood you goal, but I receive the INVITE, and start sending moh until the call is answered, like this:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="user/${dialed_extension}@${domain_name}"/> <action application="hangup"/> </condition> </extension>
You could do something similar.
Regards,
Dacud
On Tue, Sep 13, 2016 at 3:56 PM, Dmitry Mordovin <d.mordovin@dwide.com <mailto:d.mordovin@dwide.com>> wrote:
Hello,
I can't figure out how to configure hold music to play from begin extension till customer answer. The problems is: - Hold music play while bridge calling to customer only and silence while sleep 5 sec before second try - Hold music begin play .wav from start each time when bridge switch to next route.
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)?
My config:
<extension name="srv_sctv"> <condition field="destination_number" expression="^12345$">
<!-- 1. Answer & welcome -->
<action application="answer"/> <action application="set" data="continue_on_fail=true"/>
<action application="playback" data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/>
<!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=/opt/freeswitch-share/moh/0/2_8.wav" /> <action application="set" data="transfer_ringback=file_string:///opt/freeswitch-share/moh/0/2_8.wav"/> <action application="set" data="ringback=/opt/freeswitch-share/moh/0/2_8.wav"/>
<!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/>
<!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
Thank All!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Just post info for others. As I see David use preanswer and your config answer. Is this solution?? 2016-09-14 1:17 GMT+02:00 Dmitry Mordovin <d.mordovin@dwide.com>:
Hi,
Thank you David, your config sample help me!
DM
On 09/13/2016 06:25 PM, David Villasmil wrote:
Hello,
I got that. I think it might work :) Let him try it :)
Something like:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="[leg_timeout=5]user/1001 @${domain_name}"/> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=5]user/1002 @${domain_name}"/> <action application="playback" data="/opt/freeswitch-share/ fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
David
On Tue, Sep 13, 2016 at 4:19 PM, Don Hawkins <hawkins@hawkinsegroup.com> wrote:
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.
Sincerely, Don Hawkins
Sent from my NationPCS® Nexus 6.
On Sep 13, 2016 9:18 AM, "David Villasmil" <david.villasmil.work@gmail.co m> wrote:
Hello,
Not sure i understood you goal, but I receive the INVITE, and start sending moh until the call is answered, like this:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="user/${dialed_extension} @${domain_name}"/> <action application="hangup"/> </condition> </extension>
You could do something similar.
Regards,
Dacud
On Tue, Sep 13, 2016 at 3:56 PM, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
Hello,
I can't figure out how to configure hold music to play from begin extension till customer answer. The problems is: - Hold music play while bridge calling to customer only and silence while sleep 5 sec before second try - Hold music begin play .wav from start each time when bridge switch to next route.
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)?
My config:
<extension name="srv_sctv"> <condition field="destination_number" expression="^12345$">
<!-- 1. Answer & welcome -->
<action application="answer"/> <action application="set" data="continue_on_fail=true"/>
<action application="playback" data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/>
<!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=/opt/freeswitch-share/moh/0/2_8.wav" /> <action application="set" data="transfer_ringback=file_s tring:///opt/freeswitch-share/moh/0/2_8.wav"/> <action application="set" data="ringback=/opt/freeswitch-share/moh/0/2_8.wav"/>
<!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="[leg_timeout=20]sofia/ga teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ 79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=20]sofia/ga teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ 79262411111@gw1"/>
<!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/fs _sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
Thank All!
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free switch-users http://www.freeswitch.org
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Gregor Nanger *CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si
Hello, Pre-answer doesn't answer the call, just sends a 183 so the remote party can hear whatever audio is coming from the caller side. On Wed, Sep 14, 2016 at 9:32 AM Gregor Nanger <gregor@infomedia.si> wrote:
Just post info for others. As I see David use preanswer and your config answer. Is this solution??
2016-09-14 1:17 GMT+02:00 Dmitry Mordovin <d.mordovin@dwide.com>:
Hi,
Thank you David, your config sample help me!
DM
On 09/13/2016 06:25 PM, David Villasmil wrote:
Hello,
I got that. I think it might work :) Let him try it :)
Something like:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="[leg_timeout=5]user/1001 @${domain_name}"/> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=5]user/1002 @${domain_name}"/> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
David
On Tue, Sep 13, 2016 at 4:19 PM, Don Hawkins <hawkins@hawkinsegroup.com> wrote:
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.
Sincerely, Don Hawkins
Sent from my NationPCS® Nexus 6.
On Sep 13, 2016 9:18 AM, "David Villasmil" < david.villasmil.work@gmail.com> wrote:
Hello,
Not sure i understood you goal, but I receive the INVITE, and start sending moh until the call is answered, like this:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="user/${dialed_extension}@ ${domain_name}"/> <action application="hangup"/> </condition> </extension>
You could do something similar.
Regards,
Dacud
On Tue, Sep 13, 2016 at 3:56 PM, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
Hello,
I can't figure out how to configure hold music to play from begin extension till customer answer. The problems is: - Hold music play while bridge calling to customer only and silence while sleep 5 sec before second try - Hold music begin play .wav from start each time when bridge switch to next route.
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)?
My config:
<extension name="srv_sctv"> <condition field="destination_number" expression="^12345$">
<!-- 1. Answer & welcome -->
<action application="answer"/> <action application="set" data="continue_on_fail=true"/>
<action application="playback" data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/>
<!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=/opt/freeswitch-share/moh/0/2_8.wav" /> <action application="set" data="transfer_ringback=file_string:///opt/freeswitch-share/moh/0/2_8.wav"/> <action application="set" data="ringback=/opt/freeswitch-share/moh/0/2_8.wav"/>
<!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1 |[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1 |[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/>
<!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
Thank All!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Gregor Nanger
*CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I start use MOH instead play file, this solve part of problem. sleep replace with playback & timeout Not good solution, but works, enough. I thinking, possible to make one leg to extension with MOH and in conference, call to customer. When customer answer, disconnect MOH leg from conference. On 09/14/2016 11:31 AM, Gregor Nanger wrote:
Just post info for others. As I see David use preanswer and your config answer. Is this solution??
2016-09-14 1:17 GMT+02:00 Dmitry Mordovin <d.mordovin@dwide.com <mailto:d.mordovin@dwide.com>>:
Hi,
Thank you David, your config sample help me!
DM
On 09/13/2016 06:25 PM, David Villasmil wrote:
Hello,
I got that. I think it might work :) Let him try it :)
Something like:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="[leg_timeout=5]user/1001@${domain_name}"/> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=5]user/1002@${domain_name}"/> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
David
On Tue, Sep 13, 2016 at 4:19 PM, Don Hawkins <hawkins@hawkinsegroup.com <mailto:hawkins@hawkinsegroup.com>> wrote:
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.
Sincerely, Don Hawkins
Sent from my NationPCS® Nexus 6.
On Sep 13, 2016 9:18 AM, "David Villasmil" <david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com>> wrote:
Hello,
Not sure i understood you goal, but I receive the INVITE, and start sending moh until the call is answered, like this:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="user/${dialed_extension}@${domain_name}"/> <action application="hangup"/> </condition> </extension>
You could do something similar.
Regards,
Dacud
On Tue, Sep 13, 2016 at 3:56 PM, Dmitry Mordovin <d.mordovin@dwide.com <mailto:d.mordovin@dwide.com>> wrote:
Hello,
I can't figure out how to configure hold music to play from begin extension till customer answer. The problems is: - Hold music play while bridge calling to customer only and silence while sleep 5 sec before second try - Hold music begin play .wav from start each time when bridge switch to next route.
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)?
My config:
<extension name="srv_sctv"> <condition field="destination_number" expression="^12345$">
<!-- 1. Answer & welcome -->
<action application="answer"/> <action application="set" data="continue_on_fail=true"/>
<action application="playback" data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/>
<!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=/opt/freeswitch-share/moh/0/2_8.wav" /> <action application="set" data="transfer_ringback=file_string:///opt/freeswitch-share/moh/0/2_8.wav"/> <action application="set" data="ringback=/opt/freeswitch-share/moh/0/2_8.wav"/>
<!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/>
<!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
Thank All!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
-- Gregor Nanger *CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si <http://www.infomedia.si>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Can you show your dialplan? On Wed, Sep 14, 2016 at 12:27 PM, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
I start use MOH instead play file, this solve part of problem.
sleep replace with playback & timeout
Not good solution, but works, enough.
I thinking, possible to make one leg to extension with MOH and in conference, call to customer. When customer answer, disconnect MOH leg from conference.
On 09/14/2016 11:31 AM, Gregor Nanger wrote:
Just post info for others. As I see David use preanswer and your config answer. Is this solution??
2016-09-14 1:17 GMT+02:00 Dmitry Mordovin <d.mordovin@dwide.com>:
Hi,
Thank you David, your config sample help me!
DM
On 09/13/2016 06:25 PM, David Villasmil wrote:
Hello,
I got that. I think it might work :) Let him try it :)
Something like:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="[leg_timeout=5]user/1001 @${domain_name}"/> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=5]user/1002 @${domain_name}"/> <action application="playback" data="/opt/freeswitch-share/fs _sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
David
On Tue, Sep 13, 2016 at 4:19 PM, Don Hawkins <hawkins@hawkinsegroup.com> wrote:
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.
Sincerely, Don Hawkins
Sent from my NationPCS® Nexus 6.
On Sep 13, 2016 9:18 AM, "David Villasmil" < david.villasmil.work@gmail.com> wrote:
Hello,
Not sure i understood you goal, but I receive the INVITE, and start sending moh until the call is answered, like this:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="user/${dialed_extension} @${domain_name}"/> <action application="hangup"/> </condition> </extension>
You could do something similar.
Regards,
Dacud
On Tue, Sep 13, 2016 at 3:56 PM, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
Hello,
I can't figure out how to configure hold music to play from begin extension till customer answer. The problems is: - Hold music play while bridge calling to customer only and silence while sleep 5 sec before second try - Hold music begin play .wav from start each time when bridge switch to next route.
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)?
My config:
<extension name="srv_sctv"> <condition field="destination_number" expression="^12345$">
<!-- 1. Answer & welcome -->
<action application="answer"/> <action application="set" data="continue_on_fail=true"/>
<action application="playback" data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/>
<!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=/opt/freeswitch-share/moh/0/2_8.wav" /> <action application="set" data="transfer_ringback=file_s tring:///opt/freeswitch-share/moh/0/2_8.wav"/> <action application="set" data="ringback=/opt/freeswitch-share/moh/0/2_8.wav"/>
<!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="[leg_timeout=20]sofia/ga teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ 79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=20]sofia/ga teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ 79262411111@gw1"/>
<!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/fs _sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
Thank All!
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free switch-users http://www.freeswitch.org
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free switch-users http://www.freeswitch.org
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Gregor Nanger
*CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Yes, <extension name="srv_sctv"> <condition field="destination_number" expression="^12345$"> <!-- 1. Answer & welcome --> <action application="answer"/> <action application="set" data="continue_on_fail=true"/> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/> <!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=local_stream://xmoh_0_2_1" /> <action application="set" data="transfer_ringback=local_stream://xmoh_0_2_1"/> <action application="set" data="ringback=local_stream://xmoh_0_2_1"/> <!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/> <action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="playback" data="{timeout=5000}local_stream://xmoh_0_2_1"/> <action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/> <!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension> DM On 09/14/2016 02:29 PM, David Villasmil wrote:
Can you show your dialplan?
On Wed, Sep 14, 2016 at 12:27 PM, Dmitry Mordovin <d.mordovin@dwide.com <mailto:d.mordovin@dwide.com>> wrote:
I start use MOH instead play file, this solve part of problem.
sleep replace with playback & timeout
Not good solution, but works, enough.
I thinking, possible to make one leg to extension with MOH and in conference, call to customer. When customer answer, disconnect MOH leg from conference.
On 09/14/2016 11:31 AM, Gregor Nanger wrote:
Just post info for others. As I see David use preanswer and your config answer. Is this solution??
2016-09-14 1:17 GMT+02:00 Dmitry Mordovin <d.mordovin@dwide.com <mailto:d.mordovin@dwide.com>>:
Hi,
Thank you David, your config sample help me!
DM
On 09/13/2016 06:25 PM, David Villasmil wrote:
Hello,
I got that. I think it might work :) Let him try it :)
Something like:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="[leg_timeout=5]user/1001@${domain_name}"/> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=5]user/1002@${domain_name}"/> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
David
On Tue, Sep 13, 2016 at 4:19 PM, Don Hawkins <hawkins@hawkinsegroup.com <mailto:hawkins@hawkinsegroup.com>> wrote:
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.
Sincerely, Don Hawkins
Sent from my NationPCS® Nexus 6.
On Sep 13, 2016 9:18 AM, "David Villasmil" <david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com>> wrote:
Hello,
Not sure i understood you goal, but I receive the INVITE, and start sending moh until the call is answered, like this:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="user/${dialed_extension}@${domain_name}"/> <action application="hangup"/> </condition> </extension>
You could do something similar.
Regards,
Dacud
On Tue, Sep 13, 2016 at 3:56 PM, Dmitry Mordovin <d.mordovin@dwide.com <mailto:d.mordovin@dwide.com>> wrote:
Hello,
I can't figure out how to configure hold music to play from begin extension till customer answer. The problems is: - Hold music play while bridge calling to customer only and silence while sleep 5 sec before second try - Hold music begin play .wav from start each time when bridge switch to next route.
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)?
My config:
<extension name="srv_sctv"> <condition field="destination_number" expression="^12345$">
<!-- 1. Answer & welcome -->
<action application="answer"/> <action application="set" data="continue_on_fail=true"/>
<action application="playback" data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/>
<!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=/opt/freeswitch-share/moh/0/2_8.wav" /> <action application="set" data="transfer_ringback=file_string:///opt/freeswitch-share/moh/0/2_8.wav"/> <action application="set" data="ringback=/opt/freeswitch-share/moh/0/2_8.wav"/>
<!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/>
<!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
Thank All!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
-- Gregor Nanger *CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si <http://www.infomedia.si>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I don't see why answering the call, but if you like it that way, good! Happy to help. On Wed, Sep 14, 2016 at 12:40 PM, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
Yes,
<extension name="srv_sctv"> <condition field="destination_number" expression="^12345$">
<!-- 1. Answer & welcome -->
<action application="answer"/> <action application="set" data="continue_on_fail=true"/>
<action application="playback" data="/opt/freeswitch-share/ fs_sounds/ring_welcome.wav"/>
<!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=local_stream://xmoh_0_2_1" /> <action application="set" data="transfer_ringback=local_ stream://xmoh_0_2_1"/> <action application="set" data="ringback=local_stream:// xmoh_0_2_1"/>
<!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="[leg_timeout=20]sofia/ gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/ gw1/79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="playback" data="{timeout=5000}local_ stream://xmoh_0_2_1"/> <action application="bridge" data="[leg_timeout=20]sofia/ gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/ gw1/79262411111@gw1"/>
<!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/ fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
DM
On 09/14/2016 02:29 PM, David Villasmil wrote:
Can you show your dialplan?
On Wed, Sep 14, 2016 at 12:27 PM, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
I start use MOH instead play file, this solve part of problem.
sleep replace with playback & timeout
Not good solution, but works, enough.
I thinking, possible to make one leg to extension with MOH and in conference, call to customer. When customer answer, disconnect MOH leg from conference.
On 09/14/2016 11:31 AM, Gregor Nanger wrote:
Just post info for others. As I see David use preanswer and your config answer. Is this solution??
2016-09-14 1:17 GMT+02:00 Dmitry Mordovin <d.mordovin@dwide.com>:
Hi,
Thank you David, your config sample help me!
DM
On 09/13/2016 06:25 PM, David Villasmil wrote:
Hello,
I got that. I think it might work :) Let him try it :)
Something like:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="[leg_timeout=5]user/1001 @${domain_name}"/> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=5]user/1002 @${domain_name}"/> <action application="playback" data="/opt/freeswitch-share/fs _sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
David
On Tue, Sep 13, 2016 at 4:19 PM, Don Hawkins <hawkins@hawkinsegroup.com> wrote:
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.
Sincerely, Don Hawkins
Sent from my NationPCS® Nexus 6.
On Sep 13, 2016 9:18 AM, "David Villasmil" < david.villasmil.work@gmail.com> wrote:
Hello,
Not sure i understood you goal, but I receive the INVITE, and start sending moh until the call is answered, like this:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="user/${dialed_extension} @${domain_name}"/> <action application="hangup"/> </condition> </extension>
You could do something similar.
Regards,
Dacud
On Tue, Sep 13, 2016 at 3:56 PM, Dmitry Mordovin <d.mordovin@dwide.com
wrote:
Hello,
I can't figure out how to configure hold music to play from begin extension till customer answer. The problems is: - Hold music play while bridge calling to customer only and silence while sleep 5 sec before second try - Hold music begin play .wav from start each time when bridge switch to next route.
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)?
My config:
<extension name="srv_sctv"> <condition field="destination_number" expression="^12345$">
<!-- 1. Answer & welcome -->
<action application="answer"/> <action application="set" data="continue_on_fail=true"/>
<action application="playback" data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/>
<!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=/opt/freeswitch-share/moh/0/2_8.wav" /> <action application="set" data="transfer_ringback=file_s tring:///opt/freeswitch-share/moh/0/2_8.wav"/> <action application="set" data="ringback=/opt/freeswitch-share/moh/0/2_8.wav"/>
<!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="[leg_timeout=20]sofia/ga teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ 79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=20]sofia/ga teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ 79262411111@gw1"/>
<!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ru/connection_not_esta blished.mp3"/> <action application="hangup"/> </condition> </extension>
Thank All!
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free switch-users http://www.freeswitch.org
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free switch-users http://www.freeswitch.org
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free switch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Gregor Nanger
*CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
You may also try displace_session at beginning of processing, and then stop displacing on answer by using execute_on_* functions family. However, we faced some strange issues with displace and ringback, so still not a 100% working method. I've created https://freeswitch.org/jira/browse/FS-9233 about displace behavior. 2016-09-14 13:42 GMT+03:00 David Villasmil <david.villasmil.work@gmail.com>:
I don't see why answering the call, but if you like it that way, good! Happy to help.
On Wed, Sep 14, 2016 at 12:40 PM, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
Yes,
<extension name="srv_sctv"> <condition field="destination_number" expression="^12345$">
<!-- 1. Answer & welcome -->
<action application="answer"/> <action application="set" data="continue_on_fail=true"/>
<action application="playback" data="/opt/freeswitch-share/fs _sounds/ring_welcome.wav"/>
<!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=local_stream://xmoh_0_2_1" /> <action application="set" data="transfer_ringback=local_ stream://xmoh_0_2_1"/> <action application="set" data="ringback=local_stream:// xmoh_0_2_1"/>
<!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="[leg_timeout=20]sofia/ga teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ 79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="playback" data="{timeout=5000}local_stre am://xmoh_0_2_1"/> <action application="bridge" data="[leg_timeout=20]sofia/ga teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ 79262411111@gw1"/>
<!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/fs _sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
DM
On 09/14/2016 02:29 PM, David Villasmil wrote:
Can you show your dialplan?
On Wed, Sep 14, 2016 at 12:27 PM, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
I start use MOH instead play file, this solve part of problem.
sleep replace with playback & timeout
Not good solution, but works, enough.
I thinking, possible to make one leg to extension with MOH and in conference, call to customer. When customer answer, disconnect MOH leg from conference.
On 09/14/2016 11:31 AM, Gregor Nanger wrote:
Just post info for others. As I see David use preanswer and your config answer. Is this solution??
2016-09-14 1:17 GMT+02:00 Dmitry Mordovin <d.mordovin@dwide.com>:
Hi,
Thank you David, your config sample help me!
DM
On 09/13/2016 06:25 PM, David Villasmil wrote:
Hello,
I got that. I think it might work :) Let him try it :)
Something like:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="[leg_timeout=5]user/1001 @${domain_name}"/> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=5]user/1002 @${domain_name}"/> <action application="playback" data="/opt/freeswitch-share/fs _sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
David
On Tue, Sep 13, 2016 at 4:19 PM, Don Hawkins <hawkins@hawkinsegroup.com
wrote:
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.
Sincerely, Don Hawkins
Sent from my NationPCS® Nexus 6.
On Sep 13, 2016 9:18 AM, "David Villasmil" < david.villasmil.work@gmail.com> wrote:
Hello,
Not sure i understood you goal, but I receive the INVITE, and start sending moh until the call is answered, like this:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="user/${dialed_extension} @${domain_name}"/> <action application="hangup"/> </condition> </extension>
You could do something similar.
Regards,
Dacud
On Tue, Sep 13, 2016 at 3:56 PM, Dmitry Mordovin < d.mordovin@dwide.com> wrote:
> Hello, > > I can't figure out how to configure hold music to play from begin > extension till customer answer. > The problems is: > - Hold music play while bridge calling to customer only and silence > while sleep 5 sec before second try > - Hold music begin play .wav from start each time when bridge > switch to next route. > > 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)? > > My config: > > <extension name="srv_sctv"> > <condition field="destination_number" expression="^12345$"> > > <!-- 1. Answer & welcome --> > > <action application="answer"/> > <action application="set" data="continue_on_fail=true"/> > > <action application="playback" > data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/> > > <!-- 2. Setup hold music & other settings --> > <action application="set" data="ignore_early_media=true" > /> > <action application="set" data="instant_ringback=true" /> > <action application="export" data="hold_music=/opt/freeswitch-share/moh/0/2_8.wav" > /> > <action application="set" data="transfer_ringback=file_s > tring:///opt/freeswitch-share/moh/0/2_8.wav"/> > <action application="set" data="ringback=/opt/freeswitch-share/moh/0/2_8.wav"/> > > > <!-- 3. Call to customer --> > <action application="set" data="hangup_after_bridge=true"/> > > > <action application="bridge" data="[leg_timeout=20]sofia/ga > teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ > 79262411111@gw1"/> > <!-- Second try in 5 seconds --> > <action application="sleep" data="5000"/> > <action application="bridge" data="[leg_timeout=20]sofia/ga > teway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/ > 79262411111@gw1"/> > > <!-- 4. Bridge fail --> > <action application="playback" > data="/opt/freeswitch-share/fs_sounds/ru/connection_not_esta > blished.mp3"/> > <action application="hangup"/> > </condition> > </extension> > > Thank All! > > ____________________________________________________________ > _____________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free > switch-users > http://www.freeswitch.org >
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free switch-users http://www.freeswitch.org
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free switch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/free switch-users http://www.freeswitch.org
-- Gregor Nanger
*CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Best regards, Dmitry Sytchev, IT Engineer
Thanks, displace_session is a great idea! I add my result of tests to Jira. DM On 09/14/2016 02:50 PM, Dmitry Sytchev wrote:
You may also try displace_session at beginning of processing, and then stop displacing on answer by using execute_on_* functions family. However, we faced some strange issues with displace and ringback, so still not a 100% working method.
I've created https://freeswitch.org/jira/browse/FS-9233 about displace behavior.
2016-09-14 13:42 GMT+03:00 David Villasmil <david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com>>:
I don't see why answering the call, but if you like it that way, good! Happy to help.
On Wed, Sep 14, 2016 at 12:40 PM, Dmitry Mordovin <d.mordovin@dwide.com <mailto:d.mordovin@dwide.com>> wrote:
Yes,
<extension name="srv_sctv"> <condition field="destination_number" expression="^12345$">
<!-- 1. Answer & welcome -->
<action application="answer"/> <action application="set" data="continue_on_fail=true"/>
<action application="playback" data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/>
<!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=local_stream://xmoh_0_2_1" /> <action application="set" data="transfer_ringback=local_stream://xmoh_0_2_1"/> <action application="set" data="ringback=local_stream://xmoh_0_2_1"/>
<!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="playback" data="{timeout=5000}local_stream://xmoh_0_2_1"/> <action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/>
<!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
DM
On 09/14/2016 02:29 PM, David Villasmil wrote:
Can you show your dialplan?
On Wed, Sep 14, 2016 at 12:27 PM, Dmitry Mordovin <d.mordovin@dwide.com <mailto:d.mordovin@dwide.com>> wrote:
I start use MOH instead play file, this solve part of problem.
sleep replace with playback & timeout
Not good solution, but works, enough.
I thinking, possible to make one leg to extension with MOH and in conference, call to customer. When customer answer, disconnect MOH leg from conference.
On 09/14/2016 11:31 AM, Gregor Nanger wrote:
Just post info for others. As I see David use preanswer and your config answer. Is this solution??
2016-09-14 1:17 GMT+02:00 Dmitry Mordovin <d.mordovin@dwide.com <mailto:d.mordovin@dwide.com>>:
Hi,
Thank you David, your config sample help me!
DM
On 09/13/2016 06:25 PM, David Villasmil wrote:
Hello,
I got that. I think it might work :) Let him try it :)
Something like:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="[leg_timeout=5]user/1001@${domain_name}"/> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=5]user/1002@${domain_name}"/> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
David
On Tue, Sep 13, 2016 at 4:19 PM, Don Hawkins <hawkins@hawkinsegroup.com <mailto:hawkins@hawkinsegroup.com>> wrote:
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.
Sincerely, Don Hawkins
Sent from my NationPCS® Nexus 6.
On Sep 13, 2016 9:18 AM, "David Villasmil" <david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com>> wrote:
Hello,
Not sure i understood you goal, but I receive the INVITE, and start sending moh until the call is answered, like this:
<extension name="Local_Extension"> <condition field="destination_number" expression="^(9.*)$"> <action application="pre_answer"/> <action application="playback" data="local_stream://moh"/> <action application="bridge" data="user/${dialed_extension}@${domain_name}"/> <action application="hangup"/> </condition> </extension>
You could do something similar.
Regards,
Dacud
On Tue, Sep 13, 2016 at 3:56 PM, Dmitry Mordovin <d.mordovin@dwide.com <mailto:d.mordovin@dwide.com>> wrote:
Hello,
I can't figure out how to configure hold music to play from begin extension till customer answer. The problems is: - Hold music play while bridge calling to customer only and silence while sleep 5 sec before second try - Hold music begin play .wav from start each time when bridge switch to next route.
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)?
My config:
<extension name="srv_sctv"> <condition field="destination_number" expression="^12345$">
<!-- 1. Answer & welcome -->
<action application="answer"/> <action application="set" data="continue_on_fail=true"/>
<action application="playback" data="/opt/freeswitch-share/fs_sounds/ring_welcome.wav"/>
<!-- 2. Setup hold music & other settings --> <action application="set" data="ignore_early_media=true" /> <action application="set" data="instant_ringback=true" /> <action application="export" data="hold_music=/opt/freeswitch-share/moh/0/2_8.wav" /> <action application="set" data="transfer_ringback=file_string:///opt/freeswitch-share/moh/0/2_8.wav"/> <action application="set" data="ringback=/opt/freeswitch-share/moh/0/2_8.wav"/>
<!-- 3. Call to customer --> <action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/> <!-- Second try in 5 seconds --> <action application="sleep" data="5000"/> <action application="bridge" data="[leg_timeout=20]sofia/gateway/gw1/79262410000@wg1|[leg_timeout=20]sofia/gateway/gw1/79262411111@gw1"/>
<!-- 4. Bridge fail --> <action application="playback" data="/opt/freeswitch-share/fs_sounds/ru/connection_not_established.mp3"/> <action application="hangup"/> </condition> </extension>
Thank All!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
-- Gregor Nanger *CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si <http://www.infomedia.si>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com>
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org <http://confluence.freeswitch.org> http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org
-- Best regards,
Dmitry Sytchev, IT Engineer
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (6)
-
Abaci B
-
David Villasmil
-
Dmitry Mordovin
-
Dmitry Sytchev
-
Don Hawkins
-
Gregor Nanger