Playback loop and Playback on Parked Call
Hi, There are two issues that I am trying to resolve. Is there anyway to continuously loop an audio file? With the playback app, the call gets hung up after the audio file finishes playing, but I need it to replay from the beginning until the caller hangs up. The other issue has to do with the Park app. Is there anyway to playback an audio file ( on a continuous basis) for a parked call? I checked the wiki but can't find any info on that. Any ideas on how to resolve those problems? Thanks, Doug
On Sun, 2008-08-24 at 22:16 +0800, Doug Blacksone wrote:
Hi,
There are two issues that I am trying to resolve.
Is there anyway to continuously loop an audio file? With the playback app, the call gets hung up after the audio file finishes playing, but I need it to replay from the beginning until the caller hangs up.
The other issue has to do with the Park app. Is there anyway to playback an audio file ( on a continuous basis) for a parked call? I checked the wiki but can't find any info on that.
Any ideas on how to resolve those problems?
maybe you can use localstream for this. this loops trough a folder. but its started when you start freeswitch. but therefore you can connect a lot of channels to it and it is still only one player. t.
Hi, If I have different audio tracks that I would like to loop through, does it mean I need different folder for each? Moreover, if I loop through different folders, does it mean freeswitch would start multiple "player" and consume resources ineffectively as the audio is probably played only for a very limited duration. Thanks for your advice. Regards, Doug
maybe you can use localstream for this. this loops trough a folder. but its started when you start freeswitch. but therefore you can connect a lot of channels to it and it is still only one player.
t.
_______________________________________________ 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
If you are using event_socket to control the parked call you can do the following. call-command: execute execute-app-name: playback execute-app-arg: /path/to/file lead-frames: 5 loops: -1 loops can also be 1..N for how many times to loop. also, optionally you can add event-lock: true if you want to make any subsequent commands wait for this one to finish and hold-bleg: true If the call is in a bridge and you want to play the file on the call and put the other leg on hold while the file is being played. On Sun, Aug 24, 2008 at 9:16 AM, Doug Blacksone <dougblackstone@gmail.com>wrote:
Hi,
There are two issues that I am trying to resolve.
Is there anyway to continuously loop an audio file? With the playback app, the call gets hung up after the audio file finishes playing, but I need it to replay from the beginning until the caller hangs up.
The other issue has to do with the Park app. Is there anyway to playback an audio file ( on a continuous basis) for a parked call? I checked the wiki but can't find any info on that.
Any ideas on how to resolve those problems?
Thanks, Doug
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Hi Thanks for the suggestion. I just need the MOH to be played until someone bridges to the parked call. By the way, what does lead-frames mean? Can loops be set to infinite? Does "-1" means running it in an infinite loop? On Wed, Aug 27, 2008 at 12:01 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
If you are using event_socket to control the parked call you can do the following.
call-command: execute execute-app-name: playback execute-app-arg: /path/to/file lead-frames: 5 loops: -1
loops can also be 1..N for how many times to loop.
also, optionally you can add
event-lock: true
if you want to make any subsequent commands wait for this one to finish
and
hold-bleg: true
If the call is in a bridge and you want to play the file on the call and put the other leg on hold while the file is being played.
On Sun, Aug 24, 2008 at 9:16 AM, Doug Blacksone <dougblackstone@gmail.com>wrote:
Hi,
There are two issues that I am trying to resolve.
Is there anyway to continuously loop an audio file? With the playback app, the call gets hung up after the audio file finishes playing, but I need it to replay from the beginning until the caller hangs up.
The other issue has to do with the Park app. Is there anyway to playback an audio file ( on a continuous basis) for a parked call? I checked the wiki but can't find any info on that.
Any ideas on how to resolve those problems?
Thanks, Doug
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
if that is all you need, try this. call-command: execute execute-app-name: set execute-app-arg: ringback=/path/to/file then send the bridge command with {ignore_early_media=true} prepended to your dial string. now the parked leg would hear music while it's waiting for the far end to answer. to answer your other questions: lead-frames is a number of frames to read before starting the playback and yes -1 means infinite. On Fri, Aug 29, 2008 at 3:17 AM, Doug Blacksone <dougblackstone@gmail.com>wrote:
Hi
Thanks for the suggestion.
I just need the MOH to be played until someone bridges to the parked call.
By the way, what does lead-frames mean? Can loops be set to infinite? Does "-1" means running it in an infinite loop?
On Wed, Aug 27, 2008 at 12:01 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
If you are using event_socket to control the parked call you can do the following.
call-command: execute execute-app-name: playback execute-app-arg: /path/to/file lead-frames: 5 loops: -1
loops can also be 1..N for how many times to loop.
also, optionally you can add
event-lock: true
if you want to make any subsequent commands wait for this one to finish
and
hold-bleg: true
If the call is in a bridge and you want to play the file on the call and put the other leg on hold while the file is being played.
On Sun, Aug 24, 2008 at 9:16 AM, Doug Blacksone <dougblackstone@gmail.com
wrote:
Hi,
There are two issues that I am trying to resolve.
Is there anyway to continuously loop an audio file? With the playback app, the call gets hung up after the audio file finishes playing, but I need it to replay from the beginning until the caller hangs up.
The other issue has to do with the Park app. Is there anyway to playback an audio file ( on a continuous basis) for a parked call? I checked the wiki but can't find any info on that.
Any ideas on how to resolve those problems?
Thanks, Doug
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Hi Anthony, Thanks again for your help. If the "bridging" park does not happen immediately, is it still possible to play the file? In the scenario I am working on, the event client will have to wait for a certain signal to occur before sending the bridge command. Is there anyway to enable the MOH even duration the waiting period? Thanks, Doug On Fri, Aug 29, 2008 at 9:14 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
if that is all you need, try this.
call-command: execute execute-app-name: set execute-app-arg: ringback=/path/to/file
then send the bridge command with {ignore_early_media=true} prepended to your dial string.
now the parked leg would hear music while it's waiting for the far end to answer.
to answer your other questions: lead-frames is a number of frames to read before starting the playback and yes -1 means infinite.
On Fri, Aug 29, 2008 at 3:17 AM, Doug Blacksone <dougblackstone@gmail.com>wrote:
Hi
Thanks for the suggestion.
I just need the MOH to be played until someone bridges to the parked call. By the way, what does lead-frames mean? Can loops be set to infinite? Does "-1" means running it in an infinite loop?
On Wed, Aug 27, 2008 at 12:01 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
If you are using event_socket to control the parked call you can do the following.
call-command: execute execute-app-name: playback execute-app-arg: /path/to/file lead-frames: 5 loops: -1
loops can also be 1..N for how many times to loop.
also, optionally you can add
event-lock: true
if you want to make any subsequent commands wait for this one to finish
and
hold-bleg: true
If the call is in a bridge and you want to play the file on the call and put the other leg on hold while the file is being played.
On Sun, Aug 24, 2008 at 9:16 AM, Doug Blacksone < dougblackstone@gmail.com> wrote:
Hi,
There are two issues that I am trying to resolve.
Is there anyway to continuously loop an audio file? With the playback app, the call gets hung up after the audio file finishes playing, but I need it to replay from the beginning until the caller hangs up.
The other issue has to do with the Park app. Is there anyway to playback an audio file ( on a continuous basis) for a parked call? I checked the wiki but can't find any info on that.
Any ideas on how to resolve those problems?
Thanks, Doug
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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 can park the first one, play music on it. Then create the new leg and send it to intercept the parked call. There a lot of things you can do. On Fri, Aug 29, 2008 at 8:35 AM, Doug Blacksone <dougblackstone@gmail.com>wrote:
Hi Anthony,
Thanks again for your help.
If the "bridging" park does not happen immediately, is it still possible to play the file? In the scenario I am working on, the event client will have to wait for a certain signal to occur before sending the bridge command. Is there anyway to enable the MOH even duration the waiting period?
Thanks, Doug
On Fri, Aug 29, 2008 at 9:14 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
if that is all you need, try this.
call-command: execute execute-app-name: set execute-app-arg: ringback=/path/to/file
then send the bridge command with {ignore_early_media=true} prepended to your dial string.
now the parked leg would hear music while it's waiting for the far end to answer.
to answer your other questions: lead-frames is a number of frames to read before starting the playback and yes -1 means infinite.
On Fri, Aug 29, 2008 at 3:17 AM, Doug Blacksone <dougblackstone@gmail.com
wrote:
Hi
Thanks for the suggestion.
I just need the MOH to be played until someone bridges to the parked call. By the way, what does lead-frames mean? Can loops be set to infinite? Does "-1" means running it in an infinite loop?
On Wed, Aug 27, 2008 at 12:01 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
If you are using event_socket to control the parked call you can do the following.
call-command: execute execute-app-name: playback execute-app-arg: /path/to/file lead-frames: 5 loops: -1
loops can also be 1..N for how many times to loop.
also, optionally you can add
event-lock: true
if you want to make any subsequent commands wait for this one to finish
and
hold-bleg: true
If the call is in a bridge and you want to play the file on the call and put the other leg on hold while the file is being played.
On Sun, Aug 24, 2008 at 9:16 AM, Doug Blacksone < dougblackstone@gmail.com> wrote:
Hi,
There are two issues that I am trying to resolve.
Is there anyway to continuously loop an audio file? With the playback app, the call gets hung up after the audio file finishes playing, but I need it to replay from the beginning until the caller hangs up.
The other issue has to do with the Park app. Is there anyway to playback an audio file ( on a continuous basis) for a parked call? I checked the wiki but can't find any info on that.
Any ideas on how to resolve those problems?
Thanks, Doug
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (4)
-
Anthony Minessale
-
Doug Blacksone
-
Pete Kay
-
t